LinearFold 的新源代码,用于 RNA 二级结构的线性时间预测
This codebase replaces the now deprecated version: https://github.com/abentu0101/LinearFold. This version fixes many bugs and design problems in the old version.
This repository contains the C++ source code for the LinearFold project, the first linear-time prediction algorithm/software for RNA secondary structures.
LinearFold: Linear-Time Approximate RNA Folding by 5’-to-3’ Dynamic Programming and Beam Search. Bioinformatics, Volume 35, Issue 14, July 2019, Pages i295–i304. ISMB 2019
Liang Huang*, He Zhang**, Dezhong Deng**, Kai Zhao, Kaibo Liu, David Hendrix, David Mathews
* corresponding author
** contributed equally
Web server: http://linearfold.org
GCC 4.8.5 or above; python3
makeThe LinearFold parser can be run with:
echo SEQUENCE | ./linearfold [OPTIONS]
OR
cat SEQ_OR_FASTA_FILE | ./linearfold [OPTIONS]Both FASTA format and pure-sequence format are supported for input.
OPTIONS:
--beamsize BEAM_SIZE or -b BEAM_SIZE The beam size (default 100). Use 0 for infinite beam.
--Vienna or -VSwitches LinearFold-C (by default) to LinearFold-V.
--fastaSpecify that the input is in fasta format. (default FALSE)
--verbose or -vPrints out energy of each loop in the structure. (default False)
--sharpturnEnable sharpturn in prediction. (default False)
--evalEnable eval mode, which can calculate free energy for a given structure of a sequence. (default False)
--constraintsEnable adding specific constraints in prediction (default False). The constraint sequence should have the same length as the RNA sequence. "? . ( )" indicates a position for which the proper matching is unknown, unpaired, left or right parenthesis respectively. The parentheses must be well-banlanced and non-crossing.
--zukeroutput Zuker suboptimal structures, (DEFAULT=FALSE)
--deltacompute Zuker suboptimal structures with scores or energies(-V, kcal/mol) in a centain range of the optimum, (DEFAULT=5.0)
--shape use SHAPE reactivity data to guide structure predictions
Please refer to this link for the SHAPE data format:
https://rna.urmc.rochester.edu/Text/File_Formats.html#SHAPE
--dangles INT or -d INTthe way to treat "dangling end" energies for bases adjacent to helices in free ends and multi-loops, (only supporting 0 or 2, DEFAULT=2)
--dangles 0, ignores dangling ends
--dangles 2, dangling energies are added for the bases adjacent to a helix on both sides in any case
LinearFold is able to visualize the structure using a circular plot.
To draw a circular plot, run command:
cat TARGET_FILE | ./draw_circular_plot TARGET_FILE contains one sequence and its structure; see "ecoli_tRNA" file as an example.
………echo GCCUGGUGACCAUAGCGAGUCGGUACCACCCCUUCCCAUCCCGAACAGGACCGUGAAACGACUCCGCGCCGAUGAUAGUGCGGAUUCCCGUGUGAAAGUAGGUCAUCGCCAGGC | ./linearfold -V --shape example.shape
GCCUGGUGACCAUAGCGAGUCGGUACCACCCCUUCCCAUCCCGAACAGGACCGUGAAACGACUCCGCGCCGAUGAUAGUGCGGAUUCCCGUGUGAAAGUAGGUCAUCGCCAGGC
((((((........((((((((.(((............(((......)))..)))...))))).)))..(((((((..(((...(((......))).))).))))))))))))) (-66.30)echo GGGCUCGUAGAUCAGCGGUAGAUCGCUUCCUUCGCAAGGAAGCCCUGGGUUCAAAUCCCAGCGAGUCCACCA | ./linearfold -V -d0
GGGCUCGUAGAUCAGCGGUAGAUCGCUUCCUUCGCAAGGAAGCCCUGGGUUCAAAUCCCAGCGAGUCCACCA
(((((((..((((.......))))((((((((...)))))))).(((((.......)))))))))))).... (-25.50)…cat ecoli_tRNA | ./draw_circular_plot暂无开放 Issues,或尚未同步最近议题。