The current GATK version is 3.6-0
Examples: Monday, today, last week, Mar 26, 3/26/04

#### Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Register now for the upcoming GATK Best Practices workshop, Nov 7-8 at the Broad in Cambridge, MA. Open to all comers! More info and signup at https://goo.gl/forms/mFeERlIeLuJ95Idm1

# UnifiedGenotyper queue extension

Posts: 96Member ✭✭✭
edited August 2012

It says in the "ExampleUnifiedGenotyper" qscript that it runs an incomplete version of the UnifiedGenotyper. I have a two questions about this.

• I cannot find the org.broadinstitute.sting.queue.extensions.gatk.UnifiedGenotyper class, is this not in the public source or am I blind?

• Does the "incomplete" in the script starting comment mean that this extension is incomplete in its functionality? Or is it something else that is incomplete in its nature?

Basically I'm wondering if there are any pitfalls for me if I start using the example script as a base for my own variant calling qscript.

Tagged:

• Posts: 27Dev ✭✭

Most of the queue.extensions are generated classes once you run 'ant'. The generated classes are Queue compatible versions of the walker command arguments. Instead of looking at the generated scala file you can find the same or better argument descriptions in the the gatkdocs for each walker.

The 'incomplete' status of the script means that it is only a technical example, and will need to be tweaked for your specific requirements in your calling pipeline. Feel free to explore different command line options with the UG. For example using Queue you can create two instances of the UG and test using with BAQ and without. As for what UG commands you should be using, see the UG gatkdocs and the Best Practices for an overall description of where the UG fits in a calling pipeline.

• Posts: 27Dev ✭✭

Most of the queue.extensions are generated classes once you run 'ant'. The generated classes are Queue compatible versions of the walker command arguments. Instead of looking at the generated scala file you can find the same or better argument descriptions in the the gatkdocs for each walker.

The 'incomplete' status of the script means that it is only a technical example, and will need to be tweaked for your specific requirements in your calling pipeline. Feel free to explore different command line options with the UG. For example using Queue you can create two instances of the UG and test using with BAQ and without. As for what UG commands you should be using, see the UG gatkdocs and the Best Practices for an overall description of where the UG fits in a calling pipeline.

• Posts: 96Member ✭✭✭

Thank you! That cleared things up for me.

• Posts: 18Member

I also cannot find the UnifiedGenotyper class, and I have ran ant. Classes for other walkers are there. Does this class even exist or it is just mentioned as an example?

@armen, can you tell me a bit more about what you are trying to do and what problem you are experiencing?

Geraldine Van der Auwera, PhD

• Posts: 18Member

I followed the instructions on http://gatkforums.broadinstitute.org/discussion/1309/queue-with-intellij-idea to setup Queue with IntelliJ, and I'm trying to edit the example Unified Genotyper script public/scala/qscript/org/broadinstitute/sting/queue/qscripts/examples/ExampleUnifiedGenotyper.scala. However, the IDE tells me that the class UnifiedGenotyper doesn't exist.

If I run ExampleUnifiedGenotyper.scala using Queue:

java -jar dist/Queue.jar -S public/scala/qscript/org/broadinstitute/sting/queue/qscripts/examples/ExampleUnifiedGenotyper.scala -help

I get errors for the same reason:

INFO 16:31:27,906 QScriptManager - Compiling 1 QScript
ERROR 16:31:29,706 QScriptManager - val genotyper = new UnifiedGenotyper with UnifiedGenotyperArguments
ERROR 16:31:29,706 QScriptManager - ^
ERROR 16:31:29,906 QScriptManager - ExampleUnifiedGenotyper.scala:78: value scatterCount is not a member of AnyRef with ExampleUnifiedGenotyper.this.UnifiedGenotyperArguments
ERROR 16:31:29,909 QScriptManager - genotyper.scatterCount = 3
ERROR 16:31:29,909 QScriptManager - ^
ERROR 16:31:30,245 QScriptManager - ExampleUnifiedGenotyper.scala:80: value out is not a member of AnyRef with ExampleUnifiedGenotyper.this.UnifiedGenotyperArguments
ERROR 16:31:30,247 QScriptManager - genotyper.out = swapExt(qscript.bamFile, "bam", "unfiltered.vcf")
ERROR 16:31:30,248 QScriptManager - ^
ERROR 16:31:30,279 QScriptManager - ExampleUnifiedGenotyper.scala:82: value out is not a member of AnyRef with ExampleUnifiedGenotyper.this.UnifiedGenotyperArguments
ERROR 16:31:30,281 QScriptManager - evalUnfiltered.eval :+= genotyper.out
ERROR 16:31:30,282 QScriptManager - ^
ERROR 16:31:30,319 QScriptManager - ExampleUnifiedGenotyper.scala:83: value out is not a member of AnyRef with ExampleUnifiedGenotyper.this.UnifiedGenotyperArguments
ERROR 16:31:30,321 QScriptManager - evalUnfiltered.out = swapExt(genotyper.out, "vcf", "eval")
ERROR 16:31:30,323 QScriptManager - ^
ERROR 16:31:30,354 QScriptManager - ExampleUnifiedGenotyper.scala:85: value out is not a member of AnyRef with ExampleUnifiedGenotyper.this.UnifiedGenotyperArguments
ERROR 16:31:30,356 QScriptManager - variantFilter.variant = genotyper.out
ERROR 16:31:30,356 QScriptManager - ^
ERROR 16:31:30,441 QScriptManager - 6 errors found

##### ERROR stack trace

at org.broadinstitute.sting.queue.QCommandLine.org$broadinstitute$sting$queue$QCommandLineqScriptPluginManager(QCommandLine.scala:95)

##### ERROR ------------------------------------------------------------------------------------------

INFO 16:31:30,601 QCommandLine - Shutting down jobs. Please wait...

• UCSDPosts: 8Member

I'm getting the same error. If I checkout the git repository and build using ant, I'm unable to find the GATK extensions. However, the prebuilt version of Queue works fine.

• UCSDPosts: 8Member

Just for more clarifications...the Piccard extensions work fine and I cloned the repo on Monday.

Hi folks, two quick questions to help find out what the problem is:

1. Are you running ant clean before building? Sometimes just ant isn't enough.

2. What is the output of the command: jar tvf dist/Queue.jar | grep 'extensions/gatk'?

Geraldine Van der Auwera, PhD

• UCSDPosts: 8Member
1. I tried it with ant clean and then ant queue, but still same errors.
2. The output is attached.
• UCSDPosts: 8Member

I also tried git checkout tags/2.6 followed by ant clean and ant queue. The error persists. It might be ivy related?

• Posts: 18Member

Same results for me.

@kunalbhutani said:
1. I tried it with ant clean and then ant queue, but still same errors.
2. The output is attached.

• Cambridge, MAPosts: 51Dev ✭✭

Based on the output you attached, it looks like you're building from our "GATK framework only" repository (https://github.com/broadgsa/gatk) instead of our full "framework + tools" repository (https://github.com/broadgsa/gatk-protected), which includes both the core framework as well as our flagship tools like the UnifiedGenotyper and the HaplotypeCaller. In order to use the UnifiedGenotyper with Queue you'll need to clone and build from the gatk-protected repository.

Hope this helps,
David

• UCSDPosts: 8Member

Gotcha, thanks!

• Posts: 18Member

Thank you @droazen, it works now!

Geraldine Van der Auwera, PhD