| aggregate_mapped_genes {orthogene} | R Documentation |
Map matrix rownames to standardised gene symbols, and then aggregate many-to-one rows into a new matrix.
aggregate_mapped_genes(
gene_df,
species = "human",
FUN = "sum",
method = c("monocle3", "stats", "delayedarray"),
transpose = FALSE,
gene_map = NULL,
gene_map_col = "name",
non121_strategy = "drop_output_species",
as_sparse = TRUE,
as_DelayedArray = FALSE,
dropNA = TRUE,
sort_rows = FALSE,
verbose = TRUE
)
gene_df |
Input matrix where row names are genes. |
species |
Species to map against. |
FUN |
Aggregation function (DEFAULT: |
method |
Aggregation method. |
transpose |
Transpose |
gene_map |
A user-supplied |
gene_map_col |
Column in |
non121_strategy |
How to handle genes that don't have
1:1 mappings between
|
as_sparse |
Convert aggregated matrix to sparse matrix. |
as_DelayedArray |
Convert aggregated matrix to DelayedArray. |
dropNA |
Drop genes assigned to |
sort_rows |
Sort |
verbose |
Print messages. |
Aggregated matrix
data("exp_mouse")
X_agg <- aggregate_mapped_genes(gene_df = exp_mouse, species = "mouse")