Per chromosome gVCF
1
0
Entering edit mode
9.9 years ago
win ▴ 990

I am using the GATK UnifiedGenotyper to generate a gVCF file based using the Emit_All_Sites option.

The problem I have is that if I have a single chromosome BAM such as BAM for only say chromosome 3 and I want gVCF data for only chromosome 3, is it possible to do that? So I want a gVCF file with variant and non variant sites only for chromosome 3

Right now when I run GATK then it starts processing all the chromosomes. Is there a way to only generate gVCF data for one chromosome even if genome truly means all the chromosomes?

gVCF GATK • 4.3k views
ADD COMMENT
3
Entering edit mode
9.9 years ago
David W 4.9k

You want the "intervals" argument 'L', as described in the docs.

ADD COMMENT
0
Entering edit mode

The intervals argument as shown in docs it text file and so in that case how do I define a single chromosome?

The interval format is specified here.

ADD REPLY
0
Entering edit mode

From the detailed description, linked from the UnifiedGenotyper page

You can use samtools-style intervals either explicitly on the command line (e.g. -L chr1 or -L chr1:100-200) or by loading in a file containing a list of intervals (e.g. -L myFile.intervals).

ADD REPLY

Login before adding your answer.

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