annotationCloud.Rd
Given outputs from the Miko scoring pipeline, the top cell-type annotations fare visualized using word clouds.
annotationCloud(
object,
object.group = "seurat_clusters",
score,
score.group,
score.cell.type,
score.p,
score.fdr = NULL,
score.coherence.fraction = NULL,
score.frequent.flier = NULL,
fdr.correction = T,
p.threshold = 0.05,
coherence.threshold = 0.8,
show.n.terms = 15,
verbose = T
)
Seurat Object.
name of object meta data field specifying cluster membership. Default is "seurat_clusters".
vector of Miko scores
vector of group memberships
vector of cell-type names/labels.
vector of p values.
vector of fdr values. Optional.
vector of coherence fractions. See coherentFraction(...) for details.
vector of logicals specifying whether score belongs to frequent flier.
Specify whether p-value should be corrected using Benjamini & Hochberg method. Default is T.
p value threshold. Default is 0.05.
Numerical [0,1] specifying minimal coherence required to qualify for visualization. Default is 0.8.
Maximal number of cell-type terms shown in word cloud. Default is 15.
Logical, specify whether process is printed. Default is T.
list of ggplot handles
mikoScore
for miko scoring, coherentFraction
for coherence scoring
df.score_summary <- data.frame(cluster = df.merge$cluster,
cell.type = df.merge$gs,
miko_score = signif(df.merge$miko_score, 3) ,
p = signif(df.merge$p),
fdr = signif(df.merge$fdr),
coherence_fraction = signif(df.merge$coherence_fraction))
#> Error in data.frame(cluster = df.merge$cluster, cell.type = df.merge$gs, miko_score = signif(df.merge$miko_score, 3), p = signif(df.merge$p), fdr = signif(df.merge$fdr), coherence_fraction = signif(df.merge$coherence_fraction)): object 'df.merge' not found
plt.cloud <- annotationCloud(object = so.query_scored,
object.group = "seurat_clusters",
score = df.score_summary$miko_score,
score.group = df.score_summary$cluster,
score.cell.type = df.score_summary$cell.type,
score.p = df.score_summary$p,
score.fdr = df.score_summary$fdr,
score.coherence.fraction = df.score_summary$coherence_fraction,
score.frequent.flier = NULL,
fdr.correction = T,
p.threshold = 0.05,
coherence.threshold = 0.9,
show.n.terms = 15,
verbose = T)
#> Loading required package: ggwordcloud
#> 2022-08-03 14:41:57: Generating annotation wordclouds...
#> Error in annotationCloud(object = so.query_scored, object.group = "seurat_clusters", score = df.score_summary$miko_score, score.group = df.score_summary$cluster, score.cell.type = df.score_summary$cell.type, score.p = df.score_summary$p, score.fdr = df.score_summary$fdr, score.coherence.fraction = df.score_summary$coherence_fraction, score.frequent.flier = NULL, fdr.correction = T, p.threshold = 0.05, coherence.threshold = 0.9, show.n.terms = 15, verbose = T): object 'df.score_summary' not found