Hi I'm really new to bioinformatics, but I'm trying to learn how to use Docker to use linux and bcftools.
I need some help annotating a smaller .vcf file using the INFO column of a larger .vcf file. The manual for bcftools is not really clear to me on what options I need and the syntax for those options. I believe I need to create a file that just says "INFO" in it to take all the info from that file and annotate the smaller one but I don't think that's correct. I'm not sure what file type it's supposed to be, could someone help me out with this?
I think the syntax is: bcftools annotate -c largefile.vcf infofile.vcf smallfile.vcf
right?
Honestly, I'm lost. I really need some help quick.
Thanks so much.
What exactly was the command line you used? bcftools output gzipped vcf by default, so try renaming OCT1.genome_min.vcf to OCT1.genome_min.vcf.gz and retry.
It was
I tried renaming it and running it again but got the same error.
I mean the
bcftools annotate
command line.Oh, sorry. I haven't run a complete one yet. I'm trying to figure out which INFO tags I want to carry over from one file to the other, which is why I'm trying to view it.
EDIT Never mind! All good now
Wait a minute, now if I try it, it gives me the error: Failed to open smallfile.vcf: unknown file type. Am I supposed to be doing something that I'm not doing?
If you did that successfully on a different file yesterday, then check whether the smallfile.vcf you're using today have been indexed.
ahh okay it's good now. thanks