extract polymorphic sites from genlight

17 views
Skip to first unread message

Marcelo Rosas

unread,
Nov 19, 2022, 3:15:34 PM11/19/22
to dartR
Dear dartR team & friends

I have a genlight object obtained from Diversity Arrays Technology (DArT), with 92 genotypes 143,596 binary SNPs, size 126.7Mb 

and I want to extract the polymorphic sites (one for each SNPs) from this genlight to reduce the size of the matrix for phylogenetic reconstruction.

Is there a direct method from genligth?

Regards

Marcelo

Jose Luis Mijangos

unread,
Nov 19, 2022, 5:46:53 PM11/19/22
to dartR
Hi Marcelo,

You can filtered out fragments with more than one SNP using the function gl.filter.secondaries() and filtered out monomorphic loci suing the function gl.filter.monomorphs()

I also recommend reading our filtering tutorial using the link below:


Cheers,
Luis

Marcelo Rosas

unread,
Nov 28, 2022, 12:13:34 PM11/28/22
to dartR
Hi Luis, thank you for your attention,

Hello Luis, thanks for your attention,

I have already filtered the monomorphic loci

thanks

Marcelo R
Reply all
Reply to author
Forward
0 new messages