add_ctd | R Documentation |
Annotate genes in results
with data from a CellTypeDataset (CTD).
The following columns will be added:
"specificity" Cell-type specificity score.
"specificity_quantiles" Cell-type specificity quantile.
"mean_exp" Mean expression per cell-type.
"mean_exp_quantiles" Mean expression quantile per cell-type.
add_ctd(
results = load_example_results(),
ctd = load_example_ctd(),
annotLevel = length(ctd),
keep_specificity_quantiles = NULL,
keep_mean_exp_quantiles = NULL,
keep_celltypes = NULL,
rep_dt = NULL,
all.x = FALSE,
allow.cartesian = TRUE,
by = c("gene_symbol", "CellType"),
verbose = TRUE
)
results |
The cell type-phenotype enrichment results generated by gen_results and merged together with merge_results |
ctd |
CellTypeDataset generated using generate_celltype_data. |
annotLevel |
An integer indicating which level of |
keep_specificity_quantiles |
Which cell type specificity quantiles to keep (max quantile is 40). |
keep_mean_exp_quantiles |
Which cell type mean expression quantiles to keep (max quantile is 40). |
keep_celltypes |
A character vector of cell types to keep. |
rep_dt |
Report table. |
all.x |
logical; if |
allow.cartesian |
See |
by |
A vector of shared column names in |
verbose |
Print messages. |
results <- load_example_results()[seq(100),]
results2 <- add_ctd(results=results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.