View source: R/coexpr_simulation.R
simulate_coexpression | R Documentation |
Using a existing simulated scRNA-seq matrix, this function
creates co-expression relationships between the features, following the
cell type-specific patterns of high/low expression supplied by the user.
In particular, the output of the SymSim
simulator is expected as input (see SymSim
package documentation for details).
simulate_coexpression(sim_data, feature_no, patterns, cluster_size)
sim_data |
A |
feature_no |
An integer indicating the number of high expression ("top")
and low expression ("bottom") features to be selected for co-expression
simulation. Note that |
patterns |
A |
cluster_size |
An integer indicating the number of features to include per cluster. |
A list
, containing two objects:
sim_matrix
: a tibble
containing the same number of cells
as in sim_data
in the columns and feature_no*2
in the rows.
Feature IDs are defined in the feature
column
sim_clusters
: a list
with as many elements as simulated
clusters, where each element contains all feature IDs that were simulated to
follow the same co-expression pattern (that is, the clusters).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.