-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix vcf #465
Conversation
Python linting (
|
|
VCF_COLLECT script tested successfully with outputs from vwucher |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
df[["ChromosomeA", "PosA", "Strand1"]] = df["LeftBreakpoint"].str.split(":", expand=True) | ||
df[["ChromosomeB", "PosB", "Strand2"]] = df["RightBreakpoint"].str.split(":", expand=True) | ||
df[["LeftGeneName", "Left_ensembl_gene_id"]] = df["LeftGene"].str.split("^", expand=True) | ||
df[["RightGeneName", "Right_ensembl_gene_id"]] = df["RightGene"].str.split("^", expand=True) | ||
df["annots"] = ( | ||
df["annots"] | ||
.apply(convert_to_list) | ||
.apply(lambda x: ",".join(map(str, x)) if isinstance(x, list) else str(x) if pd.notna(x) else "") | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice to move this into a function
for i in [ | ||
"ChromosomeA", | ||
"Strand1", | ||
"ChromosomeB", | ||
"Strand2", | ||
"LeftGeneName", | ||
"Left_ensembl_gene_id", | ||
"RightGeneName", | ||
"Right_ensembl_gene_id", | ||
"annots", | ||
]: | ||
df[i] = "" | ||
for j in [ | ||
"PosA", | ||
"PosB", | ||
]: | ||
df[j] = np.nan |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice to move this to a function
fix VCF_COLLECT for cases when fusioninspector filters out fusions detected and fed in via fusionreport (fusioninspector empty but fusionreport not empty). Closes #460
PR checklist
nf-core lint
).nextflow run . -profile test,docker --outdir <OUTDIR>
).docs/usage.md
is updated.docs/output.md
is updated.CHANGELOG.md
is updated.README.md
is updated (including new tool citations and authors/contributors).