Skip to main content

routecost

PyPI version License: MIT

routecost quantifies multi-step amino acid substitution routes across paired deep mutational scans (MaveDB score-set URNs or local CSV/TSV files) and runs the pre-analysis Spearman rank agreement test that determines whether two scans can be compared on a shared biological scale.

230 of the 380 ordered pairs of standard amino acids require more than a single nucleotide change. Single-parent mutational scans measure only the direct substitution from one background; wherever the same protein has been assayed on two parental sequences that differ at one or more positions, routecost extracts the double-difference routing residuals, dispersion-matched shared-parent control nulls, and exact single-difference rank correlations.

Installation

pip install routecost

Command-Line Usage

Compare two MaveDB score-set URNs directly:

routecost --a urn:mavedb:00000044-a-1 --b urn:mavedb:00000668-a-1 -o routes.csv

Compare two local CSV or TSV deep mutational scan tables (hgvs_pro + score, or pos/wt/alt/score columns):

routecost --csv-a scan_parent1.csv --seq-a MKTIIALSYIFCLVFA \
          --csv-b scan_parent2.csv --seq-b MKTIIALSYVFCLVFA \
          -o routes.csv

Run the exact rank-agreement check (rho_test at differing positions, rho_control across shared-parent positions, and predictor attenuation ceiling):

routecost --csv-a scan_parent1.csv --seq-a MKTIIALSYIFCLVFA \
          --csv-b scan_parent2.csv --seq-b MKTIIALSYVFCLVFA \
          --exact-test

Query minimum nucleotide base changes and single-step codon intermediates between any two amino acids:

routecost --codon-path W M

Python API

from routecost import (
    load_csv_scan,
    analyse_routes,
    exact_agreement_test,
    codon_pathway,
)

info = codon_pathway("V", "T")
print(info["min_base_changes"], info["single_step_intermediates"])

scan_a = load_csv_scan("scan_a.csv", sequence="MKTIIALSYIFCLVFA", name="parent_A")
scan_b = load_csv_scan("scan_b.csv", sequence="MKTIIALSYVFCLVFA", name="parent_B")

rows, control_pool = analyse_routes(scan_a, scan_b, matched_null=True)
agreement = exact_agreement_test(scan_a, scan_b)

Citation

Karagöl, T., Karagöl, A. Most substitutions need more than one base change and an exact test tells which deposited scans measure the route. bioRxiv (2026). https://doi.org/10.64898/2026.11.17.767252

License

Released under the MIT License.

Metadata

Release files for routecost 0.1.0

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

Source distribution (sdist)

Source distribution for routecost 0.1.0
File Size Uploaded Provenance Actions
routecost-0.1.0.tar.gz 13.4 kB Without provenance Details for routecost-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for routecost 0.1.0
File Interpreter ABI Platform Actions
routecost-0.1.0-py3-none-any.whl Python 3 none any Details for routecost-0.1.0-py3-none-any.whl

Total release size: 25.6 kB

Release files / routecost-0.1.0.tar.gz

Download URL routecost-0.1.0.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
89b2c0572769abf4e56e6444e0aab1939ebde5eeff59254560e1b11f6bd8a2cc
BLAKE2b-256 checksum
How to use checksums
15dcf7fdf3d2003d19de0e365dbbd9c15de2d8e7946977544f9d88f8ac82c30b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / routecost-0.1.0-py3-none-any.whl

Download URL routecost-0.1.0-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efc570e0ab13846970fc213339b0709efc1a5cbe515d6fc13f1221d67bf909f2
BLAKE2b-256 checksum
How to use checksums
04fc8691e72fcd760edb36f122bbb8ce5cf24a2e7b1de55e1d161b9b1e19d145
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for routecost 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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