Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

two replicates and the combined have different signal #426

Open
HYan-lei opened this issue Aug 28, 2023 · 0 comments
Open

two replicates and the combined have different signal #426

HYan-lei opened this issue Aug 28, 2023 · 0 comments

Comments

@HYan-lei
Copy link

Hi,

I have the replicates for the data. After running the atac-seq pipeline, i converted _r2_R1.trim.srt.nodup.no_chrM_MT.bam and .pooled.tagAlign.gz file to tdf file. But in the IGV, I found the replicates and the combined have different signal. Can anyone help me with this issue? Thanks.

Here is the script i use:
samtools index T265_DPF1_r2_R1.trim.srt.nodup.no_chrM_MT.bam
bamCoverage -b T265_DPF1_r2_R1.trim.srt.nodup.no_chrM_MT.bam --binSize 25 --normalizeUsing RPKM -o $dir2/T265_DPF1_r2.bw
bigWigToWig $dir2/T265_DPF1_r2.bw $dir3/T265_DPF1_r2.wig
igvtools toTDF $dir3/T265_DPF1_r2.wig $dir3/T265_DPF1_r2.tdf hg19

bedToBam -i <(zcat T265_DPF1.pooled.tagAlign.gz) -g $dir/hg19.sizes > T265_DPF1_combined.bam
samtools sort -T /data/leihaiyan/original_data/tmpdir/T265_DPF1.sorted -o T265_DPF1_combined.sorted.bam T265_DPF1_combined.bam
samtools index T265_DPF1_combined.sorted.bam
samtools reheader $dir1/T265_DPF1_r2_R1.trim.srt.nodup.no_chrM_MT.bam T265_DPF1_combined.sorted.bam > T265_DPF1.bam
samtools index T265_DPF1.bam
bamCoverage -b T265_DPF1.bam --binSize 25 --normalizeUsing RPKM -o $dir2/T265_DPF1.bw

atac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant