tagAlign to BAM
1
0
Entering edit mode
6.5 years ago
rbronste ▴ 420

Wondering if anyone knows how to convert the ENCODE generated tagAlign file (combo of several replicate BAMs) into a merged BAM file? Or is it necessary to take the individual replicate bam's and merge them separately?

ENCODE tagAlign bam • 3.1k views
ADD COMMENT
1
Entering edit mode
6.5 years ago
venu 7.1k

bedToBam function from bedtools suite.

Ex: including sorting the bam

bedToBam -i <(zcat E129-H3K27ac.tagAlign.gz) -g hg19.sizes | samtools sort - E129-H3K27ac

And samtools merge option for merging replicates / merging peaks from different replicates is also an option.

ADD COMMENT
0
Entering edit mode

Thanks!

So it processed it but with the following error:

[bam_header_read] EOF marker is absent. The input is probably truncated.

Wondering if it is critical to have that EOF marker?

ADD REPLY
0
Entering edit mode

Where exactly this happened ? (A long back I read in this forum (can't find it now) that if the output file is generated as usual, we don't need to bother about this warning).

ADD REPLY

Login before adding your answer.

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