<div dir="ltr"><div>Hi Nate,<br><br></div>the $li scores are the scores of each locality onto a given component, the same that you have in classic PCA, that is they are simply the coordinates of the entities on the component you are interested in. As the component is centred on zero, the values are both positive and negative and represent the position of a specific location along that component. That is valid for both positive and negative eigenvalues, respectively associated to global and local spatial structure. A significant structure, whether global (positive) or local (negative), is currently evaluated by the global and local rtests on the basis of the overall genetic correlation with the spatial distribution of the localities. Each positive and negative component (with its own amount of genetic variance and moran Index explained) is thus a partial representation of the global and local spatial structure. So in your case, since you have a significant local structure, you may plot one by one the first, second, third etc negative component and see what the pattern looks like according to each component. Sometimes there's interesting info in smaller cp.<br>
   <br><div><div><div class="gmail_extra">Ehm, as usual it's a bit messy explanation (I am not good at explaining), but I hope this helps. Otherwise I hope you will get better replies.<br><br></div><div class="gmail_extra">
Ciao<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Valeria<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 September 2013 14:44, Nathan Truelove <span dir="ltr"><<a href="mailto:nathan.truelove@manchester.ac.uk" target="_blank">nathan.truelove@manchester.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div style="word-wrap:break-word">
Hi Adegenet Forum,
<div><br>
</div>
<div>Thanks in advance to anyone who has some advice to share with the forum on SPCA. If you're in a rush just read the parts in bold.<br>
<div><br>
</div>
<div><b>I've been using SPCA to look at spatial genetics patterns among lobster populations</b>. I found positive local structure with the function local.rest and no global structure using global.rtest. I've followed Thibaut's advice in his previous sPCA email
 to forum and used $li to interpret local structure. I selected the local eigenvalue that had the highest levels of negative spatial autocorrelation and genetic variance for interpretation using the screeplot function. The $li values from this eigenvalue were
 then used to create an interpolated map. </div>
<div><br>
</div>
<div><b>My question for the forum is</b>: <b>What do the positive and negative $li values associated with the local eigenvalue mean?
</b>Do they correspond to levels of local (positive) and global (negative) scores at each location? Or are the $li values associated with the local eigenvalues simply a score for detecting local spatial genetic structure among sites and have nothing to do with
 global structure?</div>
<div><br>
</div>
<div>Best Wishes,</div>
<div><br>
</div>
<div>Nate</div>
<div><br>
</div>
<div>
<div>
<div>On Aug 11, 2013, at 4:35 PM, Jombart, Thibaut wrote:</div>
<br>
<blockquote type="cite">
<div><br>
Hello, <br>
<br>
I think you attached the wrong file. <br>
<br>
Negative values and local structure are not related. Local structure = sharp differences between neighours. These would be overlooked by the lagged vector.
<br>
<br>
If the structure is clear enough, use $li. <br>
<br>
As you have many overlapping points, s.value is suboptimal. You should consider using the colorplot, or interpolated maps. See the tutorial on sPCA for some example:<br>
<a href="http://cran.r-project.org/web/packages/adegenet/vignettes/adegenet-spca.pdf" target="_blank">http://cran.r-project.org/web/packages/adegenet/vignettes/adegenet-spca.pdf</a><br>
<br>
Best<br>
Thibaut<br>
________________________________________<br>
From: <a href="mailto:dooshra@gmail.com" target="_blank">dooshra@gmail.com</a> [<a href="mailto:dooshra@gmail.com" target="_blank">dooshra@gmail.com</a>] on behalf of Hanan Sela [<a href="mailto:hans@tauex.tau.ac.il" target="_blank">hans@tauex.tau.ac.il</a>]<br>

Sent: 11 August 2013 12:19<br>
To: Jombart, Thibaut<br>
Subject: Re: [adegenet-forum] li vs. ls in sPCA analysis<br>
<br>
Hello Thibaut,<br>
Thank you for the response.<br>
In the file I have attached I see that with the $li variable there are no negative values in the southern sites while with the $ls values there are negative values in the south. It seems that I see more local spatial structure with $ls than with $li . When
 I tested the data with local test I got significant results.  Which variable is better to present in a paper.<br>
