Skip to main content

Fusion-function

Coverage

Predict fusion reading frames and retained, disrupted, or excluded functional protein features from human GRCh38 transcript breakpoints. Predictions include effects of splicing, translation initiation, and premature termination. Annotation uses a preprocessed local SQLite reference.

Quick start

pip install fusion-function
fusion-function prepare-data

Preparation downloads a compatible prebuilt reference for the latest Ensembl release when available, otherwise builds it from source. The reference is stored in the default user cache; source builds can take an hour or longer.

Use the annotate_fusion_domains function to get information about the status of various domains in the expected fusion product

from fusion_function import ReferenceDatabase, annotate_fusion_domains

with ReferenceDatabase() as ref:
    # ex. BCR::ABL1
    result = annotate_fusion_domains(
        transcript1_id="ENST00000305877",  # BCR
        transcript2_id="ENST00000318560",  # ABL1
        breakpoint1="22:23290413",
        breakpoint2="9:130854064",
        gene1_terminus="N",
        gene2_terminus="C",
        reference=ref,
    )

This will return an object with the following shape. See the api for details.

{
    "frame_status": "in_frame",
    "domains": [
        {
            "transcript_id": "ENST00000305877",
            "interpro_id": "IPR036481",
            "name": "Bcr-Abl oncoprotein oligomerisation domain superfamily",
            "domain_type": "homologous_superfamily",
            "start": 1,
            "end": 67,
            "sources": ["SuperFamily"],
            "feature_ids": ["SSF69036"],
            "breakpoint_based_status": "included",
            "breakpoint_retained_percent": 100.0,
            "post_splicing_status": "preserved",
            "post_translation_status": "preserved"
        },
        ...
    ],
    "translation_start": {"ENST00000305877": "native_start_retained"}
}

Analysis uses the newest prepared local release by default.

Documentation

Important Limitations

  • This package uses the splicing model defined by MAVIS, this is non-exhaustive. It assumes splice sites to be disrupted based on a breakpoint being within 2bp but there are many other ways to disrupt splicing that are difficult to predict computationally (ex. deep intronic). This package only covers the standard scenarios
  • Currently we only support Hg38
  • Only exact breakpoints are supported
  • Predicted structural consequences do not establish fusion expression, oncogenicity, pathogenicity, or clinical actionability.

Citation

This package ports and extends selected fusion-annotation logic from MAVIS. Please cite:

Reisle C, Mungall KL, Choo C, et al. MAVIS: merging, annotation, validation, and illustration of structural variants. Bioinformatics. 2019;35(3):515–517. PMID:30016509.

Metadata

Release files for fusion-function 0.2.1

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

Source distribution (sdist)

Source distribution for fusion-function 0.2.1
File Size Uploaded
fusion_function-0.2.1.tar.gz 71.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fusion-function 0.2.1
File Interpreter ABI Platform
fusion_function-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 146.4 kB

Release files / fusion_function-0.2.1.tar.gz

Download URL fusion_function-0.2.1.tar.gz
Size 71.0 kB
Tags Source
SHA-256 checksum
How to use checksums
72ea4cc560c8c7d7f68ef1aa182b86870096642ffc54db2dabfa0c1da50515db
BLAKE2b-256 checksum
How to use checksums
87dcecef7031118ac6792a96bbe67d1f63f33d20e2d0e9c6cf6651500d1027b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 3, 2026.

Transparency log

Release files / fusion_function-0.2.1-py3-none-any.whl

Download URL fusion_function-0.2.1-py3-none-any.whl
Size 75.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61296f2e6643d3359caa4dd39d453e0c6a4e219315a288289cfdcc532f4de4b8
BLAKE2b-256 checksum
How to use checksums
44f5f7fb561140e63539a60f06c3384ee0a9653a29ef6d906160f21c6d7ebd8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 3, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

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