predictiveDistribution | R Documentation |
Calculates the probability of each region in each cell.
predictiveDistribution(object, big.matrix = FALSE, ...)
object |
Initialized cisTopic object. |
big.matrix |
If having big data, we recommend to use the bigmemory package for the calculations. |
... |
Ignored. |
Returns a matrix where the rows are the regions, the columns the cells, and the values are the probabilities of seeing a region in a matrix.
bamfiles <- c('example_1.bam', 'example_2.bam', 'example_3.bam')
regions <- 'example.bed'
cisTopicObject <- createcisTopicObjectfromBAM(bamfiles, regions)
cisTopicObject <- runModels(cisTopicObject)
cisTopicObject <- selectModel(cisTopicObject)
cisTopicObject <- predictiveDistribution(cisTopicObject)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.