View source: R/map_data_seurat.R
map_data_seurat | R Documentation |
Convert a Seurat object across-species (gene orthologs) or within-species (gene synonyms).
map_data_seurat(
obj,
gene_map = NULL,
input_col = "input_gene",
output_col = "ortholog_gene",
standardise_genes = FALSE,
input_species = NULL,
output_species = input_species,
method = c("homologene", "gprofiler", "babelgene"),
drop_nonorths = TRUE,
non121_strategy = "drop_both_species",
agg_fun = "sum",
mthreshold = Inf,
as_sparse = TRUE,
as_delayedarray = FALSE,
sort_rows = TRUE,
test_species = NULL,
verbose = TRUE
)
obj |
A Seurat object. |
gene_map |
A data.frame that maps the current gene names to new gene names. This function's behaviour will adapt to different situations as follows:
|
input_col |
Column name within |
output_col |
Column name within |
standardise_genes |
If |
input_species |
Name of the input species (e.g., "mouse","fly"). Use map_species to return a full list of available species. |
output_species |
Name of the output species (e.g. "human","chicken"). Use map_species to return a full list of available species. |
method |
R package to use for gene mapping:
|
drop_nonorths |
Drop genes that don't have an ortholog
in the |
non121_strategy |
How to handle genes that don't have
1:1 mappings between
|
agg_fun |
Aggregation function. |
mthreshold |
maximum number of results per initial alias to show. Shows all by default. |
as_sparse |
Convert aggregated matrix to sparse matrix. |
sort_rows |
Sort |
verbose |
Print messages. |
... |
Arguments passed on to
|
Seurat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.