I ran gatk followed by snpEff and snpSift. Then I combined the individual .vcf's with CombineVariants and gzipped the .vcf. I read the .vcf.gz into R with vcf <- readVcf("combined.calls.filtered.vcf.gz","hg38")
. When I run scanVcfHeader(vcf)
or create_profile(vcf, "sampleID", "sampleID.profile.txt")
, I get the following error:
Reading VCF file ... Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘scanVcfHeader’ for signature ‘"CollapsedVCF"’
I'm having trouble finding a solution.
I'm in a similar situation, but the suggestion below brings no joy. I've got germline VCFs from haplotypecaller annotated with snpEff and VEP, but they give the error:
The duplicate keys might be referring to two "source=" lines:
I've tried the same with tumor-normal VCFs generated with mutect2, but get an error similar to abe's below:
I've checked the sample names correspond using
VariantAnnotation::scanVcfHeader
, but no luck. Any other suggestions?Hi, omeally! As this seems to be a different issue, please create a new question and tag it with `seqCAT` and I'll see what I can do to help you troubleshoot it. In that question, could you also include a couple of lines from your VCF?