Description Usage Arguments Value Examples
View source: R/proteinpaint_utils.R
To format ProteinPaint input meta data of age
1 2 3 | format_pp_meta_age(raw_meta, outfn = NULL, age_group = "Age",
adult_value = "Adult", child_value = "Pediatric",
adult_color = "#c20b01", child_color = "#196abd", ...)
|
raw_meta |
A data.frame contain cols of 'sample', 'term', 'group', 'value', 'color' and 'legendorder' |
outfn |
Output file, default is NULL and not output to file |
age_group |
Name of age group, default is 'Age' |
adult_value |
Value of adult, default is 'Adult' |
child_value |
Value of child, default is 'Pediatric' |
adult_color |
Color of adult, default is '#c20b01' |
child_color |
Color of child, default is '#196abd' |
... |
Parameters pass to |
A data frame
1 2 3 4 5 6 7 8 9 | meta_template <- system.file('extdata',
'demo/proteinpaint/heatmap_meta_template.txt',
package = 'ngstk')
raw_meta <- read.table(meta_template, sep = '\t', header = TRUE)
term <- group <- 'Age'
raw_meta$term <- term
raw_meta$group <- group
raw_meta$value <- c(rep(c('Adult', 'Pediatric'), 3), 'Male')
meta_age <- format_pp_meta_age(raw_meta)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.