Heads up:
We’re moving the GATK website, docs and forum to a new platform. Read the full story and breakdown of key changes on this blog.
If you happen to see a question you know the answer to, please do chime in and help your fellow community members. We encourage our fourm members to be more involved, jump in and help out your fellow researchers with their questions. GATK forum is a community forum and helping each other with using GATK tools and research is the cornerstone of our success as a genomics research community.We appreciate your help!

Test-drive the GATK tools and Best Practices pipelines on Terra

Check out this blog post to learn how you can get started with GATK and try out the pipelines in preconfigured workspaces (with a user-friendly interface!) without having to install anything.

SelectVariants not accepting --variant

louwslouws San FranciscoMember
edited January 2015 in Ask the GATK team


I am attempting to run the tool SelectVariants and everything seems ok but for one error I receive:
##### ERROR MESSAGE: Invalid argument value '—-variant' at position 4.

##### ERROR Invalid argument value 'input.vcf' at position 5.

My intitial command was:

java -jar GenomeAnalysisTK.jar -T SelectVariants -R human_g1k_v37.fasta —-variant input.vcf -select '[my select code]' -o output.vcf

Any help appreciated.

Thank you!


Best Answer


  • louwslouws San FranciscoMember
    edited January 2015

    Brilliant tommycarstensen ! That was it. What a bizarre error, I never encountered it before. But your keen eye solved the problem. Thank you!

    edit: I should clarify for others who might have the same issue; the problem was the different dash sizes. Using a 'normal' dash size resolved the issue.

  • Geraldine_VdAuweraGeraldine_VdAuwera Cambridge, MAMember, Administrator, Broadie admin

    For general information: we've seen this happen to people who write commands in a word processor (rather of text editor) and then copy/paste to console/terminal. Word processors will change some characters to be fancy -- they are just too helpful sometimes. Better stick with a simple text editor which won't try to do things you didn't ask for.

Sign In or Register to comment.