-
Notifications
You must be signed in to change notification settings - Fork 0
/
Fig3_Cut&Run_RELA
34 lines (24 loc) · 1.4 KB
/
Fig3_Cut&Run_RELA
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
#trimming
trim_galore --paired hTERT_IgG_rep1_R1.fastq.gz hTERT_IgG_rep1_R2.fastq.gz
trim_galore --paired hTERT_GR_rep1_R1.fastq.gz hTERT_GR_rep1_R2.fastq.gz
#hTERT_IgG_rep1
#mapping
bowtie2 --very-sensitive -p 8 -x /home/users/ymuto/GRCh38_noalt_as/GRCh38_noalt_as --local --very-sensitive-local --no-unal --no-mixed --no-discordant --phred33 -I 10 -X 700 -1 hTERT_IgG_rep1_R1_val_1.fq.gz -2 hTERT_IgG_rep1_R2_val_2.fq.gz -S hTERT_IgG_rep1.sam
#sort&index
samtools view -bS hTERT_IgG_rep1.sam -@ 8 | samtools sort > hTERT_IgG_rep1.bam
samtools index -@ 8 hTERT_IgG_rep1.bam
#Visualization
bamCoverage -b hTERT_IgG_rep1.bam -o hTERT_IgG_rep1.bw
#hTERT_GR_rep1
#mapping
bowtie2 --very-sensitive -p 8 -x /home/users/ymuto/GRCh38_noalt_as/GRCh38_noalt_as --local --very-sensitive-local --no-unal --no-mixed --no-discordant --phred33 -I 10 -X 700 -1 hTERT_GR_rep1_R1_val_1.fq.gz -2 hTERT_GR_rep1_R2_val_2.fq.gz -S hTERT_GR_rep1.sam
#sort&index
samtools view -bS hTERT_GR_rep1.sam -@ 8 | samtools sort > hTERT_GR_rep1.bam
samtools index -@ 8 hTERT_GR_rep1.bam
#Visualization
bamCoverage -b hTERT_GR_rep1.bam -o hTERT_GR_rep1.bw
#peak calling
macs2 callpeak -t hTERT_GR_rep1.bam -c hTERT_IgG_rep1.bam --name=hTERT_GR_rep1 --gsize=hs
#Intersection of peaks among replicates to generate consensus peak list
bedtools intersect -a hTERT_GR_rep1_peaks.narrowPeak -b hTERT_GR_rep2_peaks.narrowPeak > hTERT_GR_consensus.bed