View source: R/coexpr_simulation.R
shuffle_group_matrix | R Documentation |
This function is used internally by acorde
to perform
the shuffling of simulated features for an individual cell type, as part of
the co-expression simulation process. The function is called recursively by
simulate_coexpression()
to
perform the simulation on a full scRNA-seq matrix.
shuffle_group_matrix(sim_data, feature_ids, group_pattern, ngroups)
sim_data |
A count matrix with features as rows and cells as columns.
Feature IDs must be included in an additional column named |
feature_ids |
A two-column |
group_pattern |
A logical vector, containing |
ngroups |
An integer indicating the number of groups that top and bottom features should be divided into. It is computed by dividing the number of features selected as highly/lowly expressed by the size of the clusters that are to be generated. |
An expression matrix, with the same characteristics as sim_data
,
and a number of features defined as the total amount of top/bottom features
selected divided by the number of clusters for which co-expression patterns
where supplied.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.