Description Usage Arguments Details Value Examples
View source: R/get_gene_list.R
This returns a character vector of genes (a gene list). The gene_data should
be a data frame that contains a column of gene list names (e.g. the column
may be called "Phenotype"), and a column of genes (e.g. "Gene"). For example,
lets call the following data frame phenotype_to_genes
:
1 2 3 4 5 6 | get_gene_list(
list_name,
gene_data,
list_name_column = "Phenotype",
gene_column = "Gene"
)
|
list_name |
The name of the gene list of interest (string) |
gene_data |
The data frame of gene list names and associated genes (data.frame) |
list_name_column |
The name of the column in gene_data that contains gene list names (string) |
gene_column |
The name of the column in gene_data that contains the genes (string) |
Phenotype | Gene |
"Abnormal heart" | gene X |
"Abnormal heart" | gene Y |
"Poor vision" | gene Z |
"Poor vision" | gene Y |
etc... | |
In the example above, if we wanted to extract genes related to "Abnormal heart", we would run the following example:
A charcter vector of genes associated with the selected list_name
1 2 3 4 5 6 | phenotype_to_genes <- HPOExplorer::load_phenotype_to_genes("phenotype_to_genes.txt")
height_genes <- get_gene_list(list_name = "Abnormality of body height",
gene_data = phenotype_to_genes,
list_name_column = "Phenotype",
gene_column = "Gene")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.