Samtool: Combine Bam Files With Different Tag Sizes
2
0
Entering edit mode
12.9 years ago
Lisanne ▴ 10

Dear All,

I want to compare 2 chip-seq data files (BAM files) into one file. The problem is that 1 chip-seq has a tag size of 50 and the second chip-seq has a tag size of 100. Is there a way to merge them? Is the different tag size length a problem?

THanks!

Lisanne

macs samtools • 3.9k views
ADD COMMENT
1
Entering edit mode
12.9 years ago

You can use [?]Samtools[?] (http://samtools.sourceforge.net/) or [?]Picard tools[?] (http://picard.sourceforge.net/command-line-overview.shtml) to merge your bam files into one single bam. There should be no problem in merging two bam files of differing read lengths.

ADD COMMENT
0
Entering edit mode
12.9 years ago

Assuming the bams are already sorted. it's as easy as:

samtools merge combined.bam 1.bam 2.bam

The read lengths don't matter from the perspective of a bam file. They might, however, matter to some of the algorithms you wish to apply. You should be aware of that possibility.

ADD COMMENT

Login before adding your answer.

Traffic: 1598 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