Skip to main content

estimation of recombination rates between short tandem repeats (STRs) along the X chromosome

Project description

RECOMBULATOR-X



recombulator-x is a Python module and command line tool for computing the recombination rates between short tandem repeats (STRs) markers along the X chromosome starting from pedigree data in forensic genetics.



:open_book: Documentation website

:page_facing_up: Please cite Paper



recombulator-x is written in Python (3.7) and can be used either as a module or as a command-line tool. It is the first open source implementation of the estimation method introduced in Nothnagel et al., 2012, which is the gold-standard for the estimation of recombination rates for X-chromosomal markers. We designed recombulator-x to solve some practical issues with the original R implementation. Its main advantages are:

  • performance: much faster than the original implementation, thanks to algorithmic improvements (dynamic programming)
  • open source: full source code and documentation available from github
  • input parsing: reads pedigree data in standard (PED) format
  • user friendly: easy installation (via pip) and usage with a simple command-line tool

We thank Prof. Michael Nothnagel for kindly sharing the original R implementation with us, which was an important reference for the development.

:open_book: Documentation

Full documentation is available online at the :open_book: dedicated website, or in this repository under docs.

:wrench: Installation

You can install recombulator-x via the pip command from the standard PyPI repository:

pip install recombulator-x

:mortar_board: Overview

STRs located on the X chromosome are a valuable resource for solving complex kinship cases in forensic genetics thanks to their peculiar inheritance mode. At the same time, the usage of multiple markers linked along the same chromosome, while increasing the evidential weight, also requires proper consideration of the recombination rates between markers in the biostatistical evaluation of kinship.

For more details on X-STR kinship analyses in forensic see Gomes et al., 2020 and Tillmar et al., 2017.

In the case of forensic X-STRs, recombination rates have been either inferred from population samples through high-density multi-point single nucleotide polymorphism (SNP) data or directly estimated in large pedigree-based studies.

The main statistical approach for the estimation of recombination rates from pedigrees computes the likelihood of kinship by taking into account all possible recombinations within the maternal haplotype, thus resorting to the exponential complexity of the underlying algorithm (see Nothnagel et al., 2012 for a thorough description of the likelihood computation). Despite a computational update in C++ allowing multi-core parallelization, this approach is expected to be unsuitable when panels of more than 15 X-STRs are considered (Diegoli et al., 2016).

We developed recombulator-x to overcome this issue. Built upon the same statistical framework of the previous work (Nothnagel et al., 2012), recombulator-x uses a new computational strategy to infer recombination rates for X-STRs, while taking also the probability of mutation into account.

:boom: Additional features

  • Data consistency checks
  • Automatic family preprocessing and informative family extraction
  • Multiple likelihood implementations included
  • Accelerated likelihood computation with the JIT Python compiler Numba
  • Mutation rates can be estimated for each marker separately or as a unique parameter
  • Simulation of pedigrees typed with STRs

:rocket: Benchmark

recombulator-x far exceeds the computational speed of the previous approach and it is scalable to many more markers.
Indeed, performance has been the main focus of recombulator-x: in a test with simulated data of the same size as the two previous works, the time necessary for the likelihood computation of a single family drops from "several months" on 32 cores of a HPC node for the previous approach to 20 minutes on a single core with recombulator-x. This is due to algorithmic improvement time complexity going from exponential to linear with our approach. Conversely, even though the algorithm time complexity is still exponential for type II families, the speed improvement is substantial with respect to the the previous implementation.

:computer: Usage

recombulator-x uses the PED files based on PLINK pedigree files as input. The PED file format stores sample pedigree information (i.e., the familial relationships between samples) and the genotypes. More information on the input file can be found in this repository under docs/3_usage.md.

The program can be used both as a Python module or a command-line tool. A detailed notebook for the Python module can be found here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

recombulator-x-1.0.0.tar.gz (21.7 kB view details)

Uploaded Source

Built Distribution

recombulator_x-1.0.0-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file recombulator-x-1.0.0.tar.gz.

File metadata

  • Download URL: recombulator-x-1.0.0.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.5

File hashes

Hashes for recombulator-x-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fb8be626d450207576f16a6b4398fe85df5ff1675a430998bcd11fb6acceaacf
MD5 a4dbaffe48601a7dccc76ca979e7f0fb
BLAKE2b-256 8bf0ce65838f8483680d4075ba5f9e2a125d4753bb42fb5fd66ca65f9d5b9555

See more details on using hashes here.

File details

Details for the file recombulator_x-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for recombulator_x-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86375fb96b698f82c21cbf314c18a45f94c6744125deafa1851cfc5b2929a1b1
MD5 f13113a61bfe6a9352a5a2929ce39981
BLAKE2b-256 7a34f155379c411cc8113521e9167bcea4cee3e7bcb58bc6f5217ae75d925f45

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page