Closed dmnfarrell closed 5 years ago
Note that this does work in version 0.20
I guess this is due to the use of T
instead of U
(we model RNA).
I guess I will change this to allow T
again in version 2.0
Ok thanks. I reverted to version 0.20 to get the previous behaviour so it's not urgent.
Running Ubuntu Bionic on Windows with ViennaRNA 2.4.11 I am running into the same issue. Does 2.4.11 also allow use of T?
@joelwebb For questions about the Vienna RNA package (ViennaRNA 2.4.11), please ask at https://github.com/ViennaRNA/ViennaRNA
But you can always try to replace the T
s with U
s
As for the forgi 2.0 library, see below
On forgi 2.0, arbitrary characters are allowed for the sequence again. Bulge Graph creation has changed, so the code by @dmnfarrell would look like this:
import forgi.graph.bulge_graph as fgb
seq= 'TTGTCAGTTAAAAAACCACCATGCGGGGAGTTCCCTGATGGCCTGGTGGTTAGGATTCGGTGCTCTCCCTGCCATGGC'
struct = '..................((((((((((((..(.(((((((((....)))))....)))).)..))))))).))))).'
bg = fgb.BulgeGraph.from_dotbracket(struct, seq)
The Sequence class has a is_valid
function that checks for 'AUCG', but this is not called by default
Hi
I formerly used the following code and it worked fine:
However I now get this error when I try to set the sequence.
This occurs regardless of whether the struct is provided and is the same in python 2 and 3. Is there another way to set the sequence?