-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sfitz concat vcf #213
Sfitz concat vcf #213
Conversation
Converting to a draft as I realized the output needs to be uncompressed for the next step and some checksums need to be added. |
publishDir path: "${params.workflow_output_dir}/intermediate/${task.process.split(':')[-1]}", | ||
mode: "copy", | ||
pattern: "*concat.vcf", | ||
enabled: params.save_intermediate_files |
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.
this intermediate file will be used by vcf2maf
(and has to be uncompressed)
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.
One minor naming suggestion! Otherwise looks good to me!
Anything else @yashpatel6
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.
I haven't done any runs with large samples since adding plot_VennDiagram_R
or concat_VCFs_BCFtools
so these are just guesses. These two processes will run together, but only after everything is done. I doubt they use much memory so I don't think it matters much. The next PR, add maf
, will add one more process and may be the last PR before release. With that I could test with large samples and look at memory as well as which processes will use more cpus
.
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.
A couple of comments:
module/intersect-processes.nf
Outdated
publishDir path: "${params.workflow_output_dir}/output", | ||
mode: "copy", | ||
pattern: "isec-1-or-more/*.txt" |
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.
Any reason this was moved here from the intersect process? Generally, we want to publish files from the process that generated them
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.
Couple of minor edits to make but otherwise looks good!
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.
Looks good! I've added a few comments/questions.
@@ -78,4 +78,24 @@ process { | |||
} | |||
} | |||
} | |||
withName: plot_VennDiagram_R { | |||
cpus = 2 |
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.
Can VennDiagram take 2 CPUs?
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.
As I sort of mentioned in the PR description, these are just placeholders until I do a large bam test run before the release. I will adjust these and the processes added in sfitz-add-maf
at that time.
} | ||
} | ||
withName: concat_VCFs_BCFtools { | ||
cpus = 2 |
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.
It looks like this process doesn't use 2 CPUs?
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.
Looks good! The resources allocations can be tuned after running the large sample in a future PR. Anything else to add @tyamaguchi-ucla ?
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.
Looks good! Anything else to add @tyamaguchi-ucla ?
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.
Looks good to me although we might want to think about the structure under intersect-BCFtools-1.17
before the next release. Excellent work!
Description
Add BCFtools process to concatenate the 2+ tool consensus variants into one VCF. The output header is a uniquified concatenation of all headers. The output fields:
INFO
FORMAT
NORMAL
andTUMOR
are from the first listed VCF that has the variant.Testing Results
nftest run a_mini_n2-all-tools-std-input
log:
/hot/software/pipeline/pipeline-call-sSNV/Nextflow/development/unreleased/sfitz-concat-vcf/log-nftest-20230810T214722Z.log
output:
/hot/software/pipeline/pipeline-call-sSNV/Nextflow/development/unreleased/sfitz-concat-vcf/a_mini_n2-all-tools-std-input
Checklist
I have read the code review guidelines and the code review best practice on GitHub check-list.
I have reviewed the Nextflow pipeline standards.
The name of the branch is meaningful and well formatted following the standards, using [AD_username (or 5 letters of AD if AD is too long)]-[brief_description_of_branch].
I have set up or verified the branch protection rule following the github standards before opening this pull request.
I have added my name to the contributors listings in the
manifest
block in thenextflow.config
as part of this pull request; I am listed already, or do not wish to be listed. (This acknowledgement is optional.)I have added the changes included in this pull request to the
CHANGELOG.md
under the next release version or unreleased, and updated the date.I have updated the version number in the
metadata.yaml
andmanifest
block of thenextflow.config
file following semver, or the version number has already been updated. (Leave it unchecked if you are unsure about new version number and discuss it with the infrastructure team in this PR.)I have tested the pipeline on at least one A-mini sample.