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!

You can opt in to receive email notifications, for example when your questions get answered or when there are new announcements, by following the instructions given here.

#### ☞ Did you remember to?

1. Search using the upper-right search box, e.g. using the error message.
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.

#### ☞ Formatting tip!

Wrap blocks of code, error messages and BAM/VCF snippets--especially content with hashes (#)--with lines with three backticks (  ) each to make a code block as demonstrated here.

GATK 3.7 is here! Be sure to read the Version Highlights and optionally the full Release Notes.

# Enumerated data type arguments

everywhereMember Posts: 4

I am working on a Queue script that uses the selectVariants walker. Two of the arguments that I am trying to use both use an enumerated type: restrictAllelesTo and selectTypeToInclude. I have tried passing these as strings however I get java type mismatch errors. What is the simplest way to pass these parameters to the selectVariant walker in the qscript?

Tagged:

Hi there,

Have a look at the presentations from our recent Queue workshop, I think we give some examples of how to pass the different types in there:

Geraldine Van der Auwera, PhD

• everywhereMember Posts: 4

Maybe it's my lack of understanding scala but I still can't pass an enumerated data type. The workshop shows this as an example:

@Argument(doc=”gender identity") // some object defined elsewhere
var gender: Gender = Gender.UNKNOWN

my code uses this
@Argument(doc="Select only variants of a particular allelicity.", shortName="restrictAllelesTo", required=false)
var rAT: restrictAllelesTo = restrictAllelesTo.BIALLELIC

I've even tried defining the object itself:

object restrictAllelesTo extends Enumeration {
type restrictAllelesTo = Value
val BIALLELIC, ALLELIC, BOTH = Value
}
import restrictAllelesTo._

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

INFO 09:59:56,745 QCommandLine - Shutting down jobs. Please wait...

Here, I am not sure what to import (So, if there is some specific information/guide that will be great.

Thanks,
Amit