Description Usage Arguments Details Value Author(s) See Also Examples
Functions to generate colours for helices by various rules, including integer counts, value ranges, percent identity covariation, conservation, percentage canonical basepair, basepair frequency, and non-pseudoknotted groups.
1 2 3 4 5 6 7 8 9 | colourByCount(helix, cols, counts, get = FALSE)
colourByValue(helix, cols, breaks, get = FALSE,
log = FALSE, include.lowest = TRUE, ...)
colourByBasepairFrequency(helix, cols, get = TRUE)
colourByUnknottedGroups(helix, cols, get = TRUE)
colourByCovariation(helix, msa, cols, get = FALSE)
colourByConservation(helix, msa, cols, get = FALSE)
colourByCanonical(helix, msa, cols, get = FALSE)
defaultPalette()
|
helix |
A helix data frame to be coloured. |
cols |
An array of characters (or numbers) representing a set of colours to
colour |
counts |
An array of integers the same length as |
breaks |
An integer number of intervals to break the ‘value’ column of
|
get |
If TRUE, returns the input |
log |
If TRUE, will breaks values into even log10 space intervals, useful when values are p-values. |
include.lowest |
Whether the lowest interval should include the lowest value, passed to
|
... |
Additional arguments passed to |
msa |
A multiple sequence alignment. Can be either a |
colourByCount
assigns colours indepenent of the helix input's value
column, and instead operates over the number of helices (i.e. rows).
colourByValue
uses cut
to assign each of the helices
to an interval based on its value.
colourByCovariation
, colourByConservation
, and
colourByCanonical
, colour helices according to compensatory mutations
(or covariation), percentage identity conservation, and percentage canonical
basepair repsectively, relative to the multiple sequence alignment provided.
colourByBasepairFrequency
colours each basepair according to the
number of times it appear in the input, regardless of its value.
colourByUnknottedGroups
greedily partitions the basepairs into non-
pseudoknotted groups, and assigns a colour to each.
All “colourBy” functions return a list of colours when get =
FALSE
, and a helix with a col
column if get = TRUE
. In both
bases, the returned object has attributes “legend” and “fill”,
showing the mapping between interval (in legend) and colour (in fill),
which can as eponymous arguments legend
.
defaultPalette
returns the default list of colours.
Daniel Lai
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.