| | 297 | === Running the nf-core ATAC-seq pipeline=== |
| | 298 | * [[https://nf-co.re/atacseq/2.1.2/| nf-core ATAC-seq peak-calling and QC analysis pipeline]] |
| | 299 | |
| | 300 | * This is our recommendation: |
| | 301 | * keep duplicated reads but using macs2 "--keep-dup auto". |
| | 302 | * use --shift -75 and --extsize 150 instead of BAMPE (we want to make the highest point of the read profile around the cutting sites, not in the center of the fragment) |
| | 303 | * This is an example command to implement those changes with a configuration file, "macs2Custom.config". |
| | 304 | {{{ |
| | 305 | sbatch --partition=20 --job-name=NextF_ATACmcas2ConfigFull --output=NextF_ATAC_macs2ConfigFull-%j.out --mem=200gb --nodes=1 --ntasks=1 --cpus-per-task=20 --wrap \ |
| | 306 | "nextflow run nf-core/atacseq -profile singularity -c ./macs2Custom.config --input ./atacseq_sampleSheetFullFastq.csv --min_trimmed_reads 0 --aligner bowtie2 --keep_dups TRUE --narrow_peak TRUE --email 'username@wi.mit.edu' --genome mm10 --read_length 50 --outdir ./OutNextF_ATAC" |
| | 307 | }}} |
| | 308 | |
| | 309 | * This is the content of the config file "macs2Custom.config". |
| | 310 | |
| | 311 | {{{ |
| | 312 | process { |
| | 313 | withName: '.*:MERGED_LIBRARY_CALL_ANNOTATE_PEAKS:MACS2_CALLPEAK' { |
| | 314 | ext.args = [ |
| | 315 | '--keep-dup auto', |
| | 316 | '--nomodel', |
| | 317 | '--shift -75', |
| | 318 | '--extsize 150', |
| | 319 | '--format BAM', |
| | 320 | '--bdg ', |
| | 321 | '--qvalue 0.01' |
| | 322 | ].join(' ').trim() |
| | 323 | |
| | 324 | } |
| | 325 | } |
| | 326 | }}} |
| | 327 | |
| | 328 | For specific parameters of the nf-core ATAC-seq pipeline it is best to check the documentation in this page: |
| | 329 | * [[https://nf-co.re/atacseq/2.1.2/parameters/| nf-core ATAC-seq parameters]] |
| | 330 | |