Predict splicing variant effect from VCF
Project description
# mmsplice
[![pypi](https://img.shields.io/pypi/v/mmsplice.svg)](https://pypi-hypernode.com/pypi/mmsplice)
[![travis](https://img.shields.io/travis/s6juncheng/mmsplice.svg)](https://travis-ci.org/s6juncheng/mmsplice)
Predict splicing variant effect from VCF
* Free software: MIT license
## Usage example
------
Check notebooks/example.ipynb
```python
# Import
from mmsplice.vcf_dataloader import SplicingVCFDataloader
from mmsplice import MMSplice, predict_all_table
from mmsplice.utils import max_varEff
# example files
gtf = 'tests/data/test.gtf'
vcf = 'tests/data/test.vcf.gz'
fasta = 'tests/data/hg19.nochr.chr17.fa'
gtfIntervalTree = '../tests/data/test.pkl' # pickle exon interval Tree
# dataloader to load variants from vcf
dl = SplicingVCFDataloader(gtf,
fasta,
vcf,
out_file=gtfIntervalTree,
split_seq=False)
# Specify model
model = MMSplice(
exon_cut_l=0,
exon_cut_r=0,
acceptor_intron_cut=6,
donor_intron_cut=6,
acceptor_intron_len=50,
acceptor_exon_len=3,
donor_exon_len=5,
donor_intron_len=13)
# Do prediction
predictions = predict_all_table(model, dl, batch_size=1024, split_seq=False, assembly=False)
# Summerize with maximum effect size
predictionsMax = max_varEff(predictions)
```
=======
History
=======
0.1.0 (2018-07-17)
------------------
* First release on PyPI.
[![pypi](https://img.shields.io/pypi/v/mmsplice.svg)](https://pypi-hypernode.com/pypi/mmsplice)
[![travis](https://img.shields.io/travis/s6juncheng/mmsplice.svg)](https://travis-ci.org/s6juncheng/mmsplice)
Predict splicing variant effect from VCF
* Free software: MIT license
## Usage example
------
Check notebooks/example.ipynb
```python
# Import
from mmsplice.vcf_dataloader import SplicingVCFDataloader
from mmsplice import MMSplice, predict_all_table
from mmsplice.utils import max_varEff
# example files
gtf = 'tests/data/test.gtf'
vcf = 'tests/data/test.vcf.gz'
fasta = 'tests/data/hg19.nochr.chr17.fa'
gtfIntervalTree = '../tests/data/test.pkl' # pickle exon interval Tree
# dataloader to load variants from vcf
dl = SplicingVCFDataloader(gtf,
fasta,
vcf,
out_file=gtfIntervalTree,
split_seq=False)
# Specify model
model = MMSplice(
exon_cut_l=0,
exon_cut_r=0,
acceptor_intron_cut=6,
donor_intron_cut=6,
acceptor_intron_len=50,
acceptor_exon_len=3,
donor_exon_len=5,
donor_intron_len=13)
# Do prediction
predictions = predict_all_table(model, dl, batch_size=1024, split_seq=False, assembly=False)
# Summerize with maximum effect size
predictionsMax = max_varEff(predictions)
```
=======
History
=======
0.1.0 (2018-07-17)
------------------
* First release on PyPI.
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
mmsplice-0.2.0.tar.gz
(420.3 kB
view details)
Built Distributions
mmsplice-0.2.0-py3.6.egg
(466.0 kB
view details)
mmsplice-0.2.0-py2.py3-none-any.whl
(418.0 kB
view details)
File details
Details for the file mmsplice-0.2.0.tar.gz
.
File metadata
- Download URL: mmsplice-0.2.0.tar.gz
- Upload date:
- Size: 420.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad626d6db5c2c67a2172bb85a859a0727b933852c8c2588329ed802bc247b6ef |
|
MD5 | 2c607b6c249e577ede4e0cade221053f |
|
BLAKE2b-256 | 0ba053b44f34c6145eca37e98eb82d2f5c2f125e7340bbf537f0316ad948792a |
File details
Details for the file mmsplice-0.2.0-py3.6.egg
.
File metadata
- Download URL: mmsplice-0.2.0-py3.6.egg
- Upload date:
- Size: 466.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74741dd6d2a28a4fc60539ac7a0e62aa1e5a1f2f86137fc59145488d27babc5d |
|
MD5 | 89382c28da11fb64b8036937689b429c |
|
BLAKE2b-256 | e2a5b45c70a08e633364a673422ef3a709d648e4fb9314b7d957863f173c8e77 |
File details
Details for the file mmsplice-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: mmsplice-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 418.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.1 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75d070a716863ca33b9e96ef6c81eb62fa1d4a1f5c378c0e33179ea53b969a97 |
|
MD5 | fb3af5577c295a2f64e1b14adc8b7b11 |
|
BLAKE2b-256 | 4c90e1260a058e947d4a635341fc7b26a76a29e6a49123cbd23499a38ffcbfcd |