Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

variantFiltration error #182

Open
elbakrifz opened this issue Aug 30, 2020 · 5 comments
Open

variantFiltration error #182

elbakrifz opened this issue Aug 30, 2020 · 5 comments

Comments

@elbakrifz
Copy link

I was running the following command line : java -Xmx8G -jar /Users/mac/Downloads/gatk-4.1.8.1/gatk-package-4.1.8.1-local.jar -VariantFiltration \ -R /Users/mac/Desktop/LmjFwholegenome_20070731_V5.2.fasta \ -V /Users/mac/Desktop/NGS-/57variants.vcf \ --filterExpression "QD < 2.0 || MQ < 50" -filterName "hard_filtering_snp" / -o /Users/mac/Desktop/NGS-/59varians_filt.vcf
I get :
A USER ERROR has occurred: '-VariantFiltration' is not a valid command.
Did you mean this?
VariantFiltration


Set the system property GATK_STACKTRACE_ON_USER_EXCEPTION (--java-options '-DGATK_STACKTRACE_ON_USER_EXCEPTION=true') to print the stack trace.

@yunfeiguo
Copy link
Collaborator

Hi @elbakrifz
It should be used with -T option, e.g. -T VariantFiltration.

@elbakrifz
Copy link
Author

when I used, I get A USER ERROR has occurred: ' -T' is not a valid command

@yunfeiguo
Copy link
Collaborator

Maybe you should follow gatk doc since you are gatk4? https://gatk.broadinstitute.org/hc/en-us/articles/360037269391-VariantFiltration

@elbakrifz
Copy link
Author

the following CML didn't have "-T"
gatk VariantFiltration
-R reference.fasta
-V input.vcf.gz
-O output.vcf.gz
--filterExpression "AB < 0.2 || MQ0 > 50"
--filterName "my_filters"
how should I fix it ??!

@yunfeiguo
Copy link
Collaborator

Sorry I cannot help. Please post this question GATK help forum (they are GATK experts).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants