gen_overlap | R Documentation |
Compute simply overlap tests for each combination of disease/phenotype gene setvs. celltype gene set (determined by the top specificity quantiles for each celltype).
gen_overlap(
gene_data = HPOExplorer::load_phenotype_to_genes(),
ctd = load_example_ctd(),
list_name_column = "disease_id",
gene_column = "gene_symbol",
list_names = unique(gene_data[[list_name_column]]),
annotLevel = 1,
keep_specificity_quantiles = seq(30, 40),
top_n = NULL,
long_format = FALSE,
save_dir = tempdir(),
force_new = FALSE,
cores = 1,
verbose = TRUE
)
gene_data |
data frame of gene list names and genes (see get_gene_lists). |
ctd |
CellTypeDataset generated using generate_celltype_data. |
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. |
annotLevel |
An integer indicating which level of |
keep_specificity_quantiles |
Which cell type specificity quantiles to keep (max quantile is 40). |
top_n |
Top N genes to keep when grouping by |
long_format |
Return results with "union" and "intersection"
genes melted into long format (default: |
save_dir |
Directory to save results to. |
force_new |
Overwrite previous results
in the |
cores |
The number of cores to run in parallel (e.g. 8) |
verbose |
Print messages. |
NOTE:
This is a faster but less robust version of gen_results.
It also only requires >=1 gene per disease/phenotype, as opposed to >=4.
data.table of all overlap test results.
gene_data <- HPOExplorer::load_phenotype_to_genes()
list_names <- unique(gene_data$disease_id)[seq(3)]
overlap <- gen_overlap(gene_data = gene_data,
list_names = list_names)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.