This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Problems with read group in GATK

Hi,

I am new in next generation sequencig. I want to analyze my sequences using GATK. But it gives me an error at the first step because my bam files doesn't have the read group. I have read about it in others posts, but I have some specific questions.

I have differents samples from differents platfforms. Also I have in the same fastq of one sample reads from differents lines. So, I have to create the read group manually to each different sample that I have? Is any different automatic way to do this? Is it necessary to have sam files from sequencing better than fastq?

Thanks,

sequencing gatk read group

Also I have in the same fastq of one sample reads from differents lines

I assume reads from different lanes?

Is it necessary to have sam files from sequencing better than fastq?

I don't understand what you mean by this. A sam/bam file is required for most steps in ngs analysis.

Yes of course, but in GATK best practice suggest to get unmaped sam files from Illumina sequencing instead of fastq because sam file can store metadata useful for read gruop

Please use ADD COMMENT/ADD REPLY when responding to existing posts to keep threads logically organized.

Yes? Can I add read group from fastq file? I had fastq files but I don't know how to add read group head when I make the alignement/mapping.

Mi fastq files looks like this:

@NB501082:6:H5KG3AFXX:1:11101:6550:1056 1:N:0:ATAGCGAC

Thanks

ok, thanks for the link! I am going to try some indications.

Perfect, I understand the read group now. So I only going to do the alignment again adding -R @RG\tID:NULL\tSM:1305H\tLB:NULL\tPL:Illumina with the sample name. I hope that works!

probably you might also need to double quote the whole string, like -R "@RG\tID:NULL\tSM:1305H\tLB:NULL\tPL:Illumina"

So I only going to do the alignment again

You do not need to. That is the purpose of using Picard to add this information as linked by @Santosh above: C: Problems with read group in GATK

0 answers

No answers yet.

Log in to answer this question.