Thank you<br>
Hanan<br>
Mr. Hanan Sela Ph.D.<br>
Curator of the Lieberman Cereal Germplasm Bank<br>
The Institute for Cereal Crops Improvement<br>
Tel-Aviv University<br>
P.O. Box 39040<br>
Tel Aviv 69978<br>
Israel<br>
<br>
<a href="mailto:hans@tauex.tau.ac.il" target="_blank">hans@tauex.tau.ac.il</a><mailto:<a href="mailto:hans@tauex.tau.ac.il" target="_blank">hans@tauex.tau.ac.il</a>><br>
Phone: 972-3-6405773<br>
Cell: 972-50-5727458 , local U.S 17203600603<br>
Fax: 972-3-6407857<br>
<br>
<br>
On Sun, Aug 11, 2013 at 12:37 PM, Jombart, Thibaut <<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>>> wrote:<br>

Hello,<br>
<br>
the lagged vector is the spatially weighted average of the original vector. That is, the value of the score at a given location is the weighted average of the neighbouring values. This basically smooths the patterns so that they can be detected / visualized
 more easily.<br>
<br>
Cheers<br>
Thibaut.<br>
<br>
--<br>
######################################<br>
Dr Thibaut JOMBART<br>
MRC Centre for Outbreak Analysis and Modelling<br>
Department of Infectious Disease Epidemiology<br>
Imperial College - School of Public Health<br>
St Mary’s Campus<br>
Norfolk Place<br>
London W2 1PG<br>
United Kingdom<br>
Tel. : <a href="tel:0044%20%280%2920%207594%203658" value="+442075943658" target="_blank">0044 (0)20 7594 3658</a><tel:0044%20%280%2920%207594%203658><br>
<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>><br>
<a href="http://sites.google.com/site/thibautjombart/" target="_blank">http://sites.google.com/site/thibautjombart/</a><br>
<a href="http://adegenet.r-forge.r-project.org/" target="_blank">http://adegenet.r-forge.r-project.org/</a><br>
________________________________________<br>
From: <a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a>> [<a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a>>] on behalf of Hanan Sela [<a href="mailto:hans@tauex.tau.ac.il" target="_blank">hans@tauex.tau.ac.il</a><mailto:<a href="mailto:hans@tauex.tau.ac.il" target="_blank">hans@tauex.tau.ac.il</a>>]<br>

Sent: 11 August 2013<tel:2013> 06:21<br>
To: <a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a>><br>

Subject: [adegenet-forum] li vs. ls in sPCA analysis<br>
<br>
Hello<br>
I have plotted the first  PC of sPCA analysis using s.value once with z=my.pca$li[,1]<br>
and once with z=my.pca$ls[,1]. The patterns seems to differ (see attached file). I do not understand what the lagged PC is representing. What is the meaning of "denoisified" in the practical day presentation  (Google does not know). How do i interpent the difference.
 Please explain.<br>
Thank you<br>
<br>
Mr. Hanan Sela Ph.D.<br>
Curator of the Lieberman Cereal Germplasm Bank<br>
The Institute for Cereal Crops Improvement<br>
Tel-Aviv University<br>
P.O. Box 39040<br>
Tel Aviv 69978<br>
Israel<br>
<br>
<a href="mailto:hans@tauex.tau.ac.il" target="_blank">hans@tauex.tau.ac.il</a><mailto:<a href="mailto:hans@tauex.tau.ac.il" target="_blank">hans@tauex.tau.ac.il</a>><mailto:<a href="mailto:hans@tauex.tau.ac.il" target="_blank">hans@tauex.tau.ac.il</a><mailto:<a href="mailto:hans@tauex.tau.ac.il" target="_blank">hans@tauex.tau.ac.il</a>>><br>

