Skip to content

Instantly share code, notes, and snippets.

@fjossinet
Last active December 24, 2021 17:08
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/dfd731d4831ea8ffb6eae7c90d2c4e87 to your computer and use it in GitHub Desktop.
Save fjossinet/dfd731d4831ea8ffb6eae7c90d2c4e87 to your computer and use it in GitHub Desktop.
Example of an RNA linked to quantitative values. The plot displays two color gradients (one for R and one for Y) with a cutoff for R (the gradient is defined for all values above 50.0)
import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
bn {
seq = "GCGAAAAAUCGC"
value = "((((....))))"
}
}
data {
"1" to 200.7
"2" to 192.3
"3" to 143.6
"4" to 34.8
"5" to 4.5
"6" to 234.9
"7" to 12.3
"8" to 56.8
"9" to 59.8
"10" to 140.5
"11" to 0.2
"12" to 345.8
}
theme {
details_lvl = 2
color {
value = "white"
type = "Y"
to = "red"
}
color {
value = "white"
type = "R"
to = "green"
data gt 50.0
}
show {
type = "Y R"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment