View source: R/convert_orthologs.R
convert_orthologs | R Documentation |
Currently supports ortholog mapping between any
pair of 700+ species.
Use map_species to
return a full list of available organisms.
convert_orthologs(
gene_df,
gene_input = "rownames",
gene_output = "rownames",
standardise_genes = FALSE,
input_species,
output_species = "human",
method = c("gprofiler", "homologene", "babelgene"),
drop_nonorths = TRUE,
non121_strategy = "drop_both_species",
agg_fun = NULL,
mthreshold = Inf,
as_sparse = FALSE,
as_DelayedArray = FALSE,
sort_rows = FALSE,
gene_map = NULL,
input_col = "input_gene",
output_col = "ortholog_gene",
verbose = TRUE,
...
)
gene_df |
Data object containing the genes
(see
Genes, transcripts, proteins, SNPs, or genomic ranges
can be provided in any format
(HGNC, Ensembl, RefSeq, UniProt, etc.) and will be
automatically converted to gene symbols unless
specified otherwise with the |
gene_input |
Which aspect of
|
gene_output |
How to return genes.
Options include:
|
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 passed to
aggregate_mapped_genes.
Set to |
mthreshold |
Maximum number of ortholog names per gene to show.
Passed to gorth.
Only used when |
as_sparse |
Convert
If |
as_DelayedArray |
Convert aggregated matrix to DelayedArray. |
sort_rows |
Sort |
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 |
verbose |
Print messages. |
... |
Additional arguments to be passed to
gorth or homologene. |
gene_df
with orthologs converted to the
output_species
.
Instead returned as a dictionary (named list) if
gene_output="dict"
or "dict_rev"
.
data("exp_mouse")
gene_df <- convert_orthologs(
gene_df = exp_mouse,
input_species = "mouse"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.