Lorena Pantano
09/25/2024, 6:23 PMext.args = [
'--keep-dup all',
'--nomodel',
params.narrow_peak ? '' : "--broad --broad-cutoff ${params.broad_cutoff}",
params.save_macs_pileup ? '--bdg --SPMR' : '',
params.macs_pvalue ? "--pvalue ${params.macs_pvalue}" : '',
params.macs_fdr ? "--qvalue ${params.macs_fdr}" : ''
].join(' ').trim()
And I prepare a custom config file with:
ext.args = [
'--keep-dup auto',
'--nomodel',
'--shift -75',
'--extsize 150'
].join(' ').trim()
That will replace everything the fill ext.args, right? For instance, I will need to add --broad ...and any other parameter that depended on params?Mahesh Binzer-Panchal
09/25/2024, 7:34 PMMahesh Binzer-Panchal
09/25/2024, 7:38 PMLorena Pantano
09/25/2024, 7:53 PMparams inside the custom file right?Mahesh Binzer-Panchal
09/26/2024, 7:00 AM{} so it evaluates at task run time.
ext.args = {
[
'--keep-dup auto',
'--nomodel',
params.narrow_peak ? '' : "--broad --broad-cutoff ${params.broad_cutoff}",
params.save_macs_pileup ? '--bdg --SPMR' : '',
params.macs_pvalue ? "--pvalue ${params.macs_pvalue}" : '',
params.macs_fdr ? "--qvalue ${params.macs_fdr}" : ''
].join(' ').trim()
}