Assignment of Individuals to Different Populations

54 views
Skip to first unread message

laiaju...@gmail.com

unread,
Feb 17, 2025, 3:20:37 PMFeb 17
to dartR

Hello everyone, I have been running some analyses, but I am realizing that depending on the filter for my individuals, the function gl.run.snmf assigns my individuals to different populations, and I would like to understand why. In the graph, you can see that in one instance it assigned the GOM individuals to the same cluster as COL, but in another, it did not. It makes sense that the GOM individuals are different from COL and MEX and the other locations because they are individuals from the Atlantic and not from the Pacific. However, I would like to understand what the assignment in the Q matrix depends on.

I am ussing the same code to run both gl objects:


yft_snmf1 <- gl.run.snmf(x=gl3, minK=2,
                 maxK=6, rep=10)

Q1 <- gl.plot.snmf(snmf_result=yft_snmf1, plot.K = 3, ind_name=F, color_clusters = viridis(K))
gl.map.snmf(gl3, qmat = Q)


Additionally, I am trying to use the function gl.run.popcluster, but I am getting different errors with the two distinct gl objects, and I don’t really understand what is happening.


I greatly appreciate your help.

Laia


0458170d-b12b-499d-9a09-892f96bb91fe.png
1cfcb2b9-5006-4536-abd7-97ccfd005004.png

Jose Luis Mijangos

unread,
Feb 17, 2025, 7:53:56 PMFeb 17
to dartR

Hi Laia,

Filtering is a really important step when analyzing data, but there’s no one-size-fits-all approach. Different filtering strategies can influence downstream analyses in different ways—I've attached some papers that explore this.

I’d recommend using PCA, since it’s a model-free approach, to help guide your decisions. Plotting the first three principal components in a 3D plot could give you a clearer picture of the data structure. Also, increasing the number of replicates to 20 would help strengthen the analysis.

Cheers,
Luis

O'Leary_2018_filtering.pdf
Linck_2019_MAF.pdf

Laia Juliana Muñoz

unread,
Feb 17, 2025, 8:05:10 PMFeb 17
to da...@googlegroups.com
Thank you so much Jose Luis, I really appreciate all your help.
Best,
Laia

--
You received this message because you are subscribed to the Google Groups "dartR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dartr+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dartr/0a937a1d-137e-4b72-b913-932800371295n%40googlegroups.com.

Bernd.Gruber

unread,
Feb 17, 2025, 8:17:25 PMFeb 17
to da...@googlegroups.com

Hi

As Luis said it depends on the fitering steps you used.

 

One thing that especially comes to mind is missing data (because individuals can look similar that have similar missing data at a number of loci.

 

So in your case it might make sense to look for patterns in your missing data,  between the groups of individuals.

 

Cheers, Bernd

Laia Juliana Muñoz

unread,
Feb 17, 2025, 8:59:33 PMFeb 17
to da...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages