Skip to content
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

Plot differential clusters between groups #896

Closed
vanottee opened this issue Dec 9, 2019 · 5 comments
Closed

Plot differential clusters between groups #896

vanottee opened this issue Dec 9, 2019 · 5 comments

Comments

@vanottee
Copy link

vanottee commented Dec 9, 2019

Very nice resource - thank you!

It seems every time I run 'plotHeatmap' it is fitting the data so that all groups (i.e. all supplied bigwig files) form identical clusters. Possibly my bigwig files are identical at every genomic coordinate tested, but it seems to do this even if I supply two opposing histone marks (H3K27ac vs H3K27me3). Is there a way to force the k-means clustering to also consider clusters where the signal intensity is high for one mark, while low for another mark (e.g. coordinates where H3K27ac is high, while H3K27me3 is absent)?

For example, this is taken from Figure 4 of an old SeqMiner manuscript that shows an example of this differential clustering.

Thanks!!

seqminer

@dpryan79
Copy link
Collaborator

You'll want to use the --kmeans option to perform clustering of your data.

@vanottee
Copy link
Author

Sorry, I did not make this clear - I have been using the --kmeans option. However, it seems to be making identical clusters between each of the bigwig files. I've attached my output. In contrast, the image above shows 'bivalent' loci, where it is identifying a cluster that is high for two signals (H3K4me3 & H3K27me3) but devoid of the middle signal (H3K36me3). I thought maybe if I gave the kmeans option a higher cluster number this would help, but again, all bigwig heatmaps look identical. It seems the kmeans algorithm is just clustering the first bigwig file and the others are 'following suit', rather than clustering each bigwig file independently, and then combining them into a heatmap.
multiOrganATACatCtrlATACH3K4me3NegsitesHeatmapK10

@dpryan79
Copy link
Collaborator

You don't have any samples that show obviously different signals at any regions, so there's won't be any clusters like you want.

@sagarutturkar
Copy link

My question is related to figure above - specifically legends for kmeans clusters.

Since the cluster labels are overlapping with profile plot lines- is there any way to move those outside the box or somehow make them not overlapping?

@xubeisi
Copy link

xubeisi commented Nov 22, 2023

@sagarutturkar check my pull request at #1078 I think that's what you asked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants