Changes between Version 14 and Version 15 of SOPs/atac_Seq
- Timestamp:
- 08/14/20 12:19:48 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SOPs/atac_Seq
v14 v15 29 29 === [=#preprocess Map reads] === 30 30 31 * Map reads with bowtie2 ,31 * Map reads with bowtie2 (or another unspliced mapping tool) 32 32 * If mapping paired-end reads, keep only concordant pairs 33 33 … … 46 46 {{{ 47 47 samtools 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 52 Calculate the fragment size distribution with the ATACseqQC R package: 53 {{{ 54 library("ATACseqQC") 55 pdf("My_sample.fragment_sizes.pdf", sep="_"), w=11, h=8.5) 56 fragSizeDist("Mapped_reads.bam", "My_sample") 57 dev.off() 58 }}} 59 60 Calculate 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 48 65 }}} 49 66 … … 87 104 }}} 88 105 106 Calculate the FRiP score 107 {{{ 108 /nfs/BaRC_Public/BaRC_code/Python/calculate_FRiP_score/calculate_FRiP_score.py 109 }}} 110 89 111 90 112 === Tips/Recommendations for ATAC-Seq === … … 106 128 107 129 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 }}}122 130 123 131