| 33 | These are our recommended options: |
| 34 | {{{ |
| 35 | --end_to_end FALSE |
| 36 | --save_spikein_aligned TRUE |
| 37 | --save_align_intermed TRUE |
| 38 | --skip_removeduplicates true |
| 39 | --skip_preseq false |
| 40 | --skip_dt_qc false |
| 41 | --skip_multiqc false |
| 42 | --skip_reporting false |
| 43 | --dump_scale_factors true |
| 44 | --normalisation_binsize 1 (default 50) |
| 45 | }}} |
| 46 | |
| 47 | To run macs2 using the "--keep-dup auto" setting you can use a input a profile file like the one described below: |
| 48 | macs2CustomCUTRUN.config |
| 49 | {{{ |
| 50 | process { |
| 51 | withName: '.*:CUTANDRUN:MACS2_.*' { |
| 52 | ext.args = [ |
| 53 | '--keep-dup auto', |
| 54 | '--nomodel', |
| 55 | '--shift -75', |
| 56 | '--extsize 150', |
| 57 | '--format BAM', |
| 58 | '--bdg ', |
| 59 | '--qvalue 0.01' |
| 60 | ].join(' ').trim() |
| 61 | |
| 62 | } |
| 63 | } |
| 64 | }}} |
| 65 | |
| 66 | The command to be run with that file would be: |
| 67 | {{{ |
| 68 | sbatch --partition=20 --job-name=NextF --output=NextF-%j.out --mem=300gb --nodes=1 --ntasks=1 --cpus-per-task=20 --wrap \ |
| 69 | nextflow run nf-core/cutandrun -profile singularity --normalisation_binsize 1 --input ./samplesheet.csv -c macs2CustomCUTRUN.config --normalisation_mode CPM \ |
| 70 | --save_align_intermed TRUE --peakcaller 'MACS2' --replicate_threshold 2 --end_to_end FALSE --multiqc_title 'multiQCReport' --skip_removeduplicates true \ |
| 71 | --skip_preseq false --skip_dt_qc false --skip_multiqc false --skip_reporting false --dump_scale_factors true --email 'username@wi.mit.edu' --genome GRCh38 \ |
| 72 | --extend_fragments false --macs2_qvalue 0.01 --outdir ./nextFlow_macs2auto " |
| 73 | }}} |