Skip to content

Commit

Permalink
fix save_filtered_longreads parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
muabnezor committed Nov 1, 2024
1 parent bfa5e06 commit 7ec9a74
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
18 changes: 14 additions & 4 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ process {
path: { "${params.outdir}/QC_longreads/Filtlong" },
mode: params.publish_dir_mode,
pattern: "*_filtlong.fastq.gz",
enabled: params.save_filtlong_reads
enabled: params.save_filtered_longreads
]
ext.prefix = { "${meta.id}_run${meta.run}_filtlong" }
}
Expand All @@ -206,7 +206,7 @@ process {
path: { "${params.outdir}/QC_longreads/Nanoq" },
mode: params.publish_dir_mode,
pattern: "*_nanoq_filtered.fastq.gz",
enabled: params.save_filtered_reads
enabled: params.save_filtered_longreads
],
[
path: { "${params.outdir}/QC_longreads/Nanoq" },
Expand All @@ -218,7 +218,17 @@ process {
}

withName: NANOLYSE {
publishDir = [[path: { "${params.outdir}/QC_longreads/NanoLyse" }, mode: params.publish_dir_mode, pattern: "*.log"], [path: { "${params.outdir}/QC_longreads/NanoLyse" }, mode: params.publish_dir_mode, pattern: "*_nanolyse.fastq.gz", enabled: params.save_lambdaremoved_reads]]
publishDir = [
[
path: { "${params.outdir}/QC_longreads/NanoLyse" },
mode: params.publish_dir_mode, pattern: "*.log"
],
[
path: { "${params.outdir}/QC_longreads/NanoLyse" },
mode: params.publish_dir_mode, pattern: "*_nanolyse.fastq.gz",
enabled: params.save_lambdaremoved_reads
]
]
ext.prefix = { "${meta.id}_run${meta.run}_lambdafiltered" }
}

Expand All @@ -237,7 +247,7 @@ process {
path: { "${params.outdir}/QC_longreads/Chopper" },
mode: params.publish_dir_mode,
pattern: "*_chopper.fastq.gz",
enabled: params.save_lambdaremoved_reads
enabled: params.save_lambdaremoved_reads || params.save_filtered_longreads
]
]
ext.prefix = { "${meta.id}_run${meta.run}_chopper" }
Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ params {
lambda_reference = "${baseDir}/assets/data/GCA_000840245.1_ViralProj14204_genomic.fna.gz"
save_lambdaremoved_reads = false
save_porechop_reads = false
save_filtered_reads = false
save_filtered_longreads = false

// binning options
skip_metabat2 = false
Expand Down
4 changes: 2 additions & 2 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,9 @@
"type": "boolean",
"description": "Specify to save the resulting clipped FASTQ files to --outdir."
},
"save_filtered_reads": {
"save_filtered_longreads": {
"type": "boolean",
"description": "Specify to save the resulting length filtered FASTQ files to --outdir."
"description": "Specify to save the resulting length filtered long read FASTQ files to --outdir."
},
"longread_adaptertrimming_tool": {
"type": "string",
Expand Down

0 comments on commit 7ec9a74

Please sign in to comment.