Merging Bam Files
1
0
Entering edit mode
11.0 years ago
hlsz.laszlo ▴ 50

Dear all,

I having trouble with analyzing my ChIP-seq data. I have an IP, input with replica (ChIP1, Input1, ChIP2, Input2). I merged the alignement files (.bam hg19) with bamtools merge, then called peaks. The problem is merging summs the reads at a given position. Like:

Example

So, the final goal is, how to merge the samples as the read numbers averaged not summed at same positions?

Regards, Laszlo

bam merge • 3.6k views
ADD COMMENT
0
Entering edit mode
11.0 years ago

If you really want the average, the I would do what you did in the table above and count each sample separately and do the averaging at the count level. However, I suspect that is not something that you want to do, as the magnitude of count data is quite important.

ADD COMMENT
0
Entering edit mode

Hi Davis,

I can count the read number for given regions with coverageBed for the samples, then create a coverage file that contains the average for the two, but from then you can't call peaks. I need to do this somehow manipulating sam/bam headers. Any suggestions?

L

ADD REPLY
0
Entering edit mode

If you want to call peaks, just merge the BAM files and call peaks. It is not possible to "average" two BAM files.

ADD REPLY
0
Entering edit mode

Thank you! Saved my time

ADD REPLY

Login before adding your answer.

Traffic: 1750 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6