Strange faststructure results - K5 plot only has 3 colours/clusters.

83 views
Skip to first unread message

miranda...@gmail.com

unread,
Oct 17, 2023, 11:22:26 AM10/17/23
to structure-software
Hi all,

I've run faststructure before and with no issues, but now something a bit strange is happening.

K = 4 and 5 are selected (for likelihood and maximising structure) but when I check the plots, K = 5 only shows 3 colours (attached plot). i.e. there is very low membership for the other 2 clusters in the meanQ. 

In adegenet and other pop gen analyses 3 clusters are identified so this makes more sense.  The plot for K = 3 is very similar. 

Does anyone have an idea what is going on here?
fS_run_K.5.svg
fS_run_K.5.meanQ
fS_run_K.3.meanQ
fS_run_K.3.svg

Francisco Pina Martins

unread,
Oct 18, 2023, 11:09:22 AM10/18/23
to structure-software
Dear Miranda,

From my experience, fastStructure's "choosek.py" is not particularly reliable. I have witnessed what you describe (choosek.py overestimating the best value of K compared to other approaches) occurring on multiple datasets. I'm not sure why this happens, but I tend to disregard the results of "choosek.py" anyway as it frequently seems to overestimate the best K value.

Hope it helps,

Francisco
Reply all
Reply to author
Forward
0 new messages