# maxentpy
[![Build](https://github.com/kepbod/maxentpy/actions/workflows/python-package.yml/badge.svg?branch=master)](https://github.com/kepbod/maxentpy/actions?query=workflow%3ABuild)
[![Coverage Status](https://coveralls.io/repos/github/kepbod/maxentpy/badge.svg)](https://coveralls.io/github/kepbod/maxentpy)
[![install with bioconda](https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg?style=flat-square)](http://bioconda.github.io/recipes/maxentpy/README.html)
[![download](https://anaconda.org/bioconda/maxentpy/badges/downloads.svg)](https://anaconda.org/bioconda/maxentpy)
maxentpy is a python wrapper for MaxEntScan to calculate splice site strength.
It contains two functions. `score5` is adapt from [MaxEntScan::score5ss](http://hollywood.mit.edu/burgelab/maxent/Xmaxentscan_scoreseq.html) to score 5' splice sites. `score3` is adapt from [MaxEntScan::score3ss](http://hollywood.mit.edu/burgelab/maxent/Xmaxentscan_scoreseq_acc.html) to score 3' splice sites. They only use Maximum Entropy Model to score.
## Prerequisites
* Cython
* msgpack-python
## Examples
```python
>>> from maxentpy import maxent # use normal version of maxent
>>> maxent.score5('cagGTAAGT') # 3 bases in exon and 6 bases in intron
10.858313101356437
>>> maxent.score3('ttccaaacgaacttttgtAGgga') # 20 bases in the intron and 3 base in the exon
2.8867730651152104
>>> from maxentpy.maxent import load_matrix5, load_matrix3 # preloading matrix will speed up
>>> timeit maxent.score5('cagGTAAGT')
10 loops, best of 3: 23.5 ms per loop
>>> matrix5 = load_matrix5()
>>> timeit maxent.score5('cagGTAAGT', matrix=matrix5)
100000 loops, best of 3: 3.27 µs per loop
>>> timeit maxent.score3('ttccaaacgaacttttgtAGgga')
1 loop, best of 3: 259 ms per loop
>>> matrix3 = load_matrix3()
>>> timeit maxent.score3('ttccaaacgaacttttgtAGgga', matrix=matrix3)
10000 loops, best of 3: 103 µs per loop
>>> from maxentpy import maxent_fast # fast version could further speed up
>>> timeit maxent_fast.score5('cagGTAAGT')
100 loops, best of 3: 5.04 ms per loop
>>> timeit maxent_fast.score3('ttccaaacgaacttttgtAGgga')
100 loops, best of 3: 9.3 ms per loop
>>> from maxentpy.maxent_fast import load_matrix # support preloading matrix
>>> matrix5 = load_matrix(5)
>>> timeit maxent_fast.score5('cagGTAAGT', matrix=matrix5)
100000 loops, best of 3: 3.61 µs per loop
>>> matrix3 = load_matrix(3)
>>> timeit maxent_fast.score3('ttccaaacgaacttttgtAGgga', matrix=matrix3)
100000 loops, best of 3: 7.76 µs per loop
```
## Benchmark
### score5
score5 |maxentpy.maxent|maxentpy.maxent_fast
--------------|---------------|--------------------
without matrix| 23.5 ms | 5.04 ms
with matrix | 3.27 µs | 3.61 µs
### score3
score3 |maxentpy.maxent|maxentpy.maxent_fast
--------------|---------------|--------------------
without matrix| 259 ms | 9.3 ms
with matrix | 103 µs | 7.76 µs
## Citation
Yeo G, Burge CB. Maximum entropy modeling of short sequence motifs with applications to RNA splicing signals. Journal of Computational Biology. 2004, 11:377-94.
## License
The original algorithm and perl scripts are under license described in http://genes.mit.edu/burgelab/maxent/download/READTHIS.
The python version of maxent is under the [MIT License](https://opensource.org/licenses/MIT).
没有合适的资源?快使用搜索试试~ 我知道了~
用于MaxEntScan的Python包装器,用于计算拼接位点强.zip
共55个文件
py:4个
yml:3个
pl:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 123 浏览量
2023-04-15
09:31:10
上传
评论
收藏 3.15MB ZIP 举报
温馨提示
用于MaxEntScan的Python包装器,用于计算拼接位点强.zip
资源推荐
资源详情
资源评论
收起资源包目录
用于MaxEntScan的Python包装器,用于计算拼接位点强.zip (55个子文件)
maxentpy-master
conda_environment.yml 145B
.travis.yml 370B
setup.py 495B
.coveragerc 0B
maxent
score3.pl 4KB
test5 20B
splicemodels
splice5sequences 128KB
me2s0 272KB
hashseq.m~ 185B
me2x3acc4 208KB
me1s0acc1 208KB
me2s0acc6 832B
me2x3acc5 208KB
me2x3acc7 3KB
me1s0acc2 208KB
me2s0acc3 208KB
me1s0acc5 208KB
me1s0acc7 3KB
me2s0acc5 208KB
me2x3acc8 832B
me1s0acc6 832B
me2x5 272KB
me2s0acc7 3KB
me2x3acc3 208KB
me1s0acc8 832B
me2x3acc2 208KB
hashseq.m 193B
me2x3acc6 832B
me2s0acc9 3KB
me2s0acc8 832B
me2s0acc4 208KB
me1s0acc3 208KB
me2s0acc2 208KB
me2x3acc1 208KB
me1s0acc4 208KB
me1s0acc9 3KB
me2x3acc9 3KB
me2s0acc1 208KB
me2x5 272KB
test3 24B
README.md 612B
score5.pl 2KB
.github
workflows
python-package.yml 1KB
LICENSE 1KB
maxentpy
__init__.py 0B
_hashseq.c 104KB
data
score5_matrix.txt 400KB
matrix5.msg 272KB
score3_matrix.txt 1.6MB
matrix3.msg 965KB
maxent_fast.py 3KB
_hashseq.pyx 507B
maxent.py 4KB
.gitignore 1KB
README.md 3KB
共 55 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功