Phone: 972-3-6405773<tel:972-3-6405773><br>
Cell: 972-50-5727458<tel:972-50-5727458> , local U.S 17203600603<br>
Fax: 972-3-6407857<tel:972-3-6407857><br>
<br>
<br>
On Thu, Aug 1, 2013<tel:2013> at 7:15 PM, <<a href="mailto:adegenet-forum-request@lists.r-forge.r-project.org" target="_blank">adegenet-forum-request@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum-request@lists.r-forge.r-project.org" target="_blank">adegenet-forum-request@lists.r-forge.r-project.org</a>><mailto:<a href="mailto:adegenet-forum-request@lists.r-forge.r-project.org" target="_blank">adegenet-forum-request@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum-request@lists.r-forge.r-project.org" target="_blank">adegenet-forum-request@lists.r-forge.r-project.org</a>>>>
 wrote:<br>
Send adegenet-forum mailing list submissions to<br>
       <a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a>><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a>>><br>

<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
       <a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum</a><br>
<br>
or, via email, send a message with subject or body 'help' to<br>
       <a href="mailto:adegenet-forum-request@lists.r-forge.r-project.org" target="_blank">adegenet-forum-request@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum-request@lists.r-forge.r-project.org" target="_blank">adegenet-forum-request@lists.r-forge.r-project.org</a>><mailto:<a href="mailto:adegenet-forum-request@lists.r-forge.r-project.org" target="_blank">adegenet-forum-request@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum-request@lists.r-forge.r-project.org" target="_blank">adegenet-forum-request@lists.r-forge.r-project.org</a>>><br>

<br>
You can reach the person managing the list at<br>
       <a href="mailto:adegenet-forum-owner@lists.r-forge.r-project.org" target="_blank">adegenet-forum-owner@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum-owner@lists.r-forge.r-project.org" target="_blank">adegenet-forum-owner@lists.r-forge.r-project.org</a>><mailto:<a href="mailto:adegenet-forum-owner@lists.r-forge.r-project.org" target="_blank">adegenet-forum-owner@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum-owner@lists.r-forge.r-project.org" target="_blank">adegenet-forum-owner@lists.r-forge.r-project.org</a>>><br>

<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of adegenet-forum digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
  1. Fwd: Question about pre-processing of SNP data for        machine<br>
     learning (Daniel Murrell)<br>
  2. Re: Fwd: Question about pre-processing of SNP data for<br>
     machine learning (Jombart, Thibaut)<br>
  3. Re: Fwd: Question about pre-processing of SNP data for<br>
     machine learning (Daniel Murrell)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 1 Aug 2013<tel:2013><tel:2013<tel:2013>> 15:26:00 +0100<br>
From: Daniel Murrell <<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>>>><br>

To: <a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a>><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a>>><br>

Subject: [adegenet-forum] Fwd: Question about pre-processing of SNP<br>
       data for        machine learning<br>
Message-ID:<br>
       <CADK=3HwmiEO5v6fCQUYNkHFQ520avQJ9LFOAdu=<a href="mailto:Yu-Z%2B8h7BCg@mail.gmail.com" target="_blank">Yu-Z+8h7BCg@mail.gmail.com</a><mailto:<a href="mailto:Yu-Z%252B8h7BCg@mail.gmail.com" target="_blank">Yu-Z%2B8h7BCg@mail.gmail.com</a>><mailto:<a href="mailto:Yu-Z%252B8h7BCg@mail.gmail.com" target="_blank">Yu-Z%2B8h7BCg@mail.gmail.com</a><mailto:<a href="mailto:Yu-Z%25252B8h7BCg@mail.gmail.com" target="_blank">Yu-Z%252B8h7BCg@mail.gmail.com</a>>>><br>

Content-Type: text/plain; charset="windows-1252"<br>
<br>
Hi All<br>
<br>
This is my first time using adegenet. I'm trying to perform some<br>
pre-processing on 1.3M SNPs (~800 individuals) so that I can use them for a<br>
machine learning task. My data was stored in a format which had to be<br>
converted to a genlight object. The data was split so that the information<br>
for the SNPs in each chromosome was in a separate file. I've read each file<br>
in, converted that to a genlight object and then concatenated the genlight<br>
objects using cbind. All of that seems to work ok (except the position and<br>
chromosome data went back to NULL during the concatenation and I had to<br>
reset it on the combined genlight object).<br>
<br>
So, now I want to do my own processing on each SNP and when I try to access<br>
the information for this SNP over the 800 individuals, it takes ages to<br>
extract. Is this because the encoding is done row wise, and so the whole<br>
object needs to be decoded for me to get out the information I require? Is<br>
there a way to transpose this genlight object so that I can access the data<br>
for a single SNP across all individual quickly?<br>
<br>
Thank you<br>
Daniel<br>
<br>
---------- Forwarded message ----------<br>
From: Jombart, Thibaut <<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>>>><br>

Date: Fri, Jul 19, 2013<tel:2013><tel:2013<tel:2013>> at 4:27 PM<br>
Subject: RE: Question about pre-processing of SNP data for machine learning<br>
To: Daniel Murrell <<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>>>><br>

<br>
<br>
Dear Daniel,<br>
<br>
yes, adegenet is designed for that kind of task. Please look at the<br>
tutorial on adegenet-basics where you'll find examples of dimension<br>
reduction for SNP data, to be found on:<br>
<a href="http://adegenet.r-forge.r-project.org/" target="_blank">http://adegenet.r-forge.r-project.org/</a><br>
<br>
Don't hesitate to use the adegenet-forum for further questions (see<br>
contacts on the website).<br>
Best<br>
Thibaut<br>
<br>
--<br>
######################################<br>
Dr Thibaut JOMBART<br>
MRC Centre for Outbreak Analysis and Modelling<br>
Department of Infectious Disease Epidemiology<br>
Imperial College - School of Public Health<br>
St Mary?s Campus<br>
Norfolk Place<br>
London W2 1PG<br>
United Kingdom<br>
Tel. : <a href="tel:0044%20%280%2920%207594%203658" value="+442075943658" target="_blank">0044 (0)20 7594 3658</a><tel:0044%20%280%2920%207594%203658><tel:0044%20%280%2920%207594%203658><br>
<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>>><br>

<a href="http://sites.google.com/site/thibautjombart/" target="_blank">http://sites.google.com/site/thibautjombart/</a><br>
<a href="http://adegenet.r-forge.r-project.org/" target="_blank">http://adegenet.r-forge.r-project.org/</a><br>
________________________________________<br>
From: <a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>>> [<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>>>] on behalf of Daniel Murrell<br>

[<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>>>]<br>

Sent: 19 July 2013<tel:2013><tel:2013> 16:23<br>
To: Jombart, Thibaut<br>
Subject: Question about pre-processing of SNP data for machine learning<br>
<br>
Dear Thibaut<br>
<br>
I'm trying to build a model that uses SNP data as input. The problem I have<br>
is that there is too much of it and I need a way to reduce the number or<br>
the dimensionality of the data points so that I can use them as input to<br>
machine learning algorithms (genome wide, 1.3 million SNPs, 800<br>
individuals). I've done some searching and found this paper:<br>
<a href="http://www.ncbi.nlm.nih.gov/pubmed/18076475" target="_blank">http://www.ncbi.nlm.nih.gov/pubmed/18076475</a> (pdf attached).<br>
<br>
I also found your adegenet package and wondered if it's designed for doing<br>
something like this? I'm not from this field and I'm having some trouble<br>
working this out. Can you point me to anything that might help?<br>
<br>
I'm not sure whether I should be keeping a subset of SNPs and how to find<br>
that subset from the 1.3 million, or whether I should be reducing the<br>
dimensionality.<br>
<br>
Thank you<br>
Daniel<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20130801/a331daec/attachment-0001.html" target="_blank">http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20130801/a331daec/attachment-0001.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 1 Aug 2013<tel:2013> 15:22:27 +0000<br>
From: "Jombart, Thibaut" <<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>>>><br>

To: Daniel Murrell <<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>>>>,<br>

       "<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a>><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a>>>"<br>

       <<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a>><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a>>>><br>

Subject: Re: [adegenet-forum] Fwd: Question about pre-processing of<br>
       SNP data for    machine learning<br>
