Skip to main content

Python bindings for rsx: high-performance RAD-seq sex determination toolkit

Project description

pyrsx

Python bindings for rsx: a high-performance streaming toolkit for RAD-seq sex determination.

Installation

pip install pyrsx

Usage

import pyrsx

# Process FASTQ files into marker depth table
pyrsx.process("reads/", "markers.tsv", threads=4, min_depth=5)

# Compute distribution with Fisher's exact test + FDR
pyrsx.distrib("markers.tsv", "popmap.tsv", "distrib.tsv",
              test="fisher", correction="fdr")

# Extract significant markers with Bayesian output
pyrsx.signif("markers.tsv", "popmap.tsv", "signif.tsv",
             test="fisher", correction="fdr", bayes=True)

# Streaming PCA
pyrsx.pca("markers.tsv", "pca_results/", n_components=10)

# Merge tables (bounded memory, handles 75M+ sequences)
pyrsx.merge(["table1.tsv", "table2.tsv"], "merged.tsv")

Features

  • All rsx commands accessible from Python
  • 2-5x faster than C++ RADSex
  • Bounded-memory streaming for arbitrarily large datasets
  • Multiple statistical tests: chi-squared, Fisher's exact, G-test
  • Multiple corrections: Bonferroni, Benjamini-Hochberg FDR
  • Bayesian sex-linkage classification (Bayes Factor + posterior)
  • Streaming PCA via Tucker mode-2 decomposition
  • K-mer based marker deduplication

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

pyrsx-0.1.0.tar.gz (69.3 kB view details)

Uploaded Source

Built Distributions

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

pyrsx-0.1.0-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl (800.8 kB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

pyrsx-0.1.0-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl (807.4 kB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

pyrsx-0.1.0-cp39-abi3-manylinux_2_28_aarch64.whl (807.1 kB view details)

Uploaded CPython 3.9+manylinux: glibc 2.28+ ARM64

pyrsx-0.1.0-cp39-abi3-macosx_11_0_arm64.whl (661.4 kB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

pyrsx-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl (770.5 kB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

pyrsx-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (849.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

File details

Details for the file pyrsx-0.1.0.tar.gz.

File metadata

  • Download URL: pyrsx-0.1.0.tar.gz
  • Upload date:
  • Size: 69.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyrsx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 679872c0e64658d906c18264010541def10c063663954ace08e66b87b8df9c48
MD5 631582e0678d2a2bf129e5b3437cd1ee
BLAKE2b-256 6dbc648109dabdaa9baad82cc54d208ea5220dab98d552724db92a31f8b4b85f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrsx-0.1.0.tar.gz:

Publisher: pypi.yml on HaoZeke/rsx-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyrsx-0.1.0-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pyrsx-0.1.0-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 563de83698eed067864be0c2c9bb384ae9c3f3eab19b68d8cceffb0e901ecd14
MD5 cacffb9f0cd7c0f96f220ed63ef524dc
BLAKE2b-256 07a23a5bbf0dab19e332de3ef39803968766e78e76185e7e8220567cf226514a

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrsx-0.1.0-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl:

Publisher: pypi.yml on HaoZeke/rsx-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyrsx-0.1.0-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pyrsx-0.1.0-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 69f1ba0f02ffb964fc63b06ecedcc6cb3e064597e17281570328b7d75faf11e4
MD5 2ae7e71932df6eff5122c86f6cc88dfc
BLAKE2b-256 05399c65cea46b66836ae723ad0f7a05702620ad8cc56fabf6564dacf349921f

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrsx-0.1.0-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl:

Publisher: pypi.yml on HaoZeke/rsx-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyrsx-0.1.0-cp39-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for pyrsx-0.1.0-cp39-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4ecee51d5c602b42bb409f9ccb295db5553a5baf4b2568d46642ee1166e159b4
MD5 304d08a3865356bf58033548f7dc928f
BLAKE2b-256 3267d2be88acdf32f885c1dc1cf4cf5e83e914d5738989715adf829582dc083d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrsx-0.1.0-cp39-abi3-manylinux_2_28_aarch64.whl:

Publisher: pypi.yml on HaoZeke/rsx-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyrsx-0.1.0-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

  • Download URL: pyrsx-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 661.4 kB
  • Tags: CPython 3.9+, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyrsx-0.1.0-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 56b23672d01797cf66d14bba5a6719f99dda2a9444ebff9d2569930b3a8f3396
MD5 4f8c681385d35124cda8877dd6334602
BLAKE2b-256 02e089f0bed09f7b91b0c01fdf0c99f65ba435b52c2a664f175f4846ac34d3fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrsx-0.1.0-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: pypi.yml on HaoZeke/rsx-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyrsx-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for pyrsx-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1d54326067815ba1d58930fa4c4c0e9be239bb476a5d539b2f9cbf616ea11c9b
MD5 44b9f9afacadd3f4d5c630da73473cca
BLAKE2b-256 6950395980f55cc7b22590f1bbc49fe5437ea01c0ddb6f2b826685957707695e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrsx-0.1.0-cp39-abi3-macosx_10_12_x86_64.whl:

Publisher: pypi.yml on HaoZeke/rsx-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyrsx-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyrsx-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 887ea660e258c0ff473489471bbccff6b68a4df6558133fd5cc23de9bd790545
MD5 6bace516ef113273f72e92418330ab85
BLAKE2b-256 82b12deb6e5a7ffb8cd3f5c245b05fd29fbac7a2c1d743de0b8236b3ac36b4cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyrsx-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: pypi.yml on HaoZeke/rsx-rs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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