Skip to main content

grumpy - Re-implementation of gumpy in Rust for speed

Does not implement the same interface, but rather the same premise.

Up to 100x faster than gumpy

Install

pip install bio-grumpy

Usage

import grumpy

# Parse a genbank file
ref = grumpy.Genome("some/path/to/a/genbank/file.gbk")

# Parse a VCF file, respecting filter fails with a MIN_DP of 3 reads to make a call
vcf = grumpy.VCFFile("some/path/to/a/vcf/file.vcf", False, 3)

# Apply the VCF's mutations to the genome
sample = grumpy.mutate(ref, vcf)

# Get the genome level differences
genome_diff = grumpy.GenomeDifference(ref, sample)
for variant in genome_diff.variants:
    print(variant.variant)
# And minor alleles
for variant in genome_diff.minor_variants:
    print(variant.variant)

# Get gene level differences for all genes with mutations
for gene_name in sample.genes_with_mutations:
    print(gene_name)
    gene_diff = grumpy.GeneDifference(
            ref.get_gene(gene_name),
            sample.get_gene(gene_name),
            grumpy.MinorType.COV,
        )
    for mutation in gene_diff.mutations:
        print(mutation.mutation)
    # And minor alleles
    for mutation in gene_diff.minor_mutations:
        print(mutation.mutation)

Threads

By default, VCF parsing will run with the same number of threads as CPU cores. This can give significant speed improvements for complex VCF files

To force single threading (or other number of threads), run grumpy.thread_setup(<thread count>). Note that should be run before any other function in this library, and should not be called more than once! Not following this will cause errors!

Metadata

Release files for bio-grumpy 1.2.3

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

Source distribution (sdist)

Source distribution for bio-grumpy 1.2.3
File Size Uploaded Provenance Actions
bio_grumpy-1.2.3.tar.gz 6.8 MB Without provenance Details for bio_grumpy-1.2.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for bio-grumpy 1.2.3
File Actions
bio_grumpy-1.2.3-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details for bio_grumpy-1.2.3-cp39-abi3-musllinux_1_2_x86_64.whl
bio_grumpy-1.2.3-cp39-abi3-musllinux_1_2_i686.whl CPython 3.9 abi3 Linux musl 1.2+ x86-32 Details for bio_grumpy-1.2.3-cp39-abi3-musllinux_1_2_i686.whl
bio_grumpy-1.2.3-cp39-abi3-musllinux_1_2_armv7l.whl CPython 3.9 abi3 Linux musl 1.2+ ARMv7l Details for bio_grumpy-1.2.3-cp39-abi3-musllinux_1_2_armv7l.whl
bio_grumpy-1.2.3-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details for bio_grumpy-1.2.3-cp39-abi3-musllinux_1_2_aarch64.whl
bio_grumpy-1.2.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for bio_grumpy-1.2.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
bio_grumpy-1.2.3-cp39-abi3-manylinux2014_s390x.manylinux_2_17_s390x.whl CPython 3.9 abi3 Linux glibc 2.17+ IBM System/390x Details for bio_grumpy-1.2.3-cp39-abi3-manylinux2014_s390x.manylinux_2_17_s390x.whl
bio_grumpy-1.2.3-cp39-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl CPython 3.9 abi3 Linux glibc 2.17+ PowerPC 64-le Details for bio_grumpy-1.2.3-cp39-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl
bio_grumpy-1.2.3-cp39-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.whl CPython 3.9 abi3 Linux glibc 2.17+ ARMv7l Details for bio_grumpy-1.2.3-cp39-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.whl
bio_grumpy-1.2.3-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for bio_grumpy-1.2.3-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
bio_grumpy-1.2.3-cp39-abi3-manylinux2010_i686.manylinux_2_12_i686.whl CPython 3.9 abi3 Linux glibc 2.12+ x86-32 Details for bio_grumpy-1.2.3-cp39-abi3-manylinux2010_i686.manylinux_2_12_i686.whl

Total release size: 15.2 MB

Release files / bio_grumpy-1.2.3.tar.gz

Download URL bio_grumpy-1.2.3.tar.gz
Size 6.8 MB
Tags Source
SHA-256 checksum
How to use checksums
eb56ea841ce88fb9cd34805810003303e42b61c609aeaa825b426792b6e2e212
BLAKE2b-256 checksum
How to use checksums
5b5a98e3de8697f31d1d80b21a7cc4030266251e4117ea75e0255067108ac3b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / bio_grumpy-1.2.3-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL bio_grumpy-1.2.3-cp39-abi3-musllinux_1_2_x86_64.whl
Size 955.0 kB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
328b55257cf2b3b40b7922722ef9f3fd3d17a41b3ab50a546e361bf4eb879ca9
BLAKE2b-256 checksum
How to use checksums
726abd7c8be4f687e98e0ece56268a68e85ab2709cc01bd2d09178d3f07c8de4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / bio_grumpy-1.2.3-cp39-abi3-musllinux_1_2_i686.whl

