4
$\begingroup$

I am trying to get dot-bracket-notations of single stranded RNA via the ViennaRNA python package (https://pypi.org/project/ViennaRNA/) at different temperatures. I have read in the docs (https://www.tbi.univie.ac.at/RNA/ViennaRNA/doc/html/examples_c.html) that the folding prediction at different temperatures is possible with C..but nowhere it is described how to specify the temperature when using python. Does anyone know how to specify the temperature at which the RNA folding is predicted with the ViennaRNA package in python?

Thanks for the help!

$\endgroup$

1 Answer 1

1
$\begingroup$

I think that the "Global Variables" section of the docs describes this:

For the Python interface(s) SWIG places global variables of the C-library into an additional namespace cvar. For instance, changing the global temperature variable thus becomes

RNA.cvar.temperature = 25

Globals are somewhat surprising to me as a way of handling this. It seems like you should be able to specify this differently. Maybe I'm missing something?

$\endgroup$
1
  • 1
    $\begingroup$ Very cool, thanks. $\endgroup$
    – M__
    Dec 19, 2022 at 19:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.