Skip to main content

Tools for indexing GREGoR VCFs

Project description

vrsix: Indexing VRS-Annotated VCFs

Overview

vrsix provides a file-based indexing strategy to support fast lookup of AnVIL-hosted VCFs using IDs and annotations drawn from the GA4GH Variation Representation Specification.

See the vrsix Terra workflow for a readymade Terra implementation.

Usage

From a VCF, ingest a VRS ID and the corresponding VCF-called location (i.e. sufficient inputs for a tabix lookup), and store them in a sqlite database.

vrsix load chr1.vcf

All instances of variations are stored with an associated file URI to support later retrieval. By default, this URI is simply the input VCF's location in the file system, but you may declare a custom URI instead as an optional argument:

vrsix load chr1.vcf gs://my_stuff/chr1.vcf

By default, all records are ingested into a sqlite file located at ~/.local/share/vrsix.db. This can be overridden with either the environment variable VRS_VCF_INDEX, or with an optional flag to the CLI:

vrsix load --db-location=./vrsix.db input.vcf

Development

Ensure that a recent version of the Rust toolchain is available.

Create a virtual environment and install developer dependencies:

python3 -m venv 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 from the project root with pytest:

pytest

Some granular tests are written directly into the Rust backend as well:

cd rust/
cargo test

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

vrsix-0.1.1.tar.gz (22.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

vrsix-0.1.1-cp313-cp313t-musllinux_1_2_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ x86-64

vrsix-0.1.1-cp313-cp313t-musllinux_1_2_i686.whl (2.4 MB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ i686

vrsix-0.1.1-cp313-cp313t-musllinux_1_2_armv7l.whl (2.3 MB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARMv7l

vrsix-0.1.1-cp313-cp313t-musllinux_1_2_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.13tmusllinux: musl 1.2+ ARM64

vrsix-0.1.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ x86-64

vrsix-0.1.1-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl (2.3 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ s390x

vrsix-0.1.1-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (2.2 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ppc64le

vrsix-0.1.1-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl (2.3 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ i686

vrsix-0.1.1-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (1.9 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARMv7l

vrsix-0.1.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.17+ ARM64

vrsix-0.1.1-cp313-cp313t-macosx_11_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.13tmacOS 11.0+ ARM64

vrsix-0.1.1-cp313-cp313t-macosx_10_12_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.13tmacOS 10.12+ x86-64

vrsix-0.1.1-cp310-abi3-musllinux_1_2_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ x86-64

vrsix-0.1.1-cp310-abi3-musllinux_1_2_i686.whl (2.4 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ i686

vrsix-0.1.1-cp310-abi3-musllinux_1_2_armv7l.whl (2.3 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARMv7l

vrsix-0.1.1-cp310-abi3-musllinux_1_2_aarch64.whl (2.2 MB view details)

Uploaded CPython 3.10+musllinux: musl 1.2+ ARM64

vrsix-0.1.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

vrsix-0.1.1-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (2.3 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ s390x

vrsix-0.1.1-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (2.2 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ppc64le

vrsix-0.1.1-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl (2.3 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ i686

vrsix-0.1.1-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (1.9 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARMv7l

vrsix-0.1.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ ARM64

vrsix-0.1.1-cp310-abi3-macosx_11_0_arm64.whl (1.9 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

vrsix-0.1.1-cp310-abi3-macosx_10_12_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file vrsix-0.1.1.tar.gz.

File metadata

  • Download URL: vrsix-0.1.1.tar.gz
  • Upload date:
  • Size: 22.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.8.1

File hashes

Hashes for vrsix-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a6ac7e3bfa4e8cfba21bd94bbfe1f1f7fa95628e01e009ca52108b7c924db84a
MD5 cd53eaa0ee0b9209bf745355f3e54d74
BLAKE2b-256 a6d0bacf1202357e7192cd9afd6ada8dfc814dd0cfd322449b179395c1b3c3f2

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp313-cp313t-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp313-cp313t-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d5df4cad4679eb0f9332c0fbdd444525c9bc45d3c4850fd81055260ab55f0cb1
MD5 983b736efaed3ffddeebedef3072e26c
BLAKE2b-256 cdde04fb44ed491a0de089d7778f7cf6b337578945c78a4625ceae975b49b38f

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp313-cp313t-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp313-cp313t-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 25f84ad6c2d7746b1cd892c230ea9c0a29879d9f044a300000f374af84e8f3a9
MD5 847c88a9f82f63a0cfa9aee68b3c48e9
BLAKE2b-256 93c723d365791f54f415282ead1d91b4375bb8ad3d4d94c3e0524400a4903bfb

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp313-cp313t-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp313-cp313t-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 27144050ae8a0fec30dfc4b46dca86bac3bfdf97423a6e05ed2f60a14ebeae47
MD5 8936c5aa9b826a472fd49db1322b33c6
BLAKE2b-256 13ddaa4857e541a39c96f3d250b00ef9a62bdf44c87ea00ddaa833937eb207ad

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp313-cp313t-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp313-cp313t-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 7e7c66a4b38216639f78268fadea4f8347d667cd82d98c85d9da6a3e86af9463
MD5 309345b08a255aa78aa0b256ae7e9ad6
BLAKE2b-256 a9674cf2d053abdec7160b24f3d7de1342d60d5e8deca409bbf341da1da8a490

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 565fc96c97f1565765d0cd9a58157625922a0a440ae81c8a56f201592d694451
MD5 b75d26088312eac3702745b4e2e3226a
BLAKE2b-256 a22ddd2f7308c73687f239a28e32ad77f20175d13231464f75041eff13f6b2a9

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp313-cp313t-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 05bac382299eda17cb343c0e44a7188610d92b135c85f407a469f4427fbeae47
MD5 808dd30a19a5137b633d579bf7688764
BLAKE2b-256 833f3fc3779121c2076189529a36116cc17dc0c033dea40d5e505e5868133b4c

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 5a6636a6ad35a8d3e4ef1053b187973b41f47aa4db9f223babaa568c95ca0a6a
MD5 2baee853b41be039040a6b87990177b3
BLAKE2b-256 42ce4d72f78795d25fde39097f8b642cb7a82aa26b393e6cb37c2a7e1dd3db76

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 8155952a0398ddb0b2ae0e3b2f50be7c117854920eb90fbd0e570c20f46de31b
MD5 7d25c388f6fc1089e59037d36407b009
BLAKE2b-256 c896c4637b421914fd4b61d0f9dfc81c98ca1f0ee7fffe496afaa7355ebc3cbb

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp313-cp313t-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 7f9cd57cbbb044427d46ce913c22fac06198b3509cdf0467501921cf07d0ba87
MD5 9a84d60a2e6e92477f6085f4be6e873b
BLAKE2b-256 108c4b0adc9a4a6f70c8cd2c8de87e89535f371a29338f52585ce539d7464be3

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 cc5fe99247e4054e745312b82968198726e348092417255c2709e31cbda512fb
MD5 12ccfc600c85c831028d19811e544bc0
BLAKE2b-256 825db80ad729bb4d18507a27946fba4bc0eec459efc9bf62ea0f37b3b4db2fc2

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp313-cp313t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp313-cp313t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 19d7dec9baeda31c3259dfafd0d978ea9975cf6e45b171bcc976a9bf165ef1b1
MD5 29f67a123a37c7fc69267b64943746de
BLAKE2b-256 f7d63fdddfef2e7ee882c51d682ca29c0f2e0bb9b3d25e8ce5f41ff70dd07e1e

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp313-cp313t-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp313-cp313t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a48548f3ee4e204a53c6a91e13c759e6080550329edea853525947a045f765a5
MD5 fafab34bde16fe99d5e658c94fbc92ea
BLAKE2b-256 b26c713647137b4551da0207b1507718e7c47daadf071f7b6b37bafd8c3548a7

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp310-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp310-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 8a7dc019f8939c89d9fc931baf1c02bbd24d5c7bfb923db5eea0a147d19dcb7e
MD5 173b67dbbc1d85b88b1699b0cf266f69
BLAKE2b-256 c131ff3c69fd93d0c46f19dc726b1ce7b2a0a83cf2ebeece52b3d1b68cd51765

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp310-abi3-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp310-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 40a299d5162bc0ebe6ef965fbfcd0a5cefe41112ffdcdc2986303632789f3556
MD5 124e013051b2c0accb396f728f59b8ec
BLAKE2b-256 5f6c06c18f1e2ec62100dfce7e0039d05f49b652b043f866e7cfc2313ffcb5bf

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp310-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp310-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 4a275a71e11a64ec0220c26e8d1d4272f6a19d16a4a22dbab694014d1b3f6a96
MD5 8366ede69b945514d9aa4ca08206c108
BLAKE2b-256 004f99479d82a845a5966759916691184269f9d3705a4cdb46f2489b3c87d1ff

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp310-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp310-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 85b99872cd4b7b56e162e2d841cca99d744b129f6f5ea8e0a25ec17e2f2c42fe
MD5 19c7cfd8203f14d9d5ae41ab8859e83a
BLAKE2b-256 8acc4ad03c8f30f761b293d34083fb00df7b63557d0c1f390d3cdcdc71eec6ca

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 efd63c2ccb0d9063a76cafdaaca1fecfb01cf310a8c032146d2ebfc83d65afab
MD5 a9d9fb2a1230e0d4b558212039c0d848
BLAKE2b-256 a5db62b5ea2335ec8009c8b4f9c716764d1372cb67cc4bc06681a87fcec41670

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp310-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 d7c5f995e5e4a7f17a3bc0099416651bbf62f36665640f61d1bbc4962ffa03b5
MD5 a1fa1325c5c9d394f1f6cd4355dd347c
BLAKE2b-256 f95adaf4aa58afa3f810f9757642359a27ee8d49048001c8b6e801c75c8ec885

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp310-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 97695fd7c32fdebaf4fdd494b760c654e56a0ebd59933551995f599b44206ad4
MD5 d242c05d632a3f773599646a309dc5c5
BLAKE2b-256 4b88c2ab1bad99bc04a0ab9112f7d9832061004f21391883710a28f1eeaa43b5

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp310-abi3-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 703d6a5bd7bd1e1e4c14cf18d43da0057b086dae347830281b518daceeb6b25c
MD5 04cf25c35c2c185a8a4c207f535a3bea
BLAKE2b-256 e7195da39916f0afbce3421e6166d4cffb5e8b07aa6ba27316fb74ba9d01c522

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp310-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 89520e63a4519676c886ce2d190f5b6d9aebc33aaf23d1bd78eb2422b73d5c30
MD5 1bf5d1841cd6104d8661fe1e2ca89259
BLAKE2b-256 0017a8ef47942183233c0bfc1132b8adde3def48f87771cb3c4447eaa38eadd9

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp310-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 47b2f2ce91f23d2036d98831c78af02787d8009e99c59f06bd94a372d6428078
MD5 03f205bee62a2636a1b6610abc1304f0
BLAKE2b-256 5160a480d4c3c73d5152dbc6f2fa49b7c8d6b9d99c822abbf6d4e02550a74db3

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d739d2abfaacf96fa87003fa5dbe0476c163052b7bf0de4b5ac86c39185e23c
MD5 9d83fb8b23df58ca9d32227585e30bfa
BLAKE2b-256 c634e684cfaf7fa61c3b630d30473c6b515f2851b96c83766dba4e24660facf3

See more details on using hashes here.

File details

Details for the file vrsix-0.1.1-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for vrsix-0.1.1-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ea2776570a2739571de104eb81406cf295728f8b7b138e07d091c4b8bd9c4fc3
MD5 6b295b11310843edba2a1b36177d1119
BLAKE2b-256 58bcee0f7f8368187908c5bad0b4f382bfaf8a4884f29a55c054ca328e52f498

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