Open Stikus opened 5 years ago
This is still a problem. Picard MergeVCFs will fail. A workaround can be to use bcftools reheader to add contigs followed by Picard FixVcfHeader to add dummy FILTER and INFO headers. Not pretty, but it works. `
docker run -v $(pwd):/sandbox myourshaw/gatk:4.2.4.1 gatk IndexFeatureFile \ -I /sandbox/MG20-1976@08182020JH_ST.b37.map.dedup.sample.varscan2.fpfilter.pass.vcf \ ;
docker run -v $(pwd):/sandbox myourshaw/tools:latest bcftools reheader \ --fai /sandbox/b37/references/human_g1k_v37_decoy_GOAL+viral.fasta.fai \ --output /sandbox/MG20-1976@08182020JH_ST.b37.map.dedup.sample.varscan2.fpfilter.pass.vcf.reheader.vcf \ /sandbox/MG20-1976@08182020JH_ST.b37.map.dedup.sample.varscan2.fpfilter.pass.vcf \ ;
docker run -v $(pwd):/sandbox myourshaw/picard:2.25.7 java -Xmx20g -jar /usr/picard/picard.jar \ FixVcfHeader \ -I /sandbox/MG20-1976@08182020JH_ST.b37.map.dedup.sample.varscan2.fpfilter.pass.vcf.reheader.vcf \ -O /sandbox/MG20-1976@08182020JH_ST.b37.map.dedup.sample.varscan2.fpfilter.pass.reheader.fixed.vcf \ ; `
Hello, there are VCF header lines from FpFilter.java file from VarScan.v2.4.4.source.jar - looks like this is fpfilter source.
But there are actual filtering lines:
Looks like
RefReadPos
,RefDist3
,RefMMQS
,RefAvgRL
,SomaticP
,VarAvgRL
,MaxBAQdiff
,MinMMQSdiff
andNoReadCounts
are missing from header. Some VCF-processing programs want all filter to be listed in VCF-header. And using commas as separators as described here is a problem too - better to change them to semicolon.