View source: R/create_background.R
create_background | R Documentation |
Create a gene background as the union/intersect of
all orthologs between input species (species1
and species2
),
and the output_species
.
This can be useful when generating random lists of background genes
to test against in analyses with data from multiple species
(e.g. enrichment of mouse cell-type markers gene sets in
human GWAS-derived gene sets).
create_background(
species1,
species2,
output_species = "human",
as_output_species = TRUE,
use_intersect = TRUE,
bg = NULL,
gene_map = NULL,
method = "homologene",
non121_strategy = "drop_both_species",
verbose = TRUE
)
species1 |
First species. |
species2 |
Second species. |
output_species |
Species to convert all genes from
|
as_output_species |
Return background gene list as
|
use_intersect |
When |
bg |
User supplied background list that will be returned to the user after removing duplicate genes. |
gene_map |
User-supplied |
method |
R package to use for gene mapping:
|
non121_strategy |
How to handle genes that don't have
1:1 mappings between
|
verbose |
Print messages. |
Background gene list.
bg <- orthogene::create_background(species1 = "mouse",
species2 = "rat",
output_species = "human")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.