-
Notifications
You must be signed in to change notification settings - Fork 37
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
AlignK not aligning clusters across k #93
Comments
Just wanted to bump this- I have encountered the same issue with alignK across K from admixture input. My fix was to rename the headers in the qlist dataframes for subsequent Ks based on the cluster names from the smallest K... a bit manual but it did work, since the cluster colors match the cluster names when you have not done alignK(). In your case, you could swap the column names between Cluster4 + Cluster3 at K = 4 something like colnames(slist[[5]]) <- c("Cluster1","Cluster2","Cluster4","Cluster3") Hopefully this will help you at least get the look you are going for.. Cheers |
Thanks for your reply. I was specifically looking for a non-manual solution. In the end, I implemented a fix based on the
|
I am having trouble aligning K based on my slist (attached in RDS format here: (https://github.com/royfrancis/pophelper/files/12670714/slist.RDS.zip) )
my code
generated the plot below:
my code
plotQ(alignK(slist),returnplot = T, exportplot =F, imgoutput="join")
including cluster alignment generated the plot below:
As you can see, cluster alignment is solved within each k. However, it is nowhere near perfectly aligned across different k. Do you have some advice on how to improve this?
Thanks
The text was updated successfully, but these errors were encountered: