Last active
December 24, 2021 17:08
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)
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 { | |
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