Entering edit mode
2.6 years ago
natural_decline
•
0
I am trying to extract a single chromosome from a vcf file, using this bcftools command
bcftools view inputfile.vcf.gz --regions chr1
and I get this error: 'Failed to read from inputfile.vcf.gz could not load index'
I thought this would be very straightforward, what am I missing? Thanks!
I did this once before without indexing but I may have used vcftools instead of bcftools, should there be a difference?
Either way, will run this index command and output a new file, then run the command I mentioned above? thanks
vcftools is deprecated . Use bcftools
bcftools will create an associated file 'inputfile.vcf.gz.csi' (the index) next to inputfile.vcf.gz
thank you!
When a suggestion is given, please try it instead of asking "Will your suggestion solve my problem?". Try it, and if it does not solve your problem, come back with what you tried and how you think it failed.