ewce_para | R Documentation |
Runs EWCE in parallel on multiple gene lists.
ewce_para(
ctd,
gene_data,
list_name_column = "hpo_id",
gene_column = "gene_symbol",
list_names = unique(gene_data[[list_name_column]]),
reps = 100,
annotLevel = 1,
force_new = FALSE,
genelistSpecies = "human",
sctSpecies = "human",
bg = get_bg(species1 = genelistSpecies, species2 = sctSpecies, overwrite = force_new),
min_genes = 4,
save_dir_tmp = tempdir(),
parallel_boot = FALSE,
cores = 1,
verbose = FALSE,
...
)
ctd |
CellTypeDataset generated using generate_celltype_data. |
gene_data |
data frame of gene list names and genes (see get_gene_lists). |
list_name_column |
The name of the gene_data column that has the gene list names. |
gene_column |
The name of the gene_data column that contains the genes. |
list_names |
character vector of gene list names. |
reps |
Number of random gene lists to generate (Default: 100, but should be >=10,000 for publication-quality results). |
annotLevel |
An integer indicating which level of |
force_new |
Overwrite previous results
in the |
genelistSpecies |
Species that |
sctSpecies |
Species that |
bg |
List of gene symbols containing the background gene list
(including hit genes). If |
min_genes |
Minimum number of genes per list (default: 4) |
save_dir_tmp |
Folder to save intermediate results files to
(one file per gene list). Set to |
parallel_boot |
Parallelise at the level of bootstrap iterations, rather than across gene lists. |
cores |
The number of cores to run in parallel (e.g. 8) |
verbose |
Print messages. |
... |
Arguments passed on to
|
Paths to saved results at "(save_dir)/(list_name).rds"
(when save_dir!=NULL
), or a nested list of results
(when save_dir==NULL
).
gene_data <- HPOExplorer::load_phenotype_to_genes()
ctd <- MSTExplorer::load_example_ctd()
list_names <- unique(gene_data$hpo_id)[seq(3)]
res_files <- ewce_para(ctd = ctd,
gene_data = gene_data,
list_names = list_names,
reps = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.