Using the IndexFeatureFile, doesn't recognize -F flag
AnsweredREQUIRED for all errors and issues:
a) GATK version used:
b) Exact command used:
c) Entire program log:
USAGE: IndexFeatureFile [arguments]
Creates an index for a feature file, e.g. VCF or BED file.
Version:4.2.6.1
Required Arguments:
--input,-I <GATKPath> Feature file (eg., VCF or BED file) to index. Must be in a tribble-supported format
Required.
Optional Arguments:
--arguments_file <File> read one or more arguments files and add them to the command line This argument may be
specified 0 or more times. Default value: null.
--gatk-config-file <String> A configuration file to use with the GATK. Default value: null.
--gcs-max-retries,-gcs-retries <Integer>
If the GCS bucket channel errors out, how many times it will attempt to re-initiate the
connection Default value: 20.
--gcs-project-for-requester-pays <String>
Project to bill when accessing "requester pays" buckets. If unset, these buckets cannot be
accessed. User must have storage.buckets.get permission on the bucket being accessed.
Default value: .
--help,-h <Boolean> display the help message Default value: false. Possible values: {true, false}
--output,-O <GATKPath> The output index file. If missing, the tool will create an index file in the same
directory as the input file. Default value: null.
--QUIET <Boolean> Whether to suppress job-summary info on System.err. Default value: false. Possible
values: {true, false}
--tmp-dir <GATKPath> Temp directory to use. Default value: null.
--use-jdk-deflater,-jdk-deflater <Boolean>
Whether to use the JdkDeflater (as opposed to IntelDeflater) Default value: false.
Possible values: {true, false}
--use-jdk-inflater,-jdk-inflater <Boolean>
Whether to use the JdkInflater (as opposed to IntelInflater) Default value: false.
Possible values: {true, false}
--verbosity <LogLevel> Control verbosity of logging. Default value: INFO. Possible values: {ERROR, WARNING,
INFO, DEBUG}
--version <Boolean> display the version number for this tool Default value: false. Possible values: {true,
false}
Advanced Arguments:
--showHidden <Boolean> display hidden arguments Default value: false. Possible values: {true, false}
***********************************************************************
A USER ERROR has occurred: -F is not a recognized option
***********************************************************************
So I am currently trying to index a vcf file I have filtered so there will be only chromosome 10 present in this vcf file. I succeeded in the first part and now only have a vcf file with chromosome 10. To use this VCF file in other GATK functions I apparently need to index it using the bundled tool IndexFeatureFile. Looking at this link: https://gatk.broadinstitute.org/hc/en-us/articles/360037428111-IndexFeatureFile it seemed quite easy, however, whilst copying the command with my file it just doesn't want to recognize the -F, I also tried -f. Do you guys perhaps know why it doesn't recognize the -F flag?
-
I don't know why this wasn't included in my post, because I am sure I filled it in. But here is the missing version and command
REQUIRED for all errors and issues:
a) GATK version used: v4.2.6.1
b) Exact command used: gatk IndexFeatureFile -F clinvar_chr10.vcf -
Hi Gijs C,
Thank you for writing to the GATK forum! I hope we can help you sort this out.
It seems you are referencing an outdated tool index for the IndexFeatureFile command. You are using our most recent version of GATK, 4.2.6.1. Please find the most up-to-date index for this command below.
IndexFeatureFile - GATK 4.2.6.1
You’ll find that -F is no longer used and has updated to -I. Here is the current command.
gatk IndexFeatureFile \ -I cohort.vcf.gz
I hope this helps, please let me know!
Best,
Anthony
Please sign in to leave a comment.
2 comments