Utitilies for constructing and manipulating models for non-local structural dependencies in genomic sequences
Project description
Quasinet
Description
Infer non-local structural dependencies in genomic sequences. Genomic sequences are esentially compressed encodings of phenotypic information. This package provides a novel set of tools to extract long-range structural dependencies in genotypic data that define the phenotypic outcomes. The key capabilities implemented here are as follows:
- Compute the Quasinet (Q-net) given a database of nucleic acid sequences. The Q-net is a family of conditional inference trees that capture the predictability of each nucleotide position given the rest of the genome. The constructed Q-net for COVID-19 and Influenza A H1N1 HA 2008-9 is shown below.
COVID-19 | INFLUENZA |
---|---|
-
Compute a structure-aware evolution-adaptive notion of distance between genomes, which is demonstrably more biologically relevant compared to the standard edit distance.
-
Draw samples in-silico that have a high probability of being biologically correct. For example, given a database of Influenza sequences, we can generate a new genomic sequence that has a high probability of being a valid influenza sequence.
Installation
To install with pip:
pip install quasinet
To fix error in Mac:
from quasinet.macfix import macfix
macfix()
NOTE: If trying to reproduce the paper below, please use pip install quasinet==0.0.58
Dependencies
- scikit-learn
- scipy
- numpy
- numba
- pandas
- joblib
- biopython
Usage
from quasinet import qnet
# initialize qnet
myqnet = qnet.Qnet()
# train the qnet
myqnet.fit(X)
# compute qdistance
qdist = qnet.qdistance(seq1, seq2, myqnet, myqnet)
Examples
Examples are located here.
Documentation
For more documentation, see here.
Papers
For reference, please check out our paper:
Authors
You can reach the ZED lab at: zed.uchicago.edu
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file quasinet-0.1.14.tar.gz
.
File metadata
- Download URL: quasinet-0.1.14.tar.gz
- Upload date:
- Size: 14.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed4fb785e90fb957d363c653f26b4ddc847d56e8c6c9b7291a4181e4bd93da62 |
|
MD5 | 7aedb568f98028cd3a325907d871a1c9 |
|
BLAKE2b-256 | 41605d187f3fbe2d534baea961957a5d6f0172c984b73f92243b93dea33b676a |
File details
Details for the file quasinet-0.1.14-py3-none-any.whl
.
File metadata
- Download URL: quasinet-0.1.14-py3-none-any.whl
- Upload date:
- Size: 15.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 830b0f6d1ff9b5cda56ef89736e061a43065af0f50b413e8ae639e6c6637c154 |
|
MD5 | 3239758681e6b25ad5d58f8a9cef92ff |
|
BLAKE2b-256 | 72bec936fe3c31c955d68f91f6c132cb3368a75343895a5ff7be56bdf3c1cd43 |