How to to run GATK variant call on the .bam or .sam and reference in a minimal lines of code?
0
0
Entering edit mode
7.8 years ago

How to to run GATK variant call on the .bam or .sam and reference in a minimal lines of code?

I have the output from the BWA and nit to call variants with GATK. Not clear in details from the documentation.

gatk vcf • 2.5k views
ADD COMMENT
1
Entering edit mode

That's a very lazy question, while the documentation of GATK is very clear.

ADD REPLY
0
Entering edit mode

Have you read the GATK documentation?

ADD REPLY
0
Entering edit mode

If you are concerned with speed, the best choice is to call variants with the BBMap package:

callvariants.sh in=x.sam ref=ref.fasta out=vars.vcf
ADD REPLY
0
Entering edit mode

thank you, but how to specify Xmxm for BBmap when there is an error?

ADD REPLY
0
Entering edit mode

when there is an error?

You probably should be more specific

ADD REPLY
0
Entering edit mode

in other words, how to input 2 fastqs (?) in= 0001.fastq, 0002.fastq do not work

thank you

ADD REPLY
1
Entering edit mode

You mean for mapping? Be more specific. Read the manual.

ADD REPLY
0
Entering edit mode

Like you have technical replicates that you want merged into one BAM, or different samples, or oddly named paired-end reads, or...

Are you intentionally trying to make it difficult for people to help you?

ADD REPLY
0
Entering edit mode

You can't call variants from fastq files... you need to map the reads first.

The correct syntax for specifying multiple files is:

callvariants.sh in=a.sam,b.sam,c.sam ref=ref.fa out=vars.vcf multi

If you have trouble with memory, you can add the flag "-Xmx20g" or something like that, which specifies how many GB of RAM to use. If you run out of memory, you can reduce the memory consumption with the "prefilter" flag. Also, if this is human data, you should add the flag "ploidy=2".

ADD REPLY
0
Entering edit mode

thank you ++++++++++++++

ADD REPLY
0
Entering edit mode

how to input two reads.fastq? not one...

ADD REPLY
1
Entering edit mode
ADD REPLY
0
Entering edit mode

And, by the way, what tools can annotate output from BBMap besides SNPEff, thanks

ADD REPLY

Login before adding your answer.

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