Nothing Special   »   [go: up one dir, main page]

Skip to content

golrokh51/ATAC-seq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ATAC-seq

Tools

FastQC, fastqc/0.11.9

MultiQC, MultiQC/1.14

Trimmomatic, trimmomatic/0.39

Bowtie2, bowtie2/2.4.4

Samtools, samtools/1.16.1

Sambamba, sambamba/0.8.0

MACS2, macs2/2.2.7.1

Steps

This pipeline is based on ATAC-seq tutorial:

Sequencing QC

FastQC

  • file name: template_fqc.sh
  • commande: fastqc -o ../results/_fastqc2/ --dir ../results/_TMP -f fastq $f1

MultiQC

  • file name: template_mqc.sh
  • commande: multiqc --outdir ../results/_fastqc ../results/_fastqc

Trimming

  • file name: template_trimmomatic.sh
  • options:
    • ILLUMINACLIP:sequencing-adapters.fa:2:30:5
    • SLIDINGWINDOW:5:20
    • HEADCROP:10
    • MINLEN:16
  • commande: java -jar -Xmx8g $EBROOTTRIMMOMATIC/trimmomatic-0.39.jar PE -threads 40 -trimlog $logfile $f1 $f2 $fwP $fwU $rvP $rvU ILLUMINACLIP:sequencing-adapters.fa:2:30:5 SLIDINGWINDOW:5:20 HEADCROP:10 MINLEN:16
  • FastQC commandes:
    • fastqc -o ../results/_fastqc2/ --dir ../results/_TMP -f fastq $fwP
    • fastqc -o ../results/_fastqc2/ --dir ../results/_TMP -f fastq $rvP

MultiQC

  • file name: template_mqc1.sh
  • commande: multiqc --outdir ../results/_fastqc2 ../results/_fastqc2

Alignment

Bowtie2

  • file name: template_bowtie2.sh
  • options:
    • --very-sensitive
    • -X 1000
    • -k 10
  • commande:
  • bowtie2 --threads 40 --very-sensitive -X 1000  -k 10 --un $ump --al $mmp  --met-file $metric $rgline -x $indx -1 $f1 -2 $f2 -S $sam 2>$logf

Alignment QC and Sorting

samtools stat

  • file name: template_samstat1.sh
  • commande: samtools stats $sam >$samstat

MultiQC on bowtie2

  • file name: template_mqc2.sh
  • commande: mugqic/MultiQC/1.14 -m bowtie2 --outdir ../results/_logs/_bowtie2 $WORK_DIR/$1/results/_logs/_bowtie2/*

samtools sort

  • commande: samtools sort -@ 48 -o $ssam $sam

Remove chloroplast alignements

samtools view

  • file name: template_bFilter_sam.sh
  • commandes:
    • samtools index $f1 # to filter by chromosome, samtools need indexed bam input
    • samtools view -H $f1 | grep -v "@SQ\sSN:GU592207\.1\sLN:134551" >$filtered
    • loup over wanted chromosomes:
    • mapfile -t lines < $chroms
      for line in "${lines[@]}"; do samtools view $f1 $line >>$filtered; done

SAM to BAM

samtools view

  • commande: samtools view -Sb $filtered > $bam

MultiQC on filtered BAM

  • file name: template_mqc3.sh
  • commande: mugqic/MultiQC/1.14 -m samtools --outdir ../results/_BAM/_filtered $WORK_DIR/$1/results/_BAM/_filtered/*_filtered_stats.txt

MarkDuplicate

sambamba markdup

  • file name: template_sambambaMarkDup.sh
  • commande: sambamba markdup $f1 $marked

Peak calling

BAM to BED

  • file name: template_bam2bed.sh
  • command: bedtools bamtobed -color 255,0,0 -bed12 -cigar -i $f1 > $bed

MACS2

  • file name: template_macs2.sh
  • commande: macs2 callpeak -t $f1 --nomodel -g 379627553 -f BED -n $out -q 0.05 --extsize 200 --shift -100 --keep-dup all -B

Releases

No releases published

Packages

No packages published

Languages