Variant calling of GBS data
1
1
Entering edit mode
8 months ago
analyst ▴ 50

Hi all,

I have GBS data of plant and I have to call variants. But I do not have reference variation file available.

Is it okay to call variants without performing base quality score recalibration step that requires reference variation file beforehand?

GBS variants BQSR • 1.2k views
ADD COMMENT
3
Entering edit mode
8 months ago

Is it okay to call variants without performing base quality score recalibration step that requires reference variation file beforehand?

see https://gatk.broadinstitute.org/hc/en-us/articles/360035890471-Hard-filtering-germline-short-variants

ADD COMMENT
0
Entering edit mode

Thanks Pierre Lindenbaum! Can we perform hard filtering on FreeBayes output ? And does hard filtering work same as of other variant filtration tools like snpsift, bcftools etc ?

ADD REPLY
1
Entering edit mode

No, it requires specific fields generated by gatk hapcaller

ADD REPLY
0
Entering edit mode

I am using gatK version 4.2.1.0 for variant filtration but it generates following warnings:

14:10:40.970 WARN JexlEngine - ![0,14]: 'ReadPosRankSum < -8.0;' undefined variable ReadPosRankSum 14:10:40.970 WARN JexlEngine - ![0,9]: 'MQRankSum < 0.4;' undefined variable MQRankSum 14:10:40.970 WARN JexlEngine - ![0,14]: 'ReadPosRankSum < -8.0;' undefined variable ReadPosRankSum 14:10:40.970 WARN JexlEngine - ![0,9]: 'MQRankSum < 0.4;' undefined variable MQRankSum

ADD REPLY
1
Entering edit mode

remove spaces in expressions. 'MQRankSum<0.4'

ADD REPLY
0
Entering edit mode

Right Pierre, thanks.

ADD REPLY
0
Entering edit mode

It is still giving same warning

java -jar -Xmx30G gatk.jar VariantFiltration -R reference.fa -V A_raw_snps.vcf -O A_filtered_snps.vcf --filter-name "QD_filter" -filter "QD < 2.0" --filter-name "FS_filter" -filter "FS > 60.0" --filter-name "SOR_filter" -filter "SOR > 10.0" --filter-name "MQRankSum_filter" -filter "MQRankSum<-12.5" --filter-name "ReadPosRankSum_filter" -filter "ReadPosRankSum<-8.0" --genotype-filter-expression "DP < 10" --genotype-filter-name "DP_filter" --genotype-filter-expression "GQ < 10" --genotype-filter-name "GQ_filter"

ADD REPLY
0
Entering edit mode

again, remove the spaces " "SOR > 10." -> " "SOR>10"

ADD REPLY
0
Entering edit mode

It does not output warning when I skip flags for MQRankSum and ReadPosRankSum

java -jar -Xmx30G gatk.jar VariantFiltration -R reference.fa -V A_raw_snps.vcf -O A_filtered_snps.vcf -filter-name "QD_filter" -filter "QD < 2.0" -filter-name "FS_filter" -filter "FS > 60.0" -filter-name "SOR_filter" -filter "SOR > 10.0" -genotype-filter-expression "DP < 10" -genotype-filter-name "DP_filter" -genotype-filter-expression "GQ < 10" -genotype-filter-name "GQ_filter"

ADD REPLY
0
Entering edit mode

Command used :

java -jar -Xmx30G gatk.jar VariantFiltration -R reference.fa -V A_raw_snps.vcf -O A_filtered_snps.vcf --filter-name "QD_filter" --filter-expression "QD < 2.0" --filter-name "FS_filter" --filter-expression "FS > 60.0" --filter-name "MQ_filter" --filter-expression "MQ < 40.0" --filter-name "SOR_filter" --filter-expression "SOR > 4.0" --filter-name "MQRankSum_filter" --filter-expression "MQRankSum < -12.5" --filter-name "ReadPosRankSum_filter" --filter-expression "ReadPosRankSum < -8.0" --genotype-filter-expression "DP < 10" --genotype-filter-name "DP_filter" --genotype-filter-expression "GQ < 10" --genotype-filter-name "GQ_filter"

ADD REPLY
0
Entering edit mode

Vcf file contains this information

enter image description here

ADD REPLY
0
Entering edit mode

enter image description here

ADD REPLY

Login before adding your answer.

Traffic: 2653 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6