Welcome to selectiontest’s documentation!

Overview

This repository contains python modules and command line scripts to support testing for selective neutrality using relative likelihood. It enables application of the methods described in Simon and Huttley 2021 A New Likelihood-based Test for Natural Selection bioRxiv doi = 10.1101/2021.07.04.451068. For other software supporting that paper, but not required for applications, see https://github.com/helmutsimon/NeutralityTest.

Functions available include:

  • calculate statistic for relative neutrality, \({\rho }\), which is a relative likelihood of two models;
  • generate variates corresponding to the Wright-Fisher model and the `uniform distribution’ model;
  • calculate Tajima’s D (for comparison purposes);
  • calibrate \({\rho }\), that is, find the threshold corresponding to a desired false positive (Type I error) rate; and
  • generate variates corresponding to a piece-wise constant demographic history.
  • compute SFS from variant data in vcf format.

Source

Source code is hosted at https://github.com/helmutsimon/selectiontest.

Citation

Bibtex:

@article{simon2021new,
title={A new likelihood-based test for natural selection},
author={Simon, Helmut and Huttley, Gavin A.},
journal={bioRxiv},
year={2021},
doi= {10.1101/2021.07.04.451068}
publisher={Cold Spring Harbor Laboratory}

}

Indices and tables