-
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
Comparing untreated vs treated cells #33
Comments
Hi @ccruizm ! You can create a combined cisTopicObject by merging the count matrices of your samples; for example, you can create the independent cisTopicObjects and then extract the matrices to combine from cisTopicObject@count.matrix; if needed, you can also extract the metadata from cisTopicObject@cell.data. Then you can use the combined matrix as input for createcisTopicObject(). Hope this is useful! C |
Hello @cbravo93 Thanks for the suggestion. I have merged the matrices, as you suggested. It seems to work, but now I have a problem when I want to plot the tsne and heatmap:
It seems an issue with the predetermined scale on Thanks! |
Would you mind sharing your code for merging the 2 - cisTopicObject@count.matrices and 2 cisTopicObject@cell.data objects? I can try on my end to do the UMAP as well. |
Sure @JBreunig After creating an independent object for each sample, I extracted the count matrix:
Then using Seuratv3, I create a
With this combined matrix I create a new
So far, I have not merged the My concern its how the peaks are handled by cisTopic since the calling is performed separately on different objects, therefore the peaks do not overlap perfectly, and they might be treated as completely different features. I am having issues plotting tSNE to visually asses what is the contribution of each sample per cluster. I am not expecting a big shift or new clusters after the treatment. I hope this might help you. I expect to solve the issue with the plotting as well so I can have a look at the handling of the merged matrix by cisTopic. |
Hi @ccruizm !
Let me know if you have more questions! C |
Thank you very much for your help! |
Good day!
I have been using this excellent package for analyzing tumor biology. Now, I have another type of dataset (four samples) where two of them are control cells in two different time points (7 and 28d), and the other two are treated cells and collected at the same time points. I would like to know how I can create a cisTopic object that contains the four datasets and perform comparative analysis and topic modeling. I am interested in checking on the same dimensional space, how the treatment affects the chromatin accessibility (cell memory), and which features don't change.
I have checked your tutorial (cisTopic on simulated single-cell epigenomes from melanoma cell line) and seems an approach that can be used in my case for this data. Still, I do not know how to create the object with the info for the four datasets and whether it can be used for my porpuses later in the downstream analysis.
Thank you in advance for your help!
The text was updated successfully, but these errors were encountered: