-
Notifications
You must be signed in to change notification settings - Fork 2
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
Extracting dendrogram #62
Comments
Hi @gevro, The output of the plotMetric() function is a grob object that is aready transformed into a graphical object. Not all information can be extracted from it. The order of the samples in the graph can be extracted but not the dendrogram itself (only the coordinates to generate it graphically).
At the moment, the easiest way to have an easy access to the dendrogram is by generating your own heatmap using pheatmap or ComplexHeatmap.
Best Regards, |
Thanks! Also, I'm curious if there's a way for the calculate metrics function that uses only amplification or deletion information to calculate a distance matrix that integrates both amplifications and deletions? Currently, it seems to do each one separately. I prefer amplification/deletion metrics because the log2 ratio metric is too sensitive in the context of high variability of single cell data. |
Hi @gevro , You would like to calculate how much events are shared between samples (metric) without taking into amplification/deletion status but just event present status. Am I understanding the request correctly? We originally planned to have a more generic function accepting terms defined by users (ex: LOH) but we did not implement it. At the moment, the workaround would be to give to all events, used as input, the same status (ex: AMPLIFICATION even for deletions) and run the function with that input. It is the first time I hear that the metrics are being used on single-cell data. I wish you the best. Don't hesitate if you have other questions. Best, |
Thanks. What I meant was to take the information of clustering amplifications only, and information from clustering deletions only and somehow integrating it so that the final clustering uses both types of information. Is that possible? |
I will need to discuss this with my colleagues. I have seen cases where keeping AMP and DEL separated is the best approach. For example, when comparing bulk tissue to derived cultures, we can see high similarity in deletion patterns but total lost of the amplification in the cultures. |
Makes sense -thanks! |
Hi, How can I extract the dendrogram from the plotMetrics function result? Thanks
The text was updated successfully, but these errors were encountered: