Skip to content

Commit 64ea49a

Browse files
authored
Merge pull request #70 from UMCUGenetics/release/v0.7.0
v0.7.0
2 parents f030fe4 + a16bed5 commit 64ea49a

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

Mosdepth/0.3.3/Mosdepth.nf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
process Mosdepth {
2+
tag {"Mosdepth ${sample_id}"}
3+
label 'Mosdepth_0_3_3'
4+
container = 'quay.io/biocontainers/mosdepth:0.3.3--h37c5b7d_2'
5+
shell = ['/bin/bash', '-euo', 'pipefail']
6+
7+
input:
8+
tuple(val(sample_id), path(bam_file), path(bai_file))
9+
10+
output:
11+
tuple(val(sample_id), path("${sample_id}.mosdepth.summary.txt"), emit: summary_file)
12+
tuple(val(sample_id), path("${sample_id}.mosdepth.*.txt"), emit: txt_files)
13+
tuple(val(sample_id), path("${sample_id}*bed*"), emit: bed_files, optional: true)
14+
15+
script:
16+
"""
17+
mosdepth -t ${task.cpus} ${params.optional} ${sample_id} ${bam_file}
18+
"""
19+
}

Sambamba/0.7.0/ViewSubsample.nf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
process Subsample {
2+
tag {"Sambamba Subsample ${sample_id}"}
3+
label 'Sambamba_0_7_0'
4+
label 'Sambamba_0_7_0_ViewSubsample'
5+
container = 'quay.io/biocontainers/sambamba:0.7.0--h89e63da_1'
6+
shell = ['/bin/bash', '-euo', 'pipefail']
7+
8+
input:
9+
tuple(sample_id, val(fraction), path(bam_file), path(bai_file))
10+
11+
output:
12+
tuple(sample_id, path("${bam_file.baseName}.subsample.bam"), path("${bam_file.baseName}.subsample.bam.bai"), emit: bam_file)
13+
14+
script:
15+
"""
16+
sambamba view -t ${task.cpus} -f bam -s ${fraction} ${params.optional} ${bam_file} -o ${bam_file.baseName}.subsample.bam
17+
"""
18+
}

0 commit comments

Comments
 (0)