Changes between Version 14 and Version 15 of SOPs/atac_Seq


Ignore:
Timestamp:
08/14/20 12:19:48 (4 years ago)
Author:
gbell
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SOPs/atac_Seq

    v14 v15  
    2929=== [=#preprocess Map reads] ===
    3030
    31   * Map reads with bowtie2,
     31  * Map reads with bowtie2 (or another unspliced mapping tool)
    3232  * If mapping paired-end reads, keep only concordant pairs
    3333
     
    4646{{{
    4747samtools view -h file.bam | grep -v chrM | samtools view -b -h -f 0x2 - | samtools sort - > file.sorted.bam
     48}}}
     49
     50=== [=#QC Run quality control and calculate QC metrics] ===
     51
     52Calculate the fragment size distribution with the ATACseqQC R package:
     53{{{
     54library("ATACseqQC")
     55pdf("My_sample.fragment_sizes.pdf", sep="_"), w=11, h=8.5)
     56fragSizeDist("Mapped_reads.bam", "My_sample")
     57dev.off()
     58}}}
     59
     60Calculate the TSS enrichment score (the degree to which transcription start sites show enrichment for ATAC-seq reads) using BaRC code (/nfs/BaRC_Public/BaRC_code/Python/calculate_TSS_enrichment_score/calculate_TSS_enrichment_score.py)
     61{{{
     62# USAGE: calculate_TSS_enrichment_score.py --outdir OUTDIR --outprefix OUTPREFIX --fastq1 FASTQ1 --tss TSS_BED --chromsizes CHROMSIZES --bam BAM
     63
     64./calculate_TSS_enrichment_score.py --outdir OUT_QC_1 --outprefix Sample_A --fastq1 ATACseq_reads.fq.gz --tss TSS.hg38.bed --chromsizes chromInfo.hg38.txt --bam ATACseq_mapped_reads.bam >| Sample_A.TSS_enrichment_score.txt
    4865}}}
    4966
     
    87104}}}
    88105
     106Calculate the FRiP score
     107{{{
     108/nfs/BaRC_Public/BaRC_code/Python/calculate_FRiP_score/calculate_FRiP_score.py
     109}}}
     110
    89111
    90112=== Tips/Recommendations for ATAC-Seq ===
     
    106128
    107129
    108 === [=#QC Run quality control and calculate QC metrics] ===
    109 
    110 * Fragment size distribution with ATACseqQC R package:
    111 {{{
    112 library("ATACseqQC")
    113 
    114 bamfile = "foo.bam"
    115 bamfile.labels <- gsub(".bam", "", basename(bamfile))
    116 
    117 pdf (file=paste(bamfile.labels, "Fragment_size.pdf", sep="_"), w=11, h=8.5)
    118 fragSizeDist(bamfile, bamfile.labels)
    119 dev.off()
    120 
    121 }}}
    122130 
    123131