-
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
Dev #473
Dev #473
Conversation
linting update publishDir linting
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.
hey @nickhsmith thanks a lot for fixing the publish copy issue 😊 anything that is not right in nf-core/modules
should be fixed in that repository, so we can properly pull from there. Since you have also adressed some of the null/false things in the nextflow.config here, maybe we can wait for conclusion on the discussion and Maxime to merge his PR. We could certainly add the things about Haplotypecaller here, and once Gavin is ready just overwrite it.
ext.prefix = { params.split_fastq > 1 ? "${meta.id}".concat(reads.get(0).name.findAll(/part_([0-9]+)?/).last().concat('.')) : "${meta.id}" } | ||
publishDir = [ |
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.
if it is not enabled, i don't think this needs to be 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.
I like having the same format, and if someone decides tomorrow to output/publish this module. All they need to do is to change enabled
But it's definitely not used now
pattern: "*{bam,bai}" | ||
] | ||
} | ||
|
||
withName: 'SAMTOOLS_MERGE' { | ||
publishDir = [ enabled: false ] | ||
publishDir = [ |
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.
same here
} | ||
|
||
withName: 'SEQKIT_SPLIT2' { | ||
ext.args = { "--by-size ${params.split_fastq}" } | ||
publishDir = [ enabled: false ] | ||
publishDir = [ |
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.
same
pattern: "*{metrics}" | ||
] | ||
} | ||
withName: 'GATK4_MARKDUPLICATES' { | ||
ext.args = '-REMOVE_DUPLICATES false -VALIDATION_STRINGENCY LENIENT' | ||
ext.suffix = '.md' | ||
publishDir = [ | ||
path: { "${params.outdir}/preprocessing/${meta.id}/markduplicates" }, | ||
enabled: false | ||
enabled: false, |
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.
see above, and the path
could actually also be removed
@@ -268,12 +268,12 @@ workflow SAREK { | |||
ch_versions = ch_versions.mix(GATK4_MAPPING.out.versions) | |||
} | |||
|
|||
if (params.step == 'preparerecalibration') { | |||
if (params.step == 'prepare_recalibration') { |
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.
if (params.step == 'prepare_recalibration') { | |
if (params.step == 'preparerecalibration') { |
workflows/sarek.nf
Outdated
case 'recalibrate': csv_file = file("${params.outdir}/preprocessing/csv/markduplicates.csv", checkIfExists: true); break | ||
case 'variantcalling': csv_file = file("${params.outdir}/preprocessing/csv/recalibrated.csv", checkIfExists: true); break | ||
case 'variant_calling': csv_file = file("${params.outdir}/preprocessing/csv/recalibrated.csv", checkIfExists: true); break |
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.
case 'variant_calling': csv_file = file("${params.outdir}/preprocessing/csv/recalibrated.csv", checkIfExists: true); break | |
case 'variantcalling': csv_file = file("${params.outdir}/preprocessing/csv/recalibrated.csv", checkIfExists: true); break |
workflows/sarek.nf
Outdated
@@ -48,9 +48,9 @@ else { | |||
log.warn "No samplesheet specified, attempting to restart from csv files present in ${params.outdir}" | |||
switch (params.step) { | |||
case 'mapping': exit 1, "Can't start with step $params.step without samplesheet" | |||
case 'preparerecalibration': csv_file = file("${params.outdir}/preprocessing/csv/markduplicates_no_table.csv", checkIfExists: true); break | |||
case 'prepare_recalibration': csv_file = file("${params.outdir}/preprocessing/csv/markduplicates_no_table.csv", checkIfExists: true); break |
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.
case 'prepare_recalibration': csv_file = file("${params.outdir}/preprocessing/csv/markduplicates_no_table.csv", checkIfExists: true); break | |
case 'preparerecalibration': csv_file = file("${params.outdir}/preprocessing/csv/markduplicates_no_table.csv", checkIfExists: true); break |
subworkflows/local/prepare_genome.nf
Outdated
@@ -83,7 +83,7 @@ workflow PREPARE_GENOME { | |||
} | |||
|
|||
ch_known_indels_tbi = Channel.empty() | |||
if (!(params.known_indels_tbi) && params.known_indels && ('mapping' in step || 'preparerecalibration' in step)) { | |||
if (!(params.known_indels_tbi) && params.known_indels && ('mapping' in step || 'prepare_recalibration' in step)) { |
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.
if (!(params.known_indels_tbi) && params.known_indels && ('mapping' in step || 'prepare_recalibration' in step)) { | |
if (!(params.known_indels_tbi) && params.known_indels && ('mapping' in step || 'preparerecalibration' in step)) { |
subworkflows/local/prepare_genome.nf
Outdated
@@ -69,7 +69,7 @@ workflow PREPARE_GENOME { | |||
} | |||
|
|||
ch_dbsnp_tbi = Channel.empty() | |||
if (!(params.dbsnp_tbi) && params.dbsnp && ('mapping' in step || 'preparerecalibration' in step || 'controlfreec' in tools || 'haplotypecaller' in tools|| 'mutect2' in tools || 'tnscope' in tools)) { | |||
if (!(params.dbsnp_tbi) && params.dbsnp && ('mapping' in step || 'prepare_recalibration' in step || 'controlfreec' in tools || 'haplotypecaller' in tools|| 'mutect2' in tools || 'tnscope' in tools)) { |
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.
if (!(params.dbsnp_tbi) && params.dbsnp && ('mapping' in step || 'prepare_recalibration' in step || 'controlfreec' in tools || 'haplotypecaller' in tools|| 'mutect2' in tools || 'tnscope' in tools)) { | |
if (!(params.dbsnp_tbi) && params.dbsnp && ('mapping' in step || 'preparerecalibration' in step || 'controlfreec' in tools || 'haplotypecaller' in tools|| 'mutect2' in tools || 'tnscope' in tools)) { |
Before we can merge for sure, need to get the CI tests back to pass as well as the linting for sure 🙈 |
@@ -1,6 +1,5 @@ | |||
params { | |||
outdir = "output/" | |||
publish_dir_mode = "copy" |
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 think this might need to stay in for the CI tests to pass
Co-authored-by: FriederikeHanssen <Friederike.hanssen@qbic.uni-tuebingen.de>
Co-authored-by: FriederikeHanssen <Friederike.hanssen@qbic.uni-tuebingen.de>
You can check #468 for some updates, but we're probably going to get another PR whenever the tools release is happening (which I guess should be soon now) |
|
|
||
// Check input has been provided | ||
if (!params.input) { | ||
log.error "Please provide an input samplesheet to the pipeline e.g. '--input samplesheet.csv'" | ||
System.exit(1) | ||
} |
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 would not remove that
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.
we need to have some work around for utilizing the automatic restart. This check totally negates the checks at workflows/sarek.nf
lines 46 - 56
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.
hm ok I would say we need to fix sarek not the template then, what do you think?
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 think it's quite a useful feature to be able to restart the analysis. There is already a warning, and if the step isn't there it throws an error. You need to designate a step, which essentially is a shortcut for editing the config file. just set step = variant_calling
instead of input = 'Path/To/Dir/preprocessing/csv/recalibrated.csv'
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.
right, I definitly think we should keep it, just make it work properly without messing with the template :)
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.
or otherwise we should raise the issue in tools and see i the template needs changing
<<<<<<< HEAD | ||
======= | ||
|
||
>>>>>>> f1bcc423664ba9bcec1cd227225555971ef87a63 |
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 like merge confilcts
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.
<<<<<<< HEAD | |
======= | |
>>>>>>> f1bcc423664ba9bcec1cd227225555971ef87a63 |
Still some comments not addressed, but looking better and better, I like the update on concat_vcf |
This whole PR is still not right or up to date. But There is good conversation here. |
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).This PR seeks to fix 2 problems.
path
,mode
,pattern
, andenabled
keywords. This should now address [BUG] modules.config: publishDirmode: 'copy' #471 and match the module stle