The current GATK version is 3.7-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!

#### ☞ Did you remember to?

1. Search using the upper-right search box, e.g. using the error message.
2. Try the latest version of tools.
3. Include tool and Java versions.
4. Tell us whether you are following GATK Best Practices.
5. Include relevant details, e.g. platform, DNA- or RNA-Seq, WES (+capture kit) or WGS (PCR-free or PCR+), paired- or single-end, read length, expected average coverage, somatic data, etc.
6. For tool errors, include the error stacktrace as well as the exact command.
7. For format issues, include the result of running ValidateSamFile for BAMs or ValidateVariants for VCFs.
8. For weird results, include an illustrative example, e.g. attach IGV screenshots according to Article#5484.
9. For a seeming variant that is uncalled, include results of following Article#1235.

#### ☞ Did we ask for a bug report?

Then follow instructions in Article#1894.

#### ☞ Formatting tip!

Surround blocks of code, error messages and BAM/VCF snippets--especially content with hashes (#)--with lines with three backticks (  ) each to make a code block.
Picard 2.9.0 is now available. Download and read release notes here.
GATK 3.7 is here! Be sure to read the Version Highlights and optionally the full Release Notes.

# UnifiedGenotyper queue extension

Member Posts: 96 ✭✭✭
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:

• Dev Posts: 29 ✭✭

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.

• Dev Posts: 29 ✭✭

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.

• Member Posts: 96 ✭✭✭

Thank you! That cleared things up for me.

• Member Posts: 18

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

• Member Posts: 18

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,701 QScriptManager - ExampleUnifiedGenotyper.scala:73: not found: type UnifiedGenotyper
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

org.broadinstitute.sting.queue.QException: Compile of public/scala/qscript/org/broadinstitute/sting/queue/qscripts/examples/ExampleUnifiedGenotyper.scala failed with 6 errors
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...

• UCSDMember Posts: 8

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.

• UCSDMember Posts: 8

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

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

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

• Member Posts: 18

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, MADev Posts: 51 ✭✭

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

• UCSDMember Posts: 8

Gotcha, thanks!

• Member Posts: 18

Thank you @droazen, it works now!

It would be helpful to put the link to the full repository in http://gatkforums.broadinstitute.org/discussion/1306/overview-of-queue.