Skip to main content

Computable object representation and validation for gene fusions

Project description

FUSOR

image image image Actions status DOI

FUSOR (FUSion Object Representation) provides modeling and validation tools for representing gene fusions in a flexible, computable structure.

Installation

Package

To install FUSOR:

python3 -m pip install fusor

SeqRepo and UTA

FUSOR relies on data from SeqRepo and the Universal Transcript Archive (UTA), supplied via Cool-Seq-Tool. See the Cool-Seq-Tool installation instructions for specifics on setting up SeqRepo and UTA.

To connect to the UTA database, you can use the default url (postgresql://uta_admin@localhost:5433/uta/uta_20210129). If you use the default url, you must either set the password using environment variable UTA_PASSWORD or setting the parameter db_pwd in the FUSOR class.

If you do not wish to use the default, you must set the environment variable UTA_DB_URL which has the format of driver://user:pass@host:port/database/schema.

Gene Normalizer

FUSOR also relies on data from the Gene Normalizer, which you must download yourself. See the README for deploying the gene database.

Development

Setup

Clone the repo:

git clone https://github.com/cancervariants/fusor
cd fusor

Create a virtual environment, and activate it:

python3 -m virtualenv venv
source venv/bin/activate

Install test and dev dependencies:

python3 -m pip install -e '.[dev,tests]'

Style

Code style is managed by Ruff and checked prior to commit.

python3 -m ruff format . && python3 -m ruff check --fix .

We use pre-commit to run conformance tests.

This performs checks for:

  • Code style
  • File endings
  • Added large files
  • AWS credentials
  • Private keys

Before your first commit, run:

pre-commit install

Unit tests

Unit testing is provided via pytest:

pytest

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

fusor-0.2.0.tar.gz (51.8 kB view details)

Uploaded Source

Built Distribution

fusor-0.2.0-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file fusor-0.2.0.tar.gz.

File metadata

  • Download URL: fusor-0.2.0.tar.gz
  • Upload date:
  • Size: 51.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for fusor-0.2.0.tar.gz
Algorithm Hash digest
SHA256 66a7c831e45e38df520ed84836d3abef7ddb3827a71f8eb9d7de43462cc5552a
MD5 829abb6488ce290aa5f6635e394bd2fb
BLAKE2b-256 e693843739f766aa8dd574c6d05aa0f6742999b4f421e973ad90784c447a3205

See more details on using hashes here.

File details

Details for the file fusor-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: fusor-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 26.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for fusor-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd39b96c06659bfb009238803426bbd62c22191c91a93665258e6a2f6f071ced
MD5 1d205fe5573b9739ee4c324e3397d420
BLAKE2b-256 e98bf758a21ad07d8044f153edbb4edf7efea3367c6e39c129c2dfc9cca9330c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page