View source: R/BasicTopicOperations.R
binarizecisTopics | R Documentation |
cisTopic binarization based on cisTopic scores
binarizecisTopics(
object,
method = "GammaFit",
thrP = 0.99,
plot = TRUE,
cutoffs = NULL
)
object |
Initialized cisTopic object, after the object@region.data has been filled with the cisTopic scores. |
method |
Method for the binarization, 'GammaFit' or 'Predefined'. If GammaFit, a gamma distribution will be fitted to the region scores distributions (a probability threshold must be provided); if threshold, a vector with the top number of regions to be taken per topic must be provided. |
thrP |
Probability threshold to use as cutoff on the probability distribution when using GammaFit as method. |
plot |
If TRUE, plots of the gamma fit per topic will be produced and a barplot with the number of regions taken per topic. |
cutoffs |
Vector (or scalar) with the top number of regions per topic to take per topic if Predefined is selected as method. If scalar, the same number of regions is taken per topic. |
A list with the selected regions per topic stored in object@binarized.cisTopics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.