File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ params {
3838 repository = wf_repository // DockerHub containers repository
3939 sample = '' // sample files in tsv format
4040 sampleDir = '' // samples directory (for Germline only)
41+ sequencing_center = '' // CN field in BAM files
4142 singularity = false // Don't use singularity to build buildContainers.nf
4243 step = 'mapping' // Default step is mapping
4344 strelkaBP = false // Don't use Manta's candidate indels as input to Strelka
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ class MyUtils {
5151 ' sample-dir' ,
5252 ' sample' ,
5353 ' sampleDir' ,
54+ ' sequencing_center' ,
5455 ' single-CPUMem' ,
5556 ' singleCPUMem' ,
5657 ' singularity' ,
Original file line number Diff line number Diff line change @@ -176,7 +176,8 @@ process MapReads {
176176 when: step == ' mapping' && ! params. onlyQC
177177
178178 script:
179- readGroup = " @RG\\ tID:${ idRun} \\ tPU:${ idRun} \\ tSM:${ idSample} \\ tLB:${ idSample} \\ tPL:illumina"
179+ CN = params. sequencing_center ? " CN:${ params.sequencing_center} \\ t" : " "
180+ readGroup = " @RG\\ tID:${ idRun} \\ t${ CN} PU:${ idRun} \\ tSM:${ idSample} \\ tLB:${ idSample} \\ tPL:illumina"
180181 // adjust mismatch penalty for tumor samples
181182 extra = status == 1 ? " -B 3" : " "
182183 """
You can’t perform that action at this time.
0 commit comments