Heads up:
We’re moving the GATK website, docs and forum to a new platform. Read the full story and breakdown of key changes on this blog.
If you happen to see a question you know the answer to, please do chime in and help your fellow community members. We encourage our fourm members to be more involved, jump in and help out your fellow researchers with their questions. GATK forum is a community forum and helping each other with using GATK tools and research is the cornerstone of our success as a genomics research community.We appreciate your help!

Test-drive the GATK tools and Best Practices pipelines on Terra

Check out this blog post to learn how you can get started with GATK and try out the pipelines in preconfigured workspaces (with a user-friendly interface!) without having to install anything.
We will be out of the office for a Broad Institute event from Dec 10th to Dec 11th 2019. We will be back to monitor the GATK forum on Dec 12th 2019. In the meantime we encourage you to help out other community members with their queries.
Thank you for your patience!

Obtaining read group information from the fastq files

saikat10MAy1995saikat10MAy1995 IndiaMember
edited March 2017 in Ask the GATK team

I have fastq files with headers
@SN963:294:C847FACXX:1:1106:1077:2087 1:N:0:AGGCAGAA (File name -DYP26_blood_S3_L001_R1_001.fastq)
@SN963:294:C847FACXX:1:1106:1077:2087 2:N:0:AGGCAGAA (File name- DYP26_blood_S3_L001_R2_001.fastq)
these are pairs of the same sample.
But, I need read group information for analyzing using GATK, which I don't have. how do I get the read group to include in the BWA step.


  • shleeshlee CambridgeMember, Broadie ✭✭✭✭✭

    Hi @saikat10MAy1995,

    You can assign read group ID fields arbitrarily, e.g. A, B, C.... If you're interested in how we assign them, I've broken down the components here, in the section titled "Deriving ID and PU fields from read names".

    I would avoid including the @ sign or other non-alphanumeric symbols in read group ID names.

  • FdoSRFdoSR Member

    Dear All,

    I am following the steps indicated in the document entitled "From FastQ data to high confidence variant calls: the Genome Analysis Toolkit best practices pipeline", but I have a doubt regarding a particular part:

    I have fastq files from Paired-End of a WGS made with illumina recently. However, it is not clear to me how the read group (@RG) is created. Is it a file that contains a line that starts with @RG and that includes the information of each fastq file? Is one line of those for each file Fw and Rv?

    Thanks in advance.

    Best regards

  • bhanuGandhambhanuGandham Cambridge MAMember, Administrator, Broadie, Moderator admin

    Hi @FdoSR

    Read groups are created in the SAM/BAM /CRAM files and they can be identified by 'RG' tag. These tags are created based on information such as flowcell + lane name and number, sequencing platform, sample name, library prep ID. These tags, when assigned appropriately, allow us to differentiate not only samples, but also various technical features that are associated with artifacts. With this information in hand, we can mitigate the effects of those artifacts during the duplicate marking and base recalibration steps.

    You can create the tags by using AddOrReplaceReadGroups function of picard tools. For more information on that: http://broadinstitute.github.io/picard/command-line-overview.html#AddOrReplaceReadGroups

    For information on use of read groups please follow this link: https://software.broadinstitute.org/gatk/documentation/article?id=6472

    I hope this helps.


Sign In or Register to comment.