mirror of
https://github.com/MillironX/taxprofiler.git
synced 2024-11-22 14:19:56 +00:00
Merge pull request #59 from nf-core/hostremoval-publish-fix
Add finer control over for hostremoval saving
This commit is contained in:
commit
47a34d4c7e
3 changed files with 31 additions and 5 deletions
|
@ -133,20 +133,34 @@ process {
|
|||
}
|
||||
|
||||
withName: BOWTIE2_BUILD {
|
||||
ext.prefix = { "${meta.id}_${meta.run_accession}" }
|
||||
publishDir = [
|
||||
path: { "${params.outdir}/bowtie2/build" },
|
||||
mode: params.publish_dir_mode,
|
||||
pattern: '*.bt2'
|
||||
enabled: params.save_hostremoval_index,
|
||||
pattern: 'bowtie2'
|
||||
]
|
||||
}
|
||||
|
||||
withName: BOWTIE2_ALIGN {
|
||||
ext.prefix = { "${meta.id}_${meta.run_accession}" }
|
||||
publishDir = [
|
||||
[
|
||||
path: { "${params.outdir}/bowtie2/align" },
|
||||
mode: params.publish_dir_mode,
|
||||
pattern: '*.{fastq.gz,bam}'
|
||||
pattern: '*.log'
|
||||
],
|
||||
[
|
||||
path: { "${params.outdir}/bowtie2/align" },
|
||||
mode: params.publish_dir_mode,
|
||||
enabled: params.save_hostremoval_mapped,
|
||||
pattern: '*.bam'
|
||||
],
|
||||
[
|
||||
path: { "${params.outdir}/bowtie2/align" },
|
||||
mode: params.publish_dir_mode,
|
||||
enabled: params.save_hostremoval_unmapped,
|
||||
pattern: '*.fastq.gz'
|
||||
]
|
||||
]
|
||||
}
|
||||
|
||||
|
|
|
@ -82,8 +82,11 @@ params {
|
|||
|
||||
// Host Removal
|
||||
perform_shortread_hostremoval = false
|
||||
shortread_hostremoval_reference = null
|
||||
shortread_hostremoval_index = null
|
||||
shortread_hostremoval_reference = null
|
||||
shortread_hostremoval_index = null
|
||||
save_hostremoval_index = false
|
||||
save_hostremoval_mapped = false
|
||||
save_hostremoval_unmapped = false
|
||||
|
||||
// MALT
|
||||
run_malt = false
|
||||
|
|
|
@ -370,6 +370,15 @@
|
|||
"type": "string",
|
||||
"default": "None"
|
||||
},
|
||||
"save_hostremoval_index": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"save_hostremoval_mapped": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"save_hostremoval_unmapped": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"run_kaiju": {
|
||||
"type": "boolean"
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue