Created
January 2, 2022 14:35
-
-
Save fjossinet/2d97ee46504b2014e88cca27451f3390 to your computer and use it in GitHub Desktop.
RNA 2D loaded from a local file and now described entirely in the script. Anybody can load it without the original file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.github.fjossinet.rnartist.core.* | |
rnartist { | |
ss { | |
rna { | |
seq = "gaggaaaguccgggcUAGCACACACCUUAUGGGUGUGUAGUGUUUGUGCUAAGGGAAAUCAUAACCUUAGGUAUGUUGUAUAAACAUAACGGCAAACUAGUUAUAGCUAAGGUGUUUCACUACGUUAUAACUUAAAUUAAAGUGCCACAGAGACGAAUCUAUUUAGAAAUAAAUAGAGUGAAACGCGGUAAACCCCUCAAGCUAGCAACCCAAAUUAGGUAGGGGCACAUGAUGUGUAGCAAUACAACAUCAUGCAAGAUUUGAAUCUUGAGAUUAAUAGUCACAAAAGAAGAAAUUCUUUacagaacgcggcuua" | |
name = "A" | |
} | |
helix { | |
name = "H1" | |
location { | |
6 to 8 | |
313 to 315 | |
} | |
} | |
helix { | |
name = "H2" | |
location { | |
10 to 14 | |
308 to 312 | |
} | |
} | |
helix { | |
name = "H3" | |
location { | |
15 to 19 | |
201 to 205 | |
} | |
} | |
helix { | |
name = "H4" | |
location { | |
20 to 25 | |
33 to 38 | |
} | |
} | |
helix { | |
name = "H5" | |
location { | |
44 to 48 | |
196 to 200 | |
} | |
} | |
helix { | |
name = "H6" | |
location { | |
49 to 54 | |
65 to 70 | |
} | |
} | |
helix { | |
name = "H7" | |
location { | |
72 to 77 | |
83 to 88 | |
} | |
} | |
helix { | |
name = "H8" | |
location { | |
91 to 92 | |
194 to 195 | |
} | |
} | |
helix { | |
name = "H9" | |
location { | |
99 to 102 | |
129 to 132 | |
} | |
} | |
helix { | |
name = "H10" | |
location { | |
111 to 114 | |
118 to 121 | |
} | |
} | |
helix { | |
name = "H11" | |
location { | |
142 to 143 | |
192 to 193 | |
} | |
} | |
helix { | |
name = "H12" | |
location { | |
144 to 146 | |
187 to 189 | |
} | |
} | |
helix { | |
name = "H13" | |
location { | |
158 to 165 | |
170 to 177 | |
} | |
} | |
helix { | |
name = "H14" | |
location { | |
209 to 211 | |
222 to 224 | |
} | |
} | |
helix { | |
name = "H15" | |
location { | |
228 to 234 | |
248 to 254 | |
} | |
} | |
helix { | |
name = "H16" | |
location { | |
255 to 260 | |
265 to 270 | |
} | |
} | |
helix { | |
name = "H17" | |
location { | |
286 to 291 | |
296 to 301 | |
} | |
} | |
} | |
theme { | |
details { | |
value = 3 | |
} | |
details { | |
value = 2 | |
location { | |
91 to 195 | |
} | |
} | |
details { | |
value = 1 | |
location { | |
228 to 254 | |
} | |
} | |
details { | |
value = 1 | |
location { | |
209 to 224 | |
} | |
} | |
details { | |
value = 1 | |
location { | |
14 to 15 | |
205 to 209 | |
224 to 228 | |
254 to 255 | |
270 to 286 | |
301 to 308 | |
} | |
} | |
color { | |
value = "#301a4b" | |
type = "A" | |
} | |
color { | |
value = "#ffffff" | |
type = "a" | |
} | |
color { | |
value = "#6db1bf" | |
type = "U" | |
} | |
color { | |
value = "#ffffff" | |
type = "u" | |
} | |
color { | |
value = "#ffeaec" | |
type = "G" | |
} | |
color { | |
value = "#000000" | |
type = "g" | |
} | |
color { | |
value = "#f39a9d" | |
type = "C" | |
} | |
color { | |
value = "#ffffff" | |
type = "c" | |
} | |
color { | |
value = "#b3b34d" | |
location { | |
91 to 195 | |
} | |
} | |
color { | |
value = "#ff00ff" | |
location { | |
14 to 15 | |
205 to 255 | |
270 to 286 | |
301 to 308 | |
} | |
} | |
color { | |
value = "#999999" | |
location { | |
255 to 270 | |
286 to 301 | |
} | |
type = "N" | |
} | |
line { | |
location { | |
91 to 195 | |
} | |
type = "helix junction single_strand N secondary_interaction phosphodiester_bond tertiary_interaction interaction_symbol" | |
value = 2.0 | |
} | |
line { | |
location { | |
91 to 195 | |
} | |
type = "phosphodiester_bond" | |
value = 5.0 | |
} | |
line { | |
location { | |
14 to 15 | |
205 to 255 | |
270 to 286 | |
301 to 308 | |
} | |
type = "helix junction" | |
value = 2.0 | |
} | |
line { | |
location { | |
255 to 270 | |
286 to 301 | |
} | |
type = "N phosphodiester_bond" | |
value = 4.0 | |
} | |
} | |
layout { | |
junction { | |
type = 3 | |
location { | |
92 to 99 | |
132 to 142 | |
193 to 194 | |
} | |
out_ids = "nne ene" | |
} | |
junction { | |
type = 6 | |
location { | |
14 to 15 | |
205 to 209 | |
224 to 228 | |
254 to 255 | |
270 to 286 | |
301 to 308 | |
} | |
out_ids = "w nw nnw nne ene" | |
} | |
junction { | |
type = 4 | |
location { | |
48 to 49 | |
70 to 72 | |
88 to 91 | |
195 to 196 | |
} | |
out_ids = "wsw nw ne" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment