View source: R/swne_plotting.R
CheckGeneEmbedding | R Documentation |
Validates gene embeddings by plotting cluster logFC vs gene factor loading logFC Warns users if embedded genes fall below minimum logFC threshold
CheckGeneEmbedding(
W,
norm.counts,
genes.embed,
sample.groups,
n.bins = 50,
min.cluster.logfc = 1.5,
min.factor.logfc = 1.5,
font.size = 12,
label.size = 5,
eps = 1e-04
)
W |
Gene loadings matrix |
norm.counts |
Normalized gene expression matrix |
genes.embed |
Genes to embed onto SWNE plot |
sample.groups |
Sample groupings |
n.bins |
Number of bins for the hexbin plot |
min.cluster.logfc |
Minimum cluster logFC for an embedded gene |
min.factor.logfc |
Minimum factor logFC for an embedded gene |
font.size |
Axis label font size |
label.size |
Gene label size |
eps |
Pseudocount to add to fold-change calculations |
Dataframe with cluster logFC and factor logFC. Generates scatterplot as a side effect.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.