filter_genes | R Documentation |
Goes through the summary text of genes and returns gene names that match the requirements.
filter_genes(
catchphrases,
test = "any",
standalone = TRUE,
case_sensitive = FALSE,
return_var = "symbol",
genes_subset = NULL,
genes_rm = NULL,
...
)
catchphrases |
Character vector of catchphrases to look for. |
test |
Character value. Determines how the input of
|
standalone |
Logical value. If |
case_sensitive |
Logical value. If |
return_var |
The variable of the |
genes_subset |
Character vector or |
genes_rm |
Character vector or |
... |
Logical tests given to |
See documentation for ?gene_info_df
to read about how the source
data.frame has been generated.
Character vector of gene names.
# create a small subset of genes for demonstration purposes
example_genes <- c("GFAP" , "MAG", "OLIG1", "EGFR")
print_gene_info(genes = example_genes)
# different tests
filter_genes(
catchphrases = c("astrocytes", "surface"),
test = "any",
genes_subset = example_genes
)
filter_genes(
catchphrases = c("astrocytes", "surface"),
test = "all",
genes_subset = example_genes
)
filter_genes(
catchphrases = c("astrocytes", "surface"),
test = "none",
genes_subset = example_genes
)
# standalone TRUE or FALSE
filter_genes(
catchphrases = c("glyco"),
standalone = FALSE,
genes_subset = example_genes
)
filter_genes(
catchphrases = c("glyco"),
standalone = TRUE,
genes_subset = example_genes
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.