Genome Analysis Toolkit

Variant Discovery in High-Throughput Sequencing Data

GATK process banner

Need Help?

Search our documentation

Community Forum

Hi, How can we help?

Developed in the Data Sciences Platform at the Broad Institute, the toolkit offers a wide variety of tools with a primary focus on variant discovery and genotyping. Its powerful processing engine and high-performance computing features make it capable of taking on projects of any size. Learn more

VariantFiltration Follow

1 comment

  • Avatar
    Milad Eidi

    I have problem in executing this command of GATK VariantFiltration, can you help me with it:

    java -jar gatk-package-4.4.0.0-local.jar VariantFiltration \
      -V '/media/milad/9117284696_AD/1KG.chr22.anno.vcf.gz' \
      -O '/media/milad/9117284696_AD/1KG.chr22.filter.vcf' \
      --filter-name "GP" --filter-expression "1000g2015aug_all >= 0.01" \
      --filter-name "Gnomad_Genome" --filter-expression "gnomad_Genome_AF >= 0.01" \
      --filter-name "Gnomad_Exome" --filter-expression "gnomad_Exome_AF >= 0.01" \
      --filter-name "Exac" --filter-expression "ExAC_ALL >= 0.01" \
      --filter-name "Kaviar" --filter-expression "Kaviar_AF >= 0.01" \
      --filter-name "clinvar" --filter-expression "CLNSIG == 'benign'" \
      --filter-name "FuncrefGeneWithVer" --filter-expression "(Func.refGeneWithVer == 'intergenic' || Func.refGeneWithVer == 'intronic' || Func.refGeneWithVer == 'upstream' || Func.refGeneWithVer == 'downstream' || Func.refGeneWithVer == 'UTR' || Func.refGeneWithVer == 'ncrna')" \
      --filter-name "FuncensGene" --filter-expression "(Func.ensGene == 'intergenic' || Func.ensGene == 'intronic' || Func.ensGene == 'upstream' || Func.ensGene == 'downstream' || Func.ensGene == 'UTR' || Func.ensGene == 'ncrna')" \
      --filter-name "CADD16" --filter-expression "CADD16_PHRED <= 14.5" \
      --genotype-filter-name "GTISDBM322017" --genotype-filter-expression "ISDBM322017/GT == '1/1'" \
      --genotype-filter-name "DPISDBM322017" --genotype-filter-expression "ISDBM322017/DP < 8" \
      --genotype-filter-name "DPISDBM322015" --genotype-filter-expression "ISDBM322015/DP < 8" \
      --genotype-filter-name "DPISDBM322016" --genotype-filter-expression "ISDBM322016/DP < 8"

    It returns this:
    18:58:57.594 INFO  NativeLibraryLoader - Loading libgkl_compression.so from jar:file:/media/milad/9117284696_AD/NGSneeds/gatk-4.4.0.0/gatk-package-4.4.0.0-local.jar!/com/intel/gkl/native/libgkl_compression.so
    18:58:57.629 INFO  VariantFiltration - ------------------------------------------------------------
    18:58:57.632 INFO  VariantFiltration - The Genome Analysis Toolkit (GATK) v4.4.0.0
    18:58:57.632 INFO  VariantFiltration - For support and documentation go to https://software.broadinstitute.org/gatk/
    18:58:57.632 INFO  VariantFiltration - Executing as milad@milad-virtual-machine on Linux v6.2.0-36-generic amd64
    18:58:57.632 INFO  VariantFiltration - Java runtime: OpenJDK 64-Bit Server VM v19.0.2+7-Ubuntu-0ubuntu322.04
    18:58:57.633 INFO  VariantFiltration - Start Date/Time: December 27, 2023 at 6:58:57 PM IRST
    18:58:57.633 INFO  VariantFiltration - ------------------------------------------------------------
    18:58:57.633 INFO  VariantFiltration - ------------------------------------------------------------
    18:58:57.634 INFO  VariantFiltration - HTSJDK Version: 3.0.5
    18:58:57.634 INFO  VariantFiltration - Picard Version: 3.0.0
    18:58:57.634 INFO  VariantFiltration - Built for Spark Version: 3.3.1
    18:58:57.634 INFO  VariantFiltration - HTSJDK Defaults.COMPRESSION_LEVEL : 2
    18:58:57.634 INFO  VariantFiltration - HTSJDK Defaults.USE_ASYNC_IO_READ_FOR_SAMTOOLS : false
    18:58:57.634 INFO  VariantFiltration - HTSJDK Defaults.USE_ASYNC_IO_WRITE_FOR_SAMTOOLS : true
    18:58:57.635 INFO  VariantFiltration - HTSJDK Defaults.USE_ASYNC_IO_WRITE_FOR_TRIBBLE : false
    18:58:57.635 INFO  VariantFiltration - Deflater: IntelDeflater
    18:58:57.635 INFO  VariantFiltration - Inflater: IntelInflater
    18:58:57.635 INFO  VariantFiltration - GCS max retries/reopens: 20
    18:58:57.635 INFO  VariantFiltration - Requester pays: disabled
    18:58:57.636 INFO  VariantFiltration - Initializing engine
    18:58:57.727 INFO  FeatureManager - Using codec VCFCodec to read file file:///media/milad/9117284696_AD/1KG.chr22.anno.vcf.gz
    18:58:57.755 WARN  IndexUtils - Feature file "file:///media/milad/9117284696_AD/1KG.chr22.anno.vcf.gz" appears to contain no sequence dictionary. Attempting to retrieve a sequence dictionary from the associated index file
    18:58:57.760 WARN  IntelInflater - Zero Bytes Written : 0
    18:58:57.769 WARN  IndexUtils - Feature file "file:///media/milad/9117284696_AD/1KG.chr22.anno.vcf.gz" appears to contain no sequence dictionary. Attempting to retrieve a sequence dictionary from the associated index file
    18:58:57.771 WARN  IntelInflater - Zero Bytes Written : 0
    18:58:57.775 WARN  IndexUtils - Feature file "file:///media/milad/9117284696_AD/1KG.chr22.anno.vcf.gz" appears to contain no sequence dictionary. Attempting to retrieve a sequence dictionary from the associated index file
    18:58:57.777 WARN  IntelInflater - Zero Bytes Written : 0
    18:58:57.782 INFO  VariantFiltration - Done initializing engine
    18:58:57.805 INFO  VariantFiltration - Shutting down engine
    [December 27, 2023 at 6:58:57 PM IRST] org.broadinstitute.hellbender.tools.walkers.filters.VariantFiltration done. Elapsed time: 0.00 minutes.
    Runtime.totalMemory()=134217728
    java.lang.IllegalArgumentException: Argument GPhas a bad value. Invalid expression used (1000g2015aug_all >= 0.01). Please see the JEXL docs for correct syntax.
        at htsjdk.variant.variantcontext.VariantContextUtils.initializeMatchExps(VariantContextUtils.java:283)
        at htsjdk.variant.variantcontext.VariantContextUtils.initializeMatchExps(VariantContextUtils.java:243)
        at htsjdk.variant.variantcontext.VariantContextUtils.initializeMatchExps(VariantContextUtils.java:259)
        at org.broadinstitute.hellbender.tools.walkers.filters.VariantFiltration.onTraversalStart(VariantFiltration.java:334)
        at org.broadinstitute.hellbender.engine.GATKTool.doWork(GATKTool.java:1096)
        at org.broadinstitute.hellbender.cmdline.CommandLineProgram.runTool(CommandLineProgram.java:149)
        at org.broadinstitute.hellbender.cmdline.CommandLineProgram.instanceMainPostParseArgs(CommandLineProgram.java:198)
        at org.broadinstitute.hellbender.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:217)
        at org.broadinstitute.hellbender.Main.runCommandLineProgram(Main.java:160)
        at org.broadinstitute.hellbender.Main.mainEntry(Main.java:203)
        at org.broadinstitute.hellbender.Main.main(Main.java:289)

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk