[adegenet-forum] IBD test: Adding spatial variable to "optional content" of genepop object

Thibaut Jombart thibautjombart at gmail.com
Fri Sep 2 11:18:49 CEST 2016


Hi there

You can read xy coordinates separately using read.csv, read.table etc. For
the test there is no need to attach the xy coordinates to the object. But
to do so, use other(x)$xy <- xy
Where 'x' is your genind or genpop. Accessors are documented in the basics
tutorial (adegenetTutorial()).

Cheers
Thibaut

On 1 Sep 2016 20:15, "Alan Garcia-Elfring" <alangarcia87 at hotmail.com> wrote:

> Hi everyone,
>
> I'm trying to use the IBD test shown on chapter 7 of the tutorial. The
> example data used, spcaIllus, has spatial information that my .genepop
> files do not have.
>
> How does one incorporate the spatial data into the "optional content" ?
>
> Any help is greatly appreciated.
>
> Best,
> Alan
>
>
>
>
> _______________________________________________
> adegenet-forum mailing list
> adegenet-forum at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/
> listinfo/adegenet-forum
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20160902/38172c64/attachment-0001.html>


More information about the adegenet-forum mailing list