Skip to content

Instantly share code, notes, and snippets.

@peterk87
Created February 9, 2022 18:26
Show Gist options
  • Save peterk87/994cff3f0364aa6051feacf76dbf2568 to your computer and use it in GitHub Desktop.
Save peterk87/994cff3f0364aa6051feacf76dbf2568 to your computer and use it in GitHub Desktop.
nf-core/viralrecon v2.3 Mosdepth config to publish/output BED.GZ files
// nf-core/viralrecon v2.3
// specify output of bed.gz files produced by Mosdepth
process {
withName: 'MOSDEPTH_GENOME' {
ext.args = '--fast-mode'
publishDir = [
path: { "${params.outdir}/variants/bowtie2/mosdepth/genome" },
mode: 'copy',
pattern: "*.{summary.txt,bed.gz}"
]
}
withName: 'MOSDEPTH_AMPLICON' {
ext.args = '--fast-mode --use-median --thresholds 0,1,10,50,100,500'
publishDir = [
path: { "${params.outdir}/variants/bowtie2/mosdepth/amplicon" },
mode: 'copy',
pattern: "*.{summary.txt,bed.gz}"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment