-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #249 from MaxUlysse/prepocessing_dsl2
bam_mapped have single and multiple bams
- Loading branch information
Showing
2 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
process MERGE_BAM_MAPPED { | ||
label 'cpus' | ||
|
||
tag "${idPatient}-${idSample}" | ||
tag "${patient}-${sample}" | ||
|
||
input: | ||
tuple idPatient, idSample, idRun, path(bam), path(bai)// from multiple | ||
tuple patient, sample, run, path(bam), path(bai) | ||
|
||
output: | ||
tuple idPatient, idSample, path("${idSample}.bam") //into bam_mapped_merged | ||
tuple patient, sample, path("${sample}.bam"), path("${sample}.bam.bai") | ||
|
||
script: | ||
""" | ||
samtools merge --threads ${task.cpus} ${idSample}.bam ${bam} | ||
samtools merge --threads ${task.cpus} ${sample}.bam ${bam} | ||
samtools index ${sample}.bam | ||
""" | ||
} |