pixy
is a command-line tool for painlessly estimating average nucleotide diversity within (π) and between (dxy) populations from a VCF. In particular, pixy facilitates the use of VCFs containing invariant (monomorphic) sites, which are essential for the correct computation of π and dxy in the face of missing data (i.e. always).
The manuscript describing pixy is now published in Molecular Ecology Resources.
Kieran Samuk (UC Riverside) and Katharine Korunes (Duke University)
If you use pixy
in your research, please cite the manuscript below, as well the Zenodo DOI of the specific version of pixy used for your project..
Manuscript
Korunes, K.L. and Samuk, K. (2021), pixy: Unbiased estimation of nucleotide diversity and divergence in the presence of missing data. Molecular Ecology Resources. https://doi.org/10.1111/1755-0998.13326
Zenodo DOI for various versions of pixy
Go to https://zenodo.org/badge/latestdoi/181987337 and find the DOI that matches the version used (the current version is shown first).
pixy
is currently available for installation on Linux/OSX systems via conda, and hosted on conda-forge. To install pixy using conda, you will first need to add conda-forge as a channel (if you haven't already):
conda config --add channels conda-forge
Then install pixy and htslib:
conda install -c conda-forge pixy
conda install -c bioconda htslib
You can test your pixy installation by running:
pixy --help
If you have trouble installing pixy in an environment using python 3.9, try rolling back to python 3.8.
For information in installing conda, see here:
anaconda (more features and initial modules): https://docs.anaconda.com/anaconda/install/
miniconda (lighter weight): https://docs.conda.io/en/latest/miniconda.html
We have made every effort to ensure that pixy provides accurate and unbiased results. As described in the paper, we use population genetic simulations, where the true value of parameters is exactly known, to assess the performance of pixy. However, because of the huge biological and methodological parameter space around preparing VCFs, it is not possible to guarantee that pixy will specifically work for your organism of interest. As such, it is ultimately up to the investigator to check that pixy is performing as expected for their use case, e.g. by simulating their data-generation process, including missingness.