Message-ID:<br>
       <<a href="mailto:2CB2DA8E426F3541AB1907F98ABA6570638ABF4F@icexch-m1.ic.ac.uk" target="_blank">2CB2DA8E426F3541AB1907F98ABA6570638ABF4F@icexch-m1.ic.ac.uk</a><mailto:<a href="mailto:2CB2DA8E426F3541AB1907F98ABA6570638ABF4F@icexch-m1.ic.ac.uk" target="_blank">2CB2DA8E426F3541AB1907F98ABA6570638ABF4F@icexch-m1.ic.ac.uk</a>><mailto:<a href="mailto:2CB2DA8E426F3541AB1907F98ABA6570638ABF4F@icexch-m1.ic.ac.uk" target="_blank">2CB2DA8E426F3541AB1907F98ABA6570638ABF4F@icexch-m1.ic.ac.uk</a><mailto:<a href="mailto:2CB2DA8E426F3541AB1907F98ABA6570638ABF4F@icexch-m1.ic.ac.uk" target="_blank">2CB2DA8E426F3541AB1907F98ABA6570638ABF4F@icexch-m1.ic.ac.uk</a>>>><br>

Content-Type: text/plain; charset="Windows-1252"<br>
<br>
<br>
Dear Daniel,<br>
<br>
the loss of attributes after cbind indeed is a glitch. Would you mind creating a ticket about it?<br>
<a href="https://sourceforge.net/p/adegenet/tickets/" target="_blank">https://sourceforge.net/p/adegenet/tickets/</a><br>
<br>
You're right about the issue. The encoding is indeed done row-wise so the conversion is done many times over. There's no option for transposing the data, but one solution would be converting your data to integers by blocks so that conversion takes place less
 often, while still keep RAM requirements reasonable.<br>
<br>
All the best<br>
<br>
Thibaut<br>
<br>
________________________________________<br>
From: <a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a>><mailto:<a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a>>> [<a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a>><mailto:<a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a>>>]
 on behalf of Daniel Murrell [<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>>>]<br>

Sent: 01 August 2013<tel:2013> 15:26<br>
To: <a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a>><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a>>><br>

Subject: [adegenet-forum] Fwd: Question about pre-processing of SNP data for    machine learning<br>
<br>
Hi All<br>
<br>
This is my first time using adegenet. I'm trying to perform some pre-processing on 1.3M SNPs (~800 individuals) so that I can use them for a machine learning task. My data was stored in a format which had to be converted to a genlight object. The data was split
 so that the information for the SNPs in each chromosome was in a separate file. I've read each file in, converted that to a genlight object and then concatenated the genlight objects using cbind. All of that seems to work ok (except the position and chromosome
 data went back to NULL during the concatenation and I had to reset it on the combined genlight object).<br>
<br>
So, now I want to do my own processing on each SNP and when I try to access the information for this SNP over the 800 individuals, it takes ages to extract. Is this because the encoding is done row wise, and so the whole object needs to be decoded for me to
 get out the information I require? Is there a way to transpose this genlight object so that I can access the data for a single SNP across all individual quickly?<br>
<br>
Thank you<br>
Daniel<br>
<br>
---------- Forwarded message ----------<br>
From: Jombart, Thibaut <<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>>><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>>>>><br>

Date: Fri, Jul 19, 2013<tel:2013> at 4:27 PM<br>
Subject: RE: Question about pre-processing of SNP data for machine learning<br>
To: Daniel Murrell <<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>>><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>>>>><br>

<br>
<br>
Dear Daniel,<br>
<br>
yes, adegenet is designed for that kind of task. Please look at the tutorial on adegenet-basics where you'll find examples of dimension reduction for SNP data, to be found on:<br>
<a href="http://adegenet.r-forge.r-project.org/" target="_blank">http://adegenet.r-forge.r-project.org/</a><br>
<br>
Don't hesitate to use the adegenet-forum for further questions (see contacts on the website).<br>
Best<br>
Thibaut<br>
<br>
--<br>
######################################<br>
Dr Thibaut JOMBART<br>
MRC Centre for Outbreak Analysis and Modelling<br>
Department of Infectious Disease Epidemiology<br>
Imperial College - School of Public Health<br>
St Mary?s Campus<br>
Norfolk Place<br>
London W2 1PG<br>
United Kingdom<br>
Tel. : <a href="tel:0044%20%280%2920%207594%203658" value="+442075943658" target="_blank">0044 (0)20 7594 3658</a><tel:0044%20%280%2920%207594%203658><tel:0044%20%280%2920%207594%203658><br>
<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>>><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>>>><br>

<a href="http://sites.google.com/site/thibautjombart/" target="_blank">http://sites.google.com/site/thibautjombart/</a><br>
<a href="http://adegenet.r-forge.r-project.org/" target="_blank">http://adegenet.r-forge.r-project.org/</a><br>
________________________________________<br>
From: <a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>>><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>>>> [<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>>><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>>>>]
 on behalf of Daniel Murrell [<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>>><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>>>>]<br>

Sent: 19 July 2013<tel:2013> 16:23<br>
To: Jombart, Thibaut<br>
Subject: Question about pre-processing of SNP data for machine learning<br>
<br>
Dear Thibaut<br>
<br>
I'm trying to build a model that uses SNP data as input. The problem I have is that there is too much of it and I need a way to reduce the number or the dimensionality of the data points so that I can use them as input to machine learning algorithms (genome
 wide, 1.3 million SNPs, 800 individuals). I've done some searching and found this paper: <a href="http://www.ncbi.nlm.nih.gov/pubmed/18076475" target="_blank">http://www.ncbi.nlm.nih.gov/pubmed/18076475</a> (pdf attached).<br>

<br>
I also found your adegenet package and wondered if it's designed for doing something like this? I'm not from this field and I'm having some trouble working this out. Can you point me to anything that might help?<br>

<br>
I'm not sure whether I should be keeping a subset of SNPs and how to find that subset from the 1.3 million, or whether I should be reducing the dimensionality.<br>
<br>
Thank you<br>
Daniel<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 1 Aug 2013<tel:2013> 17:14:37 +0100<br>
From: Daniel Murrell <<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>>>><br>

To: "Jombart, Thibaut" <<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>>>><br>

Cc: "<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a>><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a>>>"<br>

       <<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a>><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a>>>><br>

Subject: Re: [adegenet-forum] Fwd: Question about pre-processing of<br>
       SNP data for machine learning<br>
Message-ID:<br>
       <CADK=3Hz=iJSJePuCOSwCkFOQUWHQyAmk+YS=-<a href="mailto:qWD%2BEO5vOBihA@mail.gmail.com" target="_blank">qWD+EO5vOBihA@mail.gmail.com</a><mailto:<a href="mailto:qWD%252BEO5vOBihA@mail.gmail.com" target="_blank">qWD%2BEO5vOBihA@mail.gmail.com</a>><mailto:<a href="mailto:qWD%252BEO5vOBihA@mail.gmail.com" target="_blank">qWD%2BEO5vOBihA@mail.gmail.com</a><mailto:<a href="mailto:qWD%25252BEO5vOBihA@mail.gmail.com" target="_blank">qWD%252BEO5vOBihA@mail.gmail.com</a>>>><br>

Content-Type: text/plain; charset="windows-1252"<br>
<br>
Dear Thibaut<br>
<br>
Ok, I could try that. I could also try and use the genlight object in a<br>
transposed manner just for the purposes of holding the data so that I can<br>
access individual SNPs easily. I mean nothing else would work expect the<br>
containment.<br>
<br>
Thanks for the help<br>
Regards<br>
Daniel<br>
<br>
On Thu, Aug 1, 2013<tel:2013> at 4:22 PM, Jombart, Thibaut<br>
<<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>>>>wrote:<br>

<br>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Dear Daniel,<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">the loss of attributes after cbind indeed is a glitch. Would you mind<br>
</blockquote>
<blockquote type="cite">creating a ticket about it?<br>
</blockquote>
<blockquote type="cite"><a href="https://sourceforge.net/p/adegenet/tickets/" target="_blank">https://sourceforge.net/p/adegenet/tickets/</a><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">You're right about the issue. The encoding is indeed done row-wise so the<br>
</blockquote>
<blockquote type="cite">conversion is done many times over. There's no option for transposing the<br>
</blockquote>
<blockquote type="cite">data, but one solution would be converting your data to integers by blocks<br>
</blockquote>
<blockquote type="cite">so that conversion takes place less often, while still keep RAM<br>
</blockquote>
<blockquote type="cite">requirements reasonable.<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">All the best<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Thibaut<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">________________________________________<br>
</blockquote>
<blockquote type="cite">From: <a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a>><mailto:<a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a>>>
 [<br>
</blockquote>
<blockquote type="cite"><a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a>><mailto:<a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum-bounces@lists.r-forge.r-project.org" target="_blank">adegenet-forum-bounces@lists.r-forge.r-project.org</a>>>] on behalf
 of Daniel<br>
</blockquote>
<blockquote type="cite">Murrell [<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>>>]<br>

</blockquote>
<blockquote type="cite">Sent: 01 August 2013<tel:2013> 15:26<br>
</blockquote>
<blockquote type="cite">To: <a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a>><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a>>><br>

</blockquote>
<blockquote type="cite">Subject: [adegenet-forum] Fwd: Question about pre-processing of SNP data<br>
</blockquote>
<blockquote type="cite">for    machine learning<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Hi All<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">This is my first time using adegenet. I'm trying to perform some<br>
</blockquote>
<blockquote type="cite">pre-processing on 1.3M SNPs (~800 individuals) so that I can use them for a<br>
</blockquote>
<blockquote type="cite">machine learning task. My data was stored in a format which had to be<br>
</blockquote>
<blockquote type="cite">converted to a genlight object. The data was split so that the information<br>
</blockquote>
<blockquote type="cite">for the SNPs in each chromosome was in a separate file. I've read each file<br>
</blockquote>
<blockquote type="cite">in, converted that to a genlight object and then concatenated the genlight<br>
</blockquote>
<blockquote type="cite">objects using cbind. All of that seems to work ok (except the position and<br>
</blockquote>
<blockquote type="cite">chromosome data went back to NULL during the concatenation and I had to<br>
</blockquote>
<blockquote type="cite">reset it on the combined genlight object).<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">So, now I want to do my own processing on each SNP and when I try to<br>
</blockquote>
<blockquote type="cite">access the information for this SNP over the 800 individuals, it takes ages<br>
</blockquote>
<blockquote type="cite">to extract. Is this because the encoding is done row wise, and so the whole<br>
</blockquote>
<blockquote type="cite">object needs to be decoded for me to get out the information I require? Is<br>
</blockquote>
<blockquote type="cite">there a way to transpose this genlight object so that I can access the data<br>
</blockquote>
<blockquote type="cite">for a single SNP across all individual quickly?<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Thank you<br>
</blockquote>
<blockquote type="cite">Daniel<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">---------- Forwarded message ----------<br>
</blockquote>
<blockquote type="cite">From: Jombart, Thibaut <<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>>><mailto:<br>

</blockquote>
<blockquote type="cite"><a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>>>>><br>

</blockquote>
<blockquote type="cite">Date: Fri, Jul 19, 2013 at 4:27 PM<br>
</blockquote>
<blockquote type="cite">Subject: RE: Question about pre-processing of SNP data for machine learning<br>
</blockquote>
<blockquote type="cite">To: Daniel Murrell <<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>>><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>>>>><br>

</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Dear Daniel,<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">yes, adegenet is designed for that kind of task. Please look at the<br>
</blockquote>
<blockquote type="cite">tutorial on adegenet-basics where you'll find examples of dimension<br>
</blockquote>
<blockquote type="cite">reduction for SNP data, to be found on:<br>
</blockquote>
<blockquote type="cite"><a href="http://adegenet.r-forge.r-project.org/" target="_blank">http://adegenet.r-forge.r-project.org/</a><br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Don't hesitate to use the adegenet-forum for further questions (see<br>
</blockquote>
<blockquote type="cite">contacts on the website).<br>
</blockquote>
<blockquote type="cite">Best<br>
</blockquote>
<blockquote type="cite">Thibaut<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">--<br>
</blockquote>
<blockquote type="cite">######################################<br>
</blockquote>
<blockquote type="cite">Dr Thibaut JOMBART<br>
</blockquote>
<blockquote type="cite">MRC Centre for Outbreak Analysis and Modelling<br>
</blockquote>
<blockquote type="cite">Department of Infectious Disease Epidemiology<br>
</blockquote>
<blockquote type="cite">Imperial College - School of Public Health<br>
</blockquote>
<blockquote type="cite">St Mary?s Campus<br>
</blockquote>
<blockquote type="cite">Norfolk Place<br>
</blockquote>
<blockquote type="cite">London W2 1PG<br>
</blockquote>
<blockquote type="cite">United Kingdom<br>
</blockquote>
<blockquote type="cite">Tel. : <a href="tel:0044%20%280%2920%207594%203658" value="+442075943658" target="_blank">0044 (0)20 7594 3658</a><tel:0044%20%280%2920%207594%203658><br>
</blockquote>
<blockquote type="cite"><a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>>><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a><mailto:<a href="mailto:t.jombart@imperial.ac.uk" target="_blank">t.jombart@imperial.ac.uk</a>>>><br>

</blockquote>
<blockquote type="cite"><a href="http://sites.google.com/site/thibautjombart/" target="_blank">http://sites.google.com/site/thibautjombart/</a><br>
</blockquote>
<blockquote type="cite"><a href="http://adegenet.r-forge.r-project.org/" target="_blank">http://adegenet.r-forge.r-project.org/</a><br>
</blockquote>
<blockquote type="cite">________________________________________<br>
</blockquote>
<blockquote type="cite">From: <a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>>><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>>>> [<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>>><br>

</blockquote>
<blockquote type="cite"><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a><mailto:<a href="mailto:dsmurrell@gmail.com" target="_blank">dsmurrell@gmail.com</a>>>>] on behalf of Daniel Murrell [<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>>><br>

</blockquote>
<blockquote type="cite"><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a><mailto:<a href="mailto:dsm38@cam.ac.uk" target="_blank">dsm38@cam.ac.uk</a>>>>]<br>

</blockquote>
<blockquote type="cite">Sent: 19 July 2013 16:23<br>
</blockquote>
<blockquote type="cite">To: Jombart, Thibaut<br>
</blockquote>
<blockquote type="cite">Subject: Question about pre-processing of SNP data for machine learning<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Dear Thibaut<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">I'm trying to build a model that uses SNP data as input. The problem I<br>
</blockquote>
<blockquote type="cite">have is that there is too much of it and I need a way to reduce the number<br>
</blockquote>
<blockquote type="cite">or the dimensionality of the data points so that I can use them as input to<br>
</blockquote>
<blockquote type="cite">machine learning algorithms (genome wide, 1.3 million SNPs, 800<br>
</blockquote>
<blockquote type="cite">individuals). I've done some searching and found this paper:<br>
</blockquote>
<blockquote type="cite"><a href="http://www.ncbi.nlm.nih.gov/pubmed/18076475" target="_blank">http://www.ncbi.nlm.nih.gov/pubmed/18076475</a> (pdf attached).<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">I also found your adegenet package and wondered if it's designed for doing<br>
</blockquote>
<blockquote type="cite">something like this? I'm not from this field and I'm having some trouble<br>
</blockquote>
<blockquote type="cite">working this out. Can you point me to anything that might help?<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">I'm not sure whether I should be keeping a subset of SNPs and how to find<br>
</blockquote>
<blockquote type="cite">that subset from the 1.3 million, or whether I should be reducing the<br>
</blockquote>
<blockquote type="cite">dimensionality.<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Thank you<br>
</blockquote>
<blockquote type="cite">Daniel<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20130801/4373022c/attachment.html" target="_blank">http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20130801/4373022c/attachment.html</a>><br>

<br>
------------------------------<br>
<br>
_______________________________________________<br>
adegenet-forum mailing list<br>
<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a>><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><mailto:<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a>>><br>

<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum</a><br>
<br>
End of adegenet-forum Digest, Vol 60, Issue 2<br>
*********************************************<br>
<br>
_______________________________________________<br>
adegenet-forum mailing list<br>
<a href="mailto:adegenet-forum@lists.r-forge.r-project.org" target="_blank">adegenet-forum@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>

<br>_______________________________________________<br>
adegenet-forum mailing list<br>
<a href="mailto:adegenet-forum@lists.r-forge.r-project.org">adegenet-forum@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum</a><br></blockquote></div><br></div></div>
</div></div>