Responding to these followup questions:
Hi Dan,
Thanks a lot for your reply. Started with the first 3 point and will write again about the rest.
- For column header: General information about each column for example: first column say contains chromosome number , second contains Position, third contains what? And so on ...
- Which exact command provides the count of monomorphic and alternative variants
- I am trying the following command with the first command I try, the output is following error:
bcftools plugin counts input.vcf.gz..... displays an error :No functional bcftools plugin were found. The enviornment variable BCFTOOLS_PLUGIN is not set. How do I set the environment variable it will be great of you could please provide me how to set the environment variable.Regards
Nihar
- Again, the VCF format is a specification, and the columns are defined by that specification. The most recent (4.2) spec can be found here. It is always Chrom, Pos, ID (usually dbsnp ID), Ref, Alt, Qual, Filter, Info, and Format. The following columns after that are sample columns with the genotype data.
- There is no specific command beyond
bcftools stats <bgzipped vcf file name>. There are command line options that you can use to refine the stats but the base command outputs a bunch of info, if you look through the results you'll see the data you are looking for. - I haven't been using any plugins and the exact location of your plugins directory would depend on how and where you installed bcftools. How you set environment variables depends on the OS you are using. In Linux you usually set it in .bashrc, .profile, or .bash_profile depending on the terminal you are using, and the distribution. OSX is usually in something like .profile I believe (all of these are usually found in your home directory) and the syntax again depends on the terminal you are using. For most with bash (or dash) it is something like
export ENV_VARIABLE="Something"so for instanceexport BCFTOOLS_PLUGIN="/path/to/bcftools/plugin/directory"You can find detailed instructions for setting environment variables for your particular OS/distribution fairly easily with a few google searches if you need more information.