Skip to content
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

Merged
merged 5 commits into from Feb 5, 2024
Merged

Fix vcf #465

merged 5 commits into from Feb 5, 2024

Conversation

rannick
Copy link
Collaborator

@rannick rannick commented Feb 2, 2024

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

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the pipeline conventions in the contribution docs
  • If necessary, also make a PR on the nf-core/rnafusion branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

Copy link

github-actions bot commented Feb 2, 2024

Python linting (black) is failing

To keep the code consistent with lots of contributors, we run automated code consistency checks.
To fix this CI test, please run:

  • Install black: pip install black
  • Fix formatting errors in your pipeline: black .

Once you push these changes the test should pass, and you can hide this comment 👍

We highly recommend setting up Black in your code editor so that this formatting is done automatically on save. Ask about it on Slack for help!

Thanks again for your contribution!

Copy link

github-actions bot commented Feb 2, 2024

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 017d6da

+| ✅ 171 tests passed       |+
!| ❗   2 tests had warnings |!

❗ Test warnings:

  • files_exist - File not found: conf/igenomes.config
  • pipeline_todos - TODO string in WorkflowRnafusion.groovy: Optionally add in-text citation tools to this list.

✅ Tests passed:

Run details

  • nf-core/tools version 2.12.1
  • Run at 2024-02-05 09:19:35

@rannick rannick requested a review from fevac February 2, 2024 10:27
@rannick
Copy link
Collaborator Author

rannick commented Feb 2, 2024

VCF_COLLECT script tested successfully with outputs from vwucher

@rannick rannick closed this Feb 5, 2024
@rannick rannick reopened this Feb 5, 2024
@rannick rannick merged commit 8440a2c into dev Feb 5, 2024
18 checks passed
@rannick rannick deleted the fix_vcf branch February 5, 2024 09:27
Copy link
Contributor

@fevac fevac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Comment on lines +276 to +284
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 "")
)
Copy link
Contributor

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

Comment on lines +286 to +302
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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants