GATK: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 119: Line 119:
==Frequently asked questions == <!--T:23-->
==Frequently asked questions == <!--T:23-->
===How do I add a read group (RG) tag in my bam file? ===
===How do I add a read group (RG) tag in my bam file? ===
Assuming that the read group you want to add is called '''tag''' to the file input bam, you can use the GATK/PICARD command [https://gatk.broadinstitute.org/hc/en-us/articles/360037226472-AddOrReplaceReadGroups-Picard- AddOrReplaceReadGroups]:
Assuming that you want to add the read group called '''tag''' to the input file called '''bam''', you can use the GATK/PICARD command [https://gatk.broadinstitute.org/hc/en-us/articles/360037226472-AddOrReplaceReadGroups-Picard- AddOrReplaceReadGroups]:
<pre>
<pre>
gatk  AddOrReplaceReadGroups \
gatk  AddOrReplaceReadGroups \
rsnt_translations
56,430

edits

Navigation menu