Tool: Merge Bam files
0
gravatar for david.fear
4.5 years ago by
david.fear • 10
European Union
david.fear • 10 wrote:

I am trying to merge 3 .bam files (different alignments of the same ChIP-seq run), one has 5.9M reads, one 1.2M and one 0.4M. However after running merge bam files in sam tools I only get back a file with 4.2M reads in it (at least the output of rmdup tells me I have 4.2M reads). Any ideas as to why I seem to have lost 3M or so reads during merging of files?

Many thanks

Dave

tool samtools • 4.9k views
ADD COMMENT • link • modified 4.5 years ago • written 4.5 years ago by david.fear • 10

Hi David,

are the sinigle BAM files already rmdup'ed?

ADD REPLY • link written 4.5 years ago by Bjoern Gruening ♦ 5.1k

Yes, they had been.

 

ADD REPLY • link written 4.5 years ago by david.fear • 10
1

Have you specified different read groups?

ADD REPLY • link written 4.5 years ago by Bjoern Gruening ♦ 5.1k
1
gravatar for david.fear
4.5 years ago by
david.fear • 10
European Union
david.fear • 10 wrote:

Sorry, how do you merge with different read groups, there doesn't seem to be an option for that using merge bam files in SAM tools?

 

ADD COMMENT • link written 4.5 years ago by david.fear • 10

Oh that can be, please use the picard tools for that.

ADD REPLY • link written 4.5 years ago by Bjoern Gruening ♦ 5.1k
1

David, 

Bjoern is correct - this is a two step process (at this time). First run the tool "NGS: Picard (beta) -> Add or Replace Groups" to add read groups to each of your BAM files. Second, run the tool "NGS: SAM Tools -> Merge BAM Files". 

This may seem like a lot of steps (if you are also grooming, etc.), but you can put all (or most) of these operations into a workflow once you have a consistent process. 

Thanks! Jen, Galaxy team

ADD REPLY • link written 4.5 years ago by Jennifer Hillman Jackson ♦ 25k
0
gravatar for david.fear
4.5 years ago by
david.fear • 10
European Union
david.fear • 10 wrote:

I don't think so

ADD COMMENT • link written 4.5 years ago by david.fear • 10
1

Please try to merge them with different read groups that should be what you want, I assume.

ADD REPLY • link written 4.5 years ago by Bjoern Gruening ♦ 5.1k
0
gravatar for david.fear
4.5 years ago by
david.fear • 10
European Union
david.fear • 10 wrote:

Thanks. I'll give it a go.

 

ADD COMMENT • link written 4.5 years ago by david.fear • 10
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 172 users visited in the last hour