File size: 924 Bytes
6b29baa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
process {
    withName: 'DEEPTOOLS_COMPUTEMATRIX' {
        ext.args = [
            'reference-point',
            '--referencePoint TSS',
            '-b 1000',
            '-a 500',
            '--binSize 10',
            '--missingDataAsZero',
            '--skipZeros',
            '--smartLabels'
        ].join(' ').trim()
    }

    withName: 'MACS3_CALLPEAK' {
        ext.args   = [
            '--keep-dup 1',
            '--format BAM',
            '--nomodel',
            '--shift -15',
            '--extsize 30',
            '--call-summits',
            '--cutoff-analysis',
            params.narrow_peak          ? '' : "--broad --broad-cutoff ${params.broad_cutoff}",
            params.save_macs_pileup     ? '--bdg --SPMR' : '',
            params.macs_fdr             ? "--qvalue ${params.macs_fdr}" : '',
            params.aligner == "chromap" ? "--format BAM" : ''
        ].join(' ').trim()
  }
}