[adegenet-forum] removing sites from genind/genpop objects

Vikram Chhatre crypticlineage at gmail.com
Sat Jul 25 16:56:08 CEST 2015


Is it possible to remove certain sites from a genind or a genpop object?  I
only wish to retain biallelic sites and a few sites with 3 alleles have
trickled into my data set.  I could of course go back to VCF and remove
those and work back through the pipeline, but a solution within Adegenet
would make life much easier.

> extra <- mygenind at loc.nall
> extra2 <- subset(extra, extra > 2)
> length(extra2)
5

> extra2
loc_156 loc_379 loc_1172 loc_1855 loc_2283
3           3          3            3            3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20150725/fbd38993/attachment.html>


More information about the adegenet-forum mailing list