learn_profile {itol.toolkit} | R Documentation |
Learn profile
Description
learn profile paramters as list
Usage
learn_profile(lines, sep)
Arguments
lines |
a vector of character strings from template file. |
sep |
a character specifying the separator. |
Value
a list of profile parameters containing
name |
a character specifying label, which is used in the legend table |
color |
dataset color in the legend (use hexadecimal, RGB or RGBA notation; if using RGB/RGBA, COMMA cannot be used as SEPARATOR) |
Examples
tree <- system.file("extdata",
"tree_of_itol_templates.tree",
package = "itol.toolkit")
df_frequence <- data.table::fread(system.file("extdata",
"templates_frequence.txt",
package = "itol.toolkit"))
## create unit
unit <- create_unit(data = df_frequence,
key = "Quickstart",
type = "DATASET_HEATMAP",
tree = tree)
## write unit
file <- tempfile()
write_unit(unit,file)
## Learn legend parameters
lines <- line_clean(file=file)
sep = learn_separator(file = file)
learn_profile(lines = lines, sep = sep)
[Package itol.toolkit version 1.1.7 Index]