Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

variant-mapper

version: 0.1.1b0

The variant-mapper is a package to map genetic variants map genetic variants to the genome, in order to validate them and assign an rs ID.

This will:

  1. Localise the genetic variant based on chromosome position, using either a file join approach or tabix.
  2. Determine if the ref/alt alleles match to a known variant site, it assumes that ref/alt can be flipped.
  3. If a site can be identified then it will annotate the variant with function information.
  4. If no site can be identified
  5. If an INDEL, normalise the alleles and attempt mapping again.
  6. Finally, is still can't be mapped validate one of the alleles against the reference genome assembly
  7. This can also handle cases where only a single allele is known, assuming the site is bi-alleilic and the ref allele can be localised.

The mapper works by having a common mapper file and a full mapper file. The common mapper file contains common variants usually used in GWAS studies and the full mapper file has all known variant from dbSNP and from other projects as well.

You can either map by localising the genetic variants using tabix or by a table scan (file join) approach. The file join is most efficient if you have millions of variants, or rather if your input fie is ~10-20M variants. In this case the common file is used for the join and where something can't be mapped then a tabix query is tried again the full file. In many cases the common file is good enough but it might miss some variants. In any case, please contact me for a download link. There is nothing super secret about the mapping file, UCL does not offer any file distribution and I have no other official way of distributing it, so it is on my personal pCloud at the moment.

Installation

This can be installed using pypi or conda

To install using pypi:

pip install variant-mapper

To install using conda:

conda install -c cfin -c conda-forge variant-mapper

Documentation

There is online documentation for variant mapper.

Release files for variant-mapper 0.1.1b0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for variant-mapper 0.1.1b0
File Size Uploaded
variant_mapper-0.1.1b0.tar.gz 162.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for variant-mapper 0.1.1b0
File Interpreter ABI Platform
variant_mapper-0.1.1b0-py3-none-any.whl Python 3 none any Details

Total release size: 345.5 kB

Release files / variant_mapper-0.1.1b0.tar.gz

Download URL variant_mapper-0.1.1b0.tar.gz
Size 162.7 kB
Tags Source
SHA-256 checksum
How to use checksums
62bee43f0d2e25b8ecef3bf16d00749953eefca91372df78334fae57f3e560a3
BLAKE2b-256 checksum
How to use checksums
da4ed5f314a6ea55d6551f60cf9fc607355ac9d964c48f81392a37c68d3e2f66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Release files / variant_mapper-0.1.1b0-py3-none-any.whl

Download URL variant_mapper-0.1.1b0-py3-none-any.whl
Size 182.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
363b0f0697468fb55388491300fccf89914ee363e357c2e2e528ae5668c8e0ad
BLAKE2b-256 checksum
How to use checksums
a3f698f4369759568d528f344b8ebd1f67501d11fc7afa70d699a415aa748dbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.0

Release history Release notifications | RSS feed

This release

0.1.1b0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page