Answers.Body: <p>I think that the &quot;Global Variables&quot; section of the <a href="https://www.tbi.univie.ac.at/RNA/ViennaRNA/doc/html/wrappers.html" rel="nofollow noreferrer">docs</a> describes this:</p>
  <blockquote>
  <p>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</p>
  </blockquote>
  <pre><code>RNA.cvar.temperature = 25
  </code></pre>
  <p>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?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-12-19T19:50:29.557Z
Answers.Text: Very cool, thanks.
Answers.UserDisplayName: M__
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-12-19T19:36:46.717Z
Answers.LastActivityDate: 2022-12-19T19:36:46.717Z
Answers.UserDisplayName: Maximilian Press
Body: <p>I am trying to get dot-bracket-notations of single stranded RNA via the ViennaRNA python package (<a href="https://pypi.org/project/ViennaRNA/" rel="nofollow noreferrer">https://pypi.org/project/ViennaRNA/</a>) at different temperatures. I have read in the docs (<a href="https://www.tbi.univie.ac.at/RNA/ViennaRNA/doc/html/examples_c.html" rel="nofollow noreferrer">https://www.tbi.univie.ac.at/RNA/ViennaRNA/doc/html/examples_c.html</a>) 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?</p>
  <p>Thanks for the help!</p>
  
Tags: <python><rna><secondary-structure>
Title: RNA folding at specific temperature with ViennaRNA in python
ThreadText: # RNA folding at specific temperature with ViennaRNA in python
  
  (Asked by: username_0 on 2022-12-08)
  
  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!
  
  **Tags:** python, rna, secondary-structure
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-12-19. Score: 1
  
  I think that the "Global Variables" section of the [docs](https://www.tbi.univie.ac.at/RNA/ViennaRNA/doc/html/wrappers.html) 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?
  
  > **Comments:**
  > **username_2**: Very cool, thanks.  
  
  ---
  
  