Skip to content

Instantly share code, notes, and snippets.

@fjossinet
Created December 27, 2021 10:26
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/c3f1b17bdb46995dc12d2a95b66ca4ea to your computer and use it in GitHub Desktop.
Save fjossinet/c3f1b17bdb46995dc12d2a95b66ca4ea to your computer and use it in GitHub Desktop.
This plot shows how to use the new element named details. It allows to quickly shape helices, single-strands and junctions.
import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
bn {
value = "(((..(((....))).)))...(((..(((....))).)))...((((((..(((....))).)))..(((....))).)))(((..(((....))).)))"
}
}
theme {
details {
value = 1
}
details {
value = 3
type = "helix"
}
details {
value = 2
type = "junction"
}
color {
value = "#d741a7"
type = "A"
}
color {
value = "#ffffff"
type = "a"
}
color {
value = "#3a1772"
type = "U"
}
color {
value = "#ffffff"
type = "u"
}
color {
value = "#5398be"
type = "G"
}
color {
value = "#ffffff"
type = "g"
}
color {
value = "#f2cd5d"
type = "C"
}
color {
value = "#000000"
type = "c"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment