run_phenomix | R Documentation |
Run many phenotype-cell type association tests in parallel using iterate_lm.
run_phenomix(
ctd_name,
annotLevel = seq(length(ctd)),
ymat,
test_method = "glm",
metric = "specificity",
ctd = load_example_ctd(file = paste0("ctd_", ctd_name, ".rds")),
save_path = file.path(tempfile(), "results", paste0("phenomix_", test_method, "_",
metric), paste0("phenomix_", ctd_name, "_results.tsv.gz")),
multivariate = FALSE,
workers = NULL,
force_new = FALSE,
...
)
ctd_name |
Name of the CTD to load. |
annotLevel |
An integer indicating which level of |
ymat |
gene x celltype matrix. |
test_method |
Association testing method to use. |
metric |
Which matrix within the CTD to use (e.g. "mean_exp","specificity","specificity_quantiles"). |
ctd |
CellTypeDataset generated using generate_celltype_data. |
save_path |
Path to save the table of aggregated results to. |
multivariate |
If |
workers |
Number (>1) or proportion (<1) of worker cores to use. |
force_new |
Overwrite previous results
in the |
... |
Additional parameters passed to the statistical test function. |
## Not run:
ymat <- HPOExplorer::hpo_to_matrix()
ymat <- ymat[,1:10]
lm_res <- run_phenomix(ctd_name = "HumanCellLandscape",
annotLevel = 3,
ymat = ymat,
save_path=tempfile())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.