RNAstructure Python Interfaces
To compile the python library, run this shell command in the RNAstructure/RNA_class directory
The library will be built in RNAstructure/RNAstructure_python_interface. Make sure this directory is on your PATH or PYTHONPATH
To access the in-line documentation:
The following RNAstructure classes have python bindings:
Each class and method has in-line documentation
Each class can be instantiated with its fromString and fromFile methods
The classes have structure calculation methods identically to the C++ classes
The multiple-sequence classes such as dynalign have multiple RNA objects that can be accessed
They have IO methods to write structures to disc
RNA and ProbScan objects are iterable. To iterate over the sequence:
Or over the nucleotide indices:
It's also possible to get the pairing information to manipulate it within python
Or pair probabilities
If you have any trouble, feel free to contact Michael Sloma at firstname.lastname@example.org.
Visit The Mathews Lab RNAstructure Page for updates and latest information.