Download URL bio_grumpy-1.2.3-cp39-abi3-musllinux_1_2_i686.whl
Size 975.8 kB
Tags CPython 3.9 Linux musl 1.2+ x86-32 abi3
SHA-256 checksum
How to use checksums
5a18eac55b0ce9b61c09f3c5babb08b5a0a17cb55db0f05ae1bb379936ad5604
BLAKE2b-256 checksum
How to use checksums
52f28693d16c79870f77963429e59c4cae597e3e51cc8c88a12a39ba44eda8a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / bio_grumpy-1.2.3-cp39-abi3-musllinux_1_2_armv7l.whl

Download URL bio_grumpy-1.2.3-cp39-abi3-musllinux_1_2_armv7l.whl
Size 1.0 MB
Tags CPython 3.9 Linux musl 1.2+ ARMv7l abi3
SHA-256 checksum
How to use checksums
74bdfbe1b31f958073a5d5db5c7c7134f2829d91334867417804e42d987225f0
BLAKE2b-256 checksum
How to use checksums
1c5910dfdbebc30beb9bca4cf222871544329922941dfc598e56baff56a615c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / bio_grumpy-1.2.3-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL bio_grumpy-1.2.3-cp39-abi3-musllinux_1_2_aarch64.whl
Size 892.9 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
79eae384dcd6a9490a42585110b94b796287498a6cff1b4f6c8436be4ee155c7
BLAKE2b-256 checksum
How to use checksums
c861a9f7a38fea937be91364802e976209a416669daf0e646dc5e2030448c54d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / bio_grumpy-1.2.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL bio_grumpy-1.2.3-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 742.5 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
12993d9637b35b58510a8d3c2f97333625e25b520f50013c3478a68403d0d772
BLAKE2b-256 checksum
How to use checksums
f39bf22d3477546876a3cb50e7dc0a73b9f13100435c101eb61a6fb0d1ada73a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / bio_grumpy-1.2.3-cp39-abi3-manylinux2014_s390x.manylinux_2_17_s390x.whl

Download URL bio_grumpy-1.2.3-cp39-abi3-manylinux2014_s390x.manylinux_2_17_s390x.whl
Size 779.9 kB
Tags CPython 3.9 Linux glibc 2.17+ IBM System/390x abi3
SHA-256 checksum
How to use checksums
95bc8807d72a70d1c2c53bec6a68d8b40c04da8067675174b3a3198146300046
BLAKE2b-256 checksum
How to use checksums
8c0f57339041dfc894179e7689e506305e6cdc30d42e72fdb2e6702299efa5e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / bio_grumpy-1.2.3-cp39-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl

Download URL bio_grumpy-1.2.3-cp39-abi3-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl
Size 785.8 kB
Tags CPython 3.9 Linux glibc 2.17+ PowerPC 64-le abi3
SHA-256 checksum
How to use checksums
1b502c958450386b75e21f5c7e272ecf513f6a323da3633526f285d1c3578898
BLAKE2b-256 checksum
How to use checksums
5fa82db6505f85647c2f9a63453af7e6370050ae91c9c7559e7dc91e0f99bb2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / bio_grumpy-1.2.3-cp39-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.whl

Download URL bio_grumpy-1.2.3-cp39-abi3-manylinux2014_armv7l.manylinux_2_17_armv7l.whl
Size 748.6 kB
Tags CPython 3.9 Linux glibc 2.17+ ARMv7l abi3
SHA-256 checksum
How to use checksums
d9fadff2d64c9ae5fd4dfeb5ef3c6a74e1c94dd114c50d2a3f9aca4bce73bc08
BLAKE2b-256 checksum
How to use checksums
1c354b32676c6aa617ac3abcf89ed554f1a23d79b333928a384095192219a41d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / bio_grumpy-1.2.3-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL bio_grumpy-1.2.3-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 713.8 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
0f8bbe4085b001ceb48de6485b31c177ad069c6b407f7bed9a21443129ef2c9e
BLAKE2b-256 checksum
How to use checksums
14b60aec1601ab3bbb4250d3e14a42f6675e334066d4da3a6e018f54316a69b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / bio_grumpy-1.2.3-cp39-abi3-manylinux2010_i686.manylinux_2_12_i686.whl

Download URL bio_grumpy-1.2.3-cp39-abi3-manylinux2010_i686.manylinux_2_12_i686.whl
Size 766.7 kB
Tags CPython 3.9 Linux glibc 2.12+ x86-32 abi3
SHA-256 checksum
How to use checksums
9da2062a9d5cdf88bafb6eb29181ce6abcf601cea0794da7fcb0c9228354a177
BLAKE2b-256 checksum
How to use checksums
2996542dadcb952f83a9858cbf52c14468e82372944404b553e03bf261ddde39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Security for bio-grumpy 1.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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