agct: Another Genome Conversion Tool
Lift over positions between genomic reference assemblies, using the St. Jude's chainfile crate.
Enables significantly faster chainfile loading from cold start (see analysis/).
Installation
Install from PyPI:
python3 -m pip install agct
Usage
Initialize a class instance:
from agct import Converter, Assembly, Strand
c = Converter(Assembly.HG19, Assembly.HG38)
If a chainfile is unavailable locally, it's downloaded from UCSC and saved using the
wags-tailspackage -- see the wags-tails configuration instructions for information on how to designate a non-default storage location.
Call convert_coordinate():
c.convert_coordinate("chr7", 140453136, 140453137, Strand.POSITIVE)
# returns [LiftoverResult(chrom='chr7', start=140753336, end=140753337, strand=<Strand.POSITIVE: '+'>, score=14633688187)]
Development
The Rust toolchain must be installed.
Create a virtual environment and install developer dependencies:
python3 -m virtualenv venv
source venv/bin/activate
python3 -m pip install -e '.[dev,tests]'
This installs Python code as editable, but after any changes to Rust code, run maturin develop to rebuild the Rust binary:
maturin develop
Be sure to install pre-commit hooks:
pre-commit install
Check Python style with ruff:
python3 -m ruff format . && python3 -m ruff check --fix .
Use cargo fmt to check Rust style (must be run from within the rust/ subdirectory):
cd rust/
cargo fmt
Run tests with pytest:
pytest
Release files for agct 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agct-0.2.1.tar.gz | 14.3 kB | Details |
Built distributions (wheels)
Total release size: 6.5 MB
Release files / agct-0.2.1.tar.gz
| Download URL | agct-0.2.1.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94a20846178eac73ba8ae27851a1a13c92f3fdfe96e0452e6623f3730d4673a3
|
|
BLAKE2b-256 checksum How to use checksums |
93d1eca3a2873384f79c679f6afabd5f7120fbcc535257163300b8cd71a56e6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.12.6
|
Release files / agct-0.2.1-pp310-pypy310_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl
| Download URL | agct-0.2.1-pp310-pypy310_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl |
|---|---|
| Size | 378.6 kB |
| Tags | Linux glibc 2.17+ IBM System/390x PyPy 3.10 PyPy 3.10 7.3 |
|
SHA-256 checksum How to use checksums |
bb1421b0e6b53fb435fde85a0b8dd8c3fd8fa3502f24d1923f742d905f19aefa
|
|
BLAKE2b-256 checksum How to use checksums |
5885abc00760854150ae32aa6c4690bbf81e56176f47f1f7bcf170e2abf77477
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.12.6
|
Release files / agct-0.2.1-pp310-pypy310_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
| Download URL | agct-0.2.1-pp310-pypy310_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl |
|---|---|
| Size | 476.5 kB |
| Tags | Linux glibc 2.17+ PowerPC 64-le PyPy 3.10 PyPy 3.10 7.3 |
|
SHA-256 checksum How to use checksums |
bdc10eb12587b9da8e7e8f50c148ecd0b426c1525f4bf52c6b344d153f667985
|
|
BLAKE2b-256 checksum How to use checksums |
9d8301730f7bc5e1e2a57802d9766f26964d2ef7b757be9a4bf4b7ca9011106d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.12.6
|
Release files / agct-0.2.1-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | agct-0.2.1-pp310-pypy310_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 357.7 kB |
| Tags | Linux glibc 2.17+ ARMv7l PyPy 3.10 PyPy 3.10 7.3 |
|
SHA-256 checksum How to use checksums |
8d08b99feaf0a080a19f2ae66c3c6826381b461811309690570f6fcf66a5c691
|
|
BLAKE2b-256 checksum How to use checksums |
8890f4a094c4b1069a30e370968e90c035cacc59d073b75dd3ae5e3ddf15c388
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.12.6
|
Release files / agct-0.2.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | agct-0.2.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 347.2 kB |
| Tags | Linux glibc 2.17+ ARM64 PyPy 3.10 PyPy 3.10 7.3 |
|
SHA-256 checksum How to use checksums |
936925dea859230aabc1dc1cd62f1406266e34a78a4f2916560680e3b5b3d616
|
|
BLAKE2b-256 checksum How to use checksums |
80b65780117f64175f5f06ea9b754a972c73a2e8d22fdc3c53a3f985dba6902e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.12.6
|
Release files / agct-0.2.1-pp39-pypy39_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl
| Download URL | agct-0.2.1-pp39-pypy39_pp73-manylinux_2_17_s390x.manylinux2014_s390x.whl |
|---|---|
| Size | 379.2 kB |
| Tags | Linux glibc 2.17+ IBM System/390x PyPy 3.9 PyPy 3.9 7.3 |
|
SHA-256 checksum How to use checksums |
2eeab3979facacaf9968c80d7fb8df523c7e2d9d2cdfc8a6ed1e68adcb4bf6b6
|
|
BLAKE2b-256 checksum How to use checksums |
b4a9d272de8fa7ba7cf8c6bfc75a5d1733f705e9669f2378b3989c328a87a408
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.12.6
|
Release files / agct-0.2.1-pp39-pypy39_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
| Download URL | agct-0.2.1-pp39-pypy39_pp73-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl |
|---|---|
| Size | 476.9 kB |
| Tags | Linux glibc 2.17+ PowerPC 64-le PyPy 3.9 PyPy 3.9 7.3 |
|
SHA-256 checksum How to use checksums |
21dd0cf25e868616d690910ae02d4160639c659eab90dbe88f8bb7381d7d488a
|
|
BLAKE2b-256 checksum How to use checksums |
bb05913c3b6c65be83b120844424d1e57be7aa8f198758934e9b5871e492fce6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.12.6
|
Release files / agct-0.2.1-pp39-pypy39_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | agct-0.2.1-pp39-pypy39_pp73-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 358.4 kB |
| Tags | Linux glibc 2.17+ ARMv7l PyPy 3.9 PyPy 3.9 7.3 |
|
SHA-256 checksum How to use checksums |
9aab8c6e08a8538fd943c1459ba082e3ce1839611145ee9bb516cc9d006f7b35
|
|
BLAKE2b-256 checksum How to use checksums |
fb3573a7f05fb9d0b4c597581f7c79b13eb70f10e7a8bd1c70afeca5f4a6f410
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.12.6
|
Release files / agct-0.2.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | agct-0.2.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 348.2 kB |
| Tags | Linux glibc 2.17+ ARM64 PyPy 3.9 PyPy 3.9 7.3 |
|
SHA-256 checksum How to use checksums |
dd6060c1bb9ed13a4a9bc3c9498ef7ae98cec3c428242b00deef16b1e504fc6c
|
|
BLAKE2b-256 checksum How to use checksums |
4d172696cb138ff833e0c6ec6e2f74772ae803946946e93afd2845490428f3bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.12.6
|
Release files / agct-0.2.1-cp310-abi3-win_amd64.whl
| Download URL | agct-0.2.1-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 205.0 kB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
766521203aaf1ef989bed1c896139bc1f7d0498e0bc59ceb5ea7b4bda848e34a
|
|
BLAKE2b-256 checksum How to use checksums |
5600b7fe1d5561e2295c348df36eca06f60ab5562c8da1f7db8330ebd4f329a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.12.6
|
Release files / agct-0.2.1-cp310-abi3-win32.whl
| Download URL | agct-0.2.1-cp310-abi3-win32.whl |
|---|---|
| Size | 198.0 kB |
| Tags | CPython 3.10 Windows x86-32 abi3 |
|
SHA-256 checksum How to use checksums |
c3f61cee0d89ff3305c09195680763e248397c721d446d1bdc6878426d630629
|
|
BLAKE2b-256 checksum How to use checksums |
bb3f86f2ca6e4e5c9943bd7549ffcb483afbfd9018c3dcbe597a35b710904426
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.12.6
|
Release files / agct-0.2.1-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
| Download URL | agct-0.2.1-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl |
|---|---|
| Size | 378.9 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ IBM System/390x abi3 |
|
SHA-256 checksum How to use checksums |
dadde46e219ae4c2fa5843b14f70c52469b81d17b3b4e620b01dca1377112f27
|
|
BLAKE2b-256 checksum How to use checksums |
d6289f4f8b4300f98fa3979ca661c58f1df1196fed899794ad739a67e1641960
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.12.6
|
Release files / agct-0.2.1-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
| Download URL | agct-0.2.1-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl |
|---|---|
| Size | 477.7 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ PowerPC 64-le abi3 |
|
SHA-256 checksum How to use checksums |
2c9f7524d6bd40ada37fec4421687efd4381e73f26414dc7edff2c8f039fc10a
|
|
BLAKE2b-256 checksum How to use checksums |
de2e07c850c3f18904a3729b7e38ebb904c05c11452977c2d2f8d499d43b7600
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.12.6
|
Release files / agct-0.2.1-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
| Download URL | agct-0.2.1-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl |
|---|---|
| Size | 358.7 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARMv7l abi3 |
|
SHA-256 checksum How to use checksums |
a368a3f185f2d52d4221632e009c822fe026de718e7dacb6f6d655fe34ee0a13
|
|
BLAKE2b-256 checksum How to use checksums |
c2d635d3231d0b301352bdbf4cfe2cd839a7af36795744b5851b23681fca320c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.12.6
|
Release files / agct-0.2.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | agct-0.2.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 347.8 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
18ca92e1a00dd17bf57323eb072b45b1d4659b0c6da1e8f2ef6542dcb4dee8a3
|
|
BLAKE2b-256 checksum How to use checksums |
5c06235a63071f3ba8ac6489bdf648deb249cc6d203a2d68583fb07efa690f48
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.12.6
|
Release files / agct-0.2.1-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | agct-0.2.1-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 312.9 kB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
5b34761887f8126ae791a5e95b932228b6a35fa9370c07034023961494c9dbeb
|
|
BLAKE2b-256 checksum How to use checksums |
981f90dc710be2b645231ae7d04858cd7eb131eb24164b86cc368217bae24b37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.12.6
|
Release files / agct-0.2.1-cp310-abi3-macosx_10_12_x86_64.whl
| Download URL | agct-0.2.1-cp310-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 317.9 kB |
| Tags | CPython 3.10 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
2985cd1e47aaa80ee56833a38bfaedb4dfc66ac1f1483968c33f56666568881e
|
|
BLAKE2b-256 checksum How to use checksums |
a4178a1dc0cdeff56f6a24656b3e4ab6837fe2ca214bdcc5b6bc576fa8f4e133
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.12.6
|
Release files / agct-0.2.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | agct-0.2.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 354.6 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
721e2465df3878575955c38997f6a8a01eb3bfd4df0fbaa06319328c4c39a5fe
|
|
BLAKE2b-256 checksum How to use checksums |
5ad004b28e67e7edbe6905856780f98ced7761d650ff1768bf3a1fe4b2f442df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.12.6
|
Release files / agct-0.2.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl
| Download URL | agct-0.2.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl |
|---|---|
| Size | 382.2 kB |
| Tags | CPython 3.8 Linux glibc 2.5+ x86-32 |
|
SHA-256 checksum How to use checksums |
55967a37dc15ad2c35db38c3fcd911be78620def8205cb704c5c17953baa4219
|
|
BLAKE2b-256 checksum How to use checksums |
e3fce651678a26ccc98fcf05f2711cc98c9ec7cb5f186ecee22927f6e82d8cbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
maturin/1.12.6
|