-
Notifications
You must be signed in to change notification settings - Fork 417
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
Automatic restart & General csv file updates #562
Automatic restart & General csv file updates #562
Conversation
|
@@ -988,7 +988,7 @@ process{ | |||
// VCF QC | |||
withName: 'BCFTOOLS_STATS'{ | |||
ext.when = { !(params.skip_tools && params.skip_tools.contains('bcftools')) } | |||
ext.prefix = { meta.type ? "${meta.variantcaller}_${vcf.baseName.minus(".vcf")}_${meta.type}" : "${meta.variantcaller}_${vcf.baseName.minus(".vcf")}" } | |||
ext.prefix = { "${vcf.baseName.minus(".vcf")}" } |
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.
then why minus(".vcf") if basename here?
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.
here baseName removes .gz and then vcf is still left
Using simpleName
would remove also anything after a dot in the regular filename
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.
will comment this better for future us
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.
Love it
Test on actual data ran through |
This PR adds automatic restart when no
--input
+ any step butmapping
is specified. In addition, the way the csvs are written is changed:When multiple variantcallers are selected it looks something like this:
file.name
, to ensure compatibility even when prefixes inmodules.config
or the modules themselves are changed, i.e. custom configs or upstream updates that would lead to multiple points of adaptation.outdir/csv/
Other changes:
type
is not needed anymore. The file name for annotation are retrieved from the vcf directly and not custom build. This also ensures that annotated and called vcf files have a similar file name structure to ease postprocessing when searching for files.target_bed
and adapt docs forintervals
PR checklist
scrape_software_versions.py
nf-core lint .
).nextflow run . -profile test,docker
).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).