AddOrReplaceReadGroups (picard) vs reheader (samtools)
1
0
Entering edit mode
5.9 years ago
shuksi1984 ▴ 60

What is the difference between output generated by AddOrReplaceReadGroups (picard) and reheader (samtools)? Can AddOrReplaceReadGroups (picard) be used instead of reheader (samtools) or vice versa for adding read groups in inputfile?

next-gen sequencing software error • 1.8k views
ADD COMMENT
1
Entering edit mode
5.9 years ago

samtools reheader can't add read groups to reads, only to the header, whereas picard can do both. If you just want to change read group information without adding read groups then samtools reheader will be MUCH faster. If your file is missing read groups and needs then then you can't use samtools reheader to add them (since reads won't be assigned to a group, regardless of what's in the header).

ADD COMMENT
0
Entering edit mode

Thus, I can perform the next step, i.e BAM sorting, eventhough I use AddOrReplaceReadGroups (picard) instead of reheader (samtools)?

ADD REPLY
0
Entering edit mode

A BAM is a BAM is a BAM. Very few tools require read groups (mostly only Picard and GATK).

ADD REPLY

Login before adding your answer.

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