Hello,
I am attempting to use the af-dist bcftools plugin to detect potential strand issues using the instructions found here: https://samtools.github.io/bcftools/howtos/plugin.af-dist.html
My script:
bcftools annotate -c INFO/AF -a af.vcf.gz DAC14_chr1_hg38_nonduplicates_fix.vcf.gz | bcftools +af-dist | grep ^PROB > DAC14_chr1_hg38_nonduplicates_fix.dist.txt
Error received:
Failed to open DAC14_chr1_hg38_nonduplicates_fix.vcf.gz: could not load index
I checked to confirm that my data is there and it is the correct vcf.gz filetype needed:
fileformat=VCFv4.2
FILTER=<ID=PASS,Description="All filters passed">
fileDate=20210211
What's going wrong here? Tried to search, but no luck... Thank you.
You should index your VCF file (
bcftools index
LINK) .Index to make it a tbi file? Then should I use the tbi files for this af-dist script? Thanks
Instruction link you posted in original question shows
bcftools index af.vcf.gz
in first step. Indexing allows rapid access.I actually did index the af.vcf.gz file upon downloading it from the site.... I also tried to index it again and it said that I already have done so. I don't think this indexing instruction applies to my data file...?