Skip to main content

Package for converting between genome build coordinates

Project description

python liftover utility

Converts point coordinates between genome assemblies. Inspired by pyliftover, the primary advantage this offers is dictionary style conversion, as in access converted coordinates via converter[chrom][pos].

Installation

Install via pip: pip install liftover

Usage

from liftover import get_lifter

converter = get_lifter('hg19', 'hg38')
chrom = '1'
pos = 103786442
converter[chrom][pos]

converter.query(chrom, pos)

# alternatively create a converter directly from a chainfile
from liftover import ChainFile
converter = ChainFile('/home/user/hg18ToHg38.over.chain.gz', 'hg18', 'hg38')
converter[chrom][pos]

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

liftover-1.0.1.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file liftover-1.0.1.tar.gz.

File metadata

  • Download URL: liftover-1.0.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for liftover-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3ec635b08873014c83873075d82c5594f82a6493d206c46787a9795599468c5e
MD5 f70e4a5eea33928b7c1b714d6d49f049
BLAKE2b-256 250785a6db39d3a82f6cd6ee906b86e32eb2dae4f429aad09cad8f190725fae5

See more details on using hashes here.

Supported by

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