Diff_topic_distri: Calcualting topic distribution difference between case and...

View source: R/MUSIC.r

Diff_topic_distriR Documentation

Calcualting topic distribution difference between case and control.

Usage

Diff_topic_distri(model, perturb_information, plot = FALSE, plot_path = "./distribution_of_topic.pdf")

Arguments

model

Object of class "LDA" with the optimal topic number selected.

perturb_information

A character vector showing the perturbation of each sample after all the filterings.

plot

FALSE by default. If TRUE, plot the graph.

plot_path

The save path of the graph you plot. It works only when the parameter "plot" is TRUE.

Value

A dataframe.

Author(s)

Bin Duan


bm2-lab/MASCOT documentation built on April 19, 2024, 4:35 p.m.