Skip to content

Instantly share code, notes, and snippets.

@fjossinet
Created December 30, 2021 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fjossinet/40ae79445268e69cc4adbd94fb8f4af0 to your computer and use it in GitHub Desktop.
Save fjossinet/40ae79445268e69cc4adbd94fb8f4af0 to your computer and use it in GitHub Desktop.
Numbering is now exported in SVG output. Example with RNaseP RNA from Acholeplasma laidlawii.
import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
ct {
file = "C:/Users/fjoss/Downloads/test/ASE_00010_from_RNA_STRAND_database.ct"
}
}
theme {
details {
value = 3
}
color {
value = "#9cfffa"
type = "A"
}
color {
value = "#000000"
type = "a"
}
color {
value = "#acf39d"
type = "U"
}
color {
value = "#000000"
type = "u"
}
color {
value = "#b0c592"
type = "G"
}
color {
value = "#ffffff"
type = "g"
}
color {
value = "#a97c73"
type = "C"
}
color {
value = "#ffffff"
type = "c"
}
}
layout {
junction {
type = 3
location {
92 to 99
132 to 142
193 to 194
}
out_ids = "wnw ene"
}
junction {
type = 4
location {
48 to 49
70 to 72
88 to 91
195 to 196
}
out_ids = "w n 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 = "wsw wnw nnw nne ene"
}
}
}
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment