-
Notifications
You must be signed in to change notification settings - Fork 1
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
PCA x metadata heatmap #138
Comments
me:
john:
ie, it's not just multiplying the matrices. Going to take this out of the milestone and come back to it latter when requirements are more clear. |
Hi, Here you can find an example of the heatmap: http://lpantano.github.io/DEGreport/reference/degCovariates.html You have two inputs, expression matrix and metadata. PCA is calculated from the expression matrix, and the PCs values associated to each sample are obtained from that. Then, these values are correlated to columns in the metadata (here there is correlation value and an padjusted pvalue). The colors in the heatmap represent the correlation value between each column and each PCs from the PCA. Non-significant correlations are shown in grey (NA) in the heatmap. Additionally, a dendrogram can be added for the metadata columns, that would indicate the correlation between the metadata variables. Basically, a matrix correlation is created from pairwise comparison between each column in the metadata. With that, the dendrogram is generated using some clustering algorithm and is added to the figure. (In this case, the order of the columns in the heatmap need to match the order of the dendrogram) Let me know if you need more info. |
Once we have metadata, something that would be useful would be a heatmap of principle components by metadata: The idea is to get some idea of what are the underlying attributes which cause clusters. (Thinking this would be another tab in the top right area.)
The text was updated successfully, but these errors were encountered: