-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accessing topics fits #2
Comments
Hi Tim, The unnormalized cell assignments throughtout the sampling iterations are stored in cisTopicObject@selected.model$document_expects; while the corresponding unnormalized region assignments are stored in cisTopicObject@selected.model$topics. I have added this to the selectModel() and the cisTopic class documentation. For normalising cell assignments you can do:
For normalising the regions, you can take a look to getRegionsScores(). The normalised topic scores for each region will be stored in object@region.data then. Hope this is helpful! |
The document expects and topics are null. Code and results are shown below. Data is from Buenrostro 2018 and downloaded from https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE96769 library(cisTopic)
|
Hi Tim, You need to run selectModel first to fill the selected.model slot. counts.cisTopics <- selectModel(counts.cisTopics) Otherwise, since you only have a model, you can find it in counts.cisTopics@models. |
Hi, I want to access the estimated topic distributions and probabilities. How do I do this from a cisTopic fit? The documentation is not clear on this.
The text was updated successfully, but these errors were encountered: