Network showing cosine similarity between reference data and query data, calculated with reference LDA model and transferred model.

cosine_network_cluster2(
  ldaOut,
  dist,
  a_prefix = "reference_",
  b_prefix = "query_",
  layout = "circle",
  cos_sim_thresh = 0.2,
  SEED = 123,
  radius = 0.12,
  width_range = c(0.1, 0.8),
  text_size = 3
)

Arguments

ldaOut

reference LDA model

dist

transferred model of query data

a_prefix

prefix of label of reference data

b_prefix

prefix of label of query data

layout

layout of network

cos_sim_thresh

only links with cosine similarity over threshold will be drawn

SEED

seed

radius

pie size

width_range

edge width

text_size

text size

Examples

if (FALSE) { dist <- query_SeuratObj@misc$dist cosine_network_cluster2(ldaOut=ref_ldaOUt, dist=dist, a_prefix="reference_", b_prefix="query_", layout="fr", cos_sim_thresh=0.5, radius=0.1, text_size = 3) cosine_network_cluster2(ldaOut=ref_ldaOUt, dist=dist, a_prefix="reference_", b_prefix="query_", layout="circle", cos_sim_thresh=0.5, radius=0.05, text_size = 3) }