miRmap library is Python library organized with ...
The miRmap library is a Python library predicting the repression strength of microRNA (miRNA) targets. The model combines:
- thermodynamic features: ΔG duplex, ΔG binding, ΔG seed duplex, ΔG seed binding, ΔG open and ΔG total,
- evolutionary features: BLS and PhyloP,
- probabilistic features: P.over binomial and P.over exact, and
- sequence-based features: AU content, UTR position and 3’ pairing.
The stable releases of miRmap are available at http://mirmap.ezlab.org.
Note
Development versions are available at http://dev.vejnar.org/mirmap.
The miRmap library has the following requirements:
3.1 C librairies. A compiled version of the 3 libraries (*.so) is included in the miRmap distribution. If you want/have to compile them, please follow these intructions:
- For the thermodynamic features, the Vienna RNA library is required.
Download the latest Vienna RNA tarball (Versions 2.0.x were successfully tested), then do:
cd ViennaRNA-<version> ./configure --without-kinfold --without-forester --without-svm --without-perl make gcc -shared -Wl,-O2 -o lib/libRNAvienna.so `find lib/ -name "*.o"` -lm -lgomp
- For the evolutionary features, the PHAST library is required (The CLAPACK has to be compiled first, please follow the instructions in Phast package).
svn co http://compgen.bscb.cornell.edu/svnrepo/phast/trunk phast cd phast/srcIn the file make-include.mk, add the -DUSE_PHAST_MEMORY_HANDLER parameter to the line starting with CFLAGS += -I${INC} -DPHAST_VERSION=${PHAST_VERSION}. Then replace the path to the CLAPACK and compile with:
make CLAPACKPATH=../CLAPACK-3.2.1 sharedlib
- For the P.over exact feature, the Spatt library is required (You will need a working copy of CMake on your system).
Download the latest Spatt tarball (Version 2.0 was successfully tested), then do:
cd spatt-<version> mkdir build cd build cmake -DWITH_SHARED_LIB=ON .. makeFrom the directory you compiled the C libraries:
mv spatt-<version>/libspatt2/libspatt2.so mirmap/libs/default mv ViennaRNA-<version>/lib/libRNAvienna.so mirmap/libs/default mv phast/lib/sharedlib/libphast.so mirmap/libs/default3.2 Executables. No specific requirements is needed: please follow the instructions included in the Vienna RNA, PHAST, and Spatt packages.
Example with the pure Python features.
>>> import mirmap
>>> seq_target = 'GCUACAGUUUUUAUUUAGCAUGGGGAUUGCAGAGUGACCAGCACACUGGACUCCGAGGUGGUUCAGACAAGACAGAGGGGAGCAGUGGCCAUCAUCC\
... UCCCGCCAGGAGCUUCUUCGUUCCUGCGCAUAUAGACUGUACAUUAUGAAGAAUACCCAGGAAGACUUUGUGACUGUCACUUGCUGCUUUUUCUGCGCUUCAGUAACAAGU\
... GUUGGCAAACGAGACUUUCUCCUGGCCCCUGCCUGCUGGAGAUCAGCAUGCCUGUCCUUUCAGUCUGAUCCAUCCAUCUCUCUCUUGCCUGAGGGGAAAGAGAGAUGGGCC\
... AGGCAGAGAACAGAACUGGAGGCAGUCCAUCUA'
>>> seq_mirna = 'UAGCAGCACGUAAAUAUUGGCG'
>>> mim = mirmap.mm(seq_target, seq_mirna)
>>> mim.find_potential_targets_with_seed(allowed_lengths=[6,7], allowed_gu_wobbles={6:0,7:0},\
... allowed_mismatches={6:0,7:0}, take_best=True)
>>> mim.end_sites # Coordinate(s) (3' end) of the target site on the target sequence
[186]
>>> mim.eval_tgs_au(with_correction=False) # TargetScan features manually evaluated with
>>> mim.eval_tgs_pairing3p(with_correction=False) # a non-default parameter.
>>> mim.eval_tgs_position(with_correction=False)
>>> mim.prob_binomial # mim's attribute: the feature is automatically computed
0.03311825751646191
>>> print mim.report()
155 186
| |
CAGGAAGACUUUGUGACUGUCACUUGCUGCUUUUUCUGCGCU
|||||||.
GCGGUUAUAAAUGCACGACGAU
AU content 0.64942
UTR position 166.00000
3' pairing 1.00000
Probability (Binomial) 0.03312
With the C libraries/executables installed:
>>> import mirmap.library_link
>>> # For libraries
>>> mim.libs = mirmap.library_link.LibraryLink('libs/compiled') # Change to the path where you unzipped the *.so files
>>> # For executables (if they are not in your PATH)
>>> mim.exe_path = 'libs/compiled' # Change to the path where you unzipped the exe files
>>> mim.dg_duplex
-13.5
>>> mim.dg_open
12.180591583251953
>>> mim.prob_exact
0.06798900807193115
>>> print mim.report()
155 186
| |
CAGGAAGACUUUGUGACUGUCACUUGCUGCUUUUUCUGCGCU
|||||||.
GCGGUUAUAAAUGCACGACGAU
ΔG duplex (kcal/mol) -13.50000
ΔG binding (kcal/mol) -11.91708
ΔG open (kcal/mol) 12.18059
AU content 0.64942
UTR position 166.00000
3' pairing 1.00000
Probability (Exact) 0.06799
Probability (Binomial) 0.03312
mm and mmPP base classes of miRmap that inherit their methods from all the modules. Each module define the methods for one category.
Bases: mirmap.evolution.mmEvolution, mirmap.model.mmModel, mirmap.prob_binomial.mmProbBinomial, mirmap.prob_exact.mmProbExact, mirmap.report.mmReport, mirmap.thermo.mmThermo, mirmap.targetscan.mmTargetScan
miRNA and mRNA containing class.
Parameters: |
|
---|
Computes the Branch Length Score (BLS).
Parameters: |
|
---|
Computes the ΔG duplex, ΔG binding, ΔG seed duplex and ΔG seed binding scores.
Parameters: |
|
---|
Computes the ΔG open score.
Parameters: |
|
---|
Computes the ΔG total score combining ΔG duplex and ΔG open scores.
Computes the P.over binomial score.
Parameters: |
|
---|
Computes the P.over binomial score.
Parameters: |
|
---|
Computes the miRmap score(s).
Parameters: |
|
---|
Computes the PhyloP score.
Parameters: |
|
---|
Computes the AU content score.
Parameters: |
|
---|
Computes the 3’ pairing score.
Parameters: |
|
---|
Computes the UTR position score.
Parameters: |
|
---|
Computes the TargetScan score combining AU content, UTR position and 3’ pairing scores.
Parameters: |
|
---|
Searches for seed(s) in the target sequence.
Parameters: |
|
---|
Branch Length Score (BLS) score with default parameters.
Parameters: | method (str) – Method name used to combine target scores (Example: ‘max’). |
---|
ΔG binding score with default parameters.
Parameters: | method (str) – Method name used to combine target scores (Example: ‘min’). |
---|
ΔG seed binding score with default parameters.
Parameters: | method (str) – Method name used to combine target scores (Example: ‘min’). |
---|
ΔG duplex score with default parameters.
Parameters: | method (str) – Method name used to combine target scores (Example: ‘min’). |
---|
ΔG seed duplex score with default parameters.
Parameters: | method (str) – Method name used to combine target scores (Example: ‘min’). |
---|
ΔG open score with default parameters.
Parameters: | method (str) – Method name used to combine target scores (Example: ‘min’). |
---|
ΔG total score with default parameters.
Parameters: | method (str) – Method name used to combine target scores (Example: ‘min’). |
---|
P.over binomial score with default parameters.
Parameters: | method (str) – Method name used to combine target scores (Example: ‘min’). |
---|
P.over exact score with default parameters.
Parameters: | method (str) – Method name used to combine target scores (Example: ‘min’). |
---|
PhyloP score with default parameters.
Parameters: | method (str) – Method name used to combine target scores (Example: ‘min’). |
---|
Returns a formatted report of already computed features for all target site(s).
Branch Length Score (BLS) score with default parameters.
ΔG binding score with default parameters.
ΔG seed binding score with default parameters.
ΔG duplex score with default parameters.
ΔG seed duplex score with default parameters.
ΔG open score with default parameters.
ΔG total score with default parameters.
P.over binomial score with default parameters.
P.over exact score with default parameters.
miRmap score with default parameters.
PhyloP score with default parameters.
AU content score with default parameters.
3’ pairing score with default parameters.
UTR position score with default parameters.
TargetScan score with default parameters.
Bases: mirmap.model.mmModel, mirmap.prob_binomial.mmProbBinomial, mirmap.report.mmReport, mirmap.targetscan.mmTargetScan
miRNA and mRNA containing class with pure Python methods only.
Parameters: |
|
---|
Computes the P.over binomial score.
Parameters: |
|
---|
Computes the miRmap score(s).
Parameters: |
|
---|
Computes the AU content score.
Parameters: |
|
---|
Computes the 3’ pairing score.
Parameters: |
|
---|
Computes the UTR position score.
Parameters: |
|
---|
Computes the TargetScan score combining AU content, UTR position and 3’ pairing scores.
Parameters: |
|
---|
Searches for seed(s) in the target sequence.
Parameters: |
|
---|
P.over binomial score with default parameters.
Parameters: | method (str) – Method name used to combine target scores (Example: ‘min’). |
---|
Returns a formatted report of already computed features for all target site(s).
P.over binomial score with default parameters.
miRmap score with default parameters.
AU content score with default parameters.
3’ pairing score with default parameters.
UTR position score with default parameters.
TargetScan score with default parameters.
The miRmap library is:
Copyright 2011-2013 Charles E. Vejnar
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (in /LICENCE). If not, see GNU Licenses.