[adegenet-forum] optimum number of PCs for optim.a.score()
Jombart, Thibaut
t.jombart at imperial.ac.uk
Tue Nov 17 13:21:44 CET 2015
Hi Robert,
this has been discussed before on the forum. I would recommend using xvalDapc over optim.a.score. The procedure is documented in the vignette, and explained in more details in the last instance of the DAPC practical I use for workshop (adegenet website > documents, bottom of the page):
http://adegenet.r-forge.r-project.org/files/Barcelona2015/practical-MVAgroups.1.0.pdf
Cheers
Thibaut
==============================
Dr Thibaut Jombart
MRC Centre for Outbreak Analysis and Modelling
Department of Infectious Disease Epidemiology
Imperial College - School of Public Health
Norfolk Place, London W2 1PG, UK
Tel. : 0044 (0)20 7594 3658
http://sites.google.com/site/thibautjombart/
http://sites.google.com/site/therepiproject/
http://adegenet.r-forge.r-project.org/
Twitter: @thibautjombart
________________________________
From: adegenet-forum-bounces at lists.r-forge.r-project.org [adegenet-forum-bounces at lists.r-forge.r-project.org] on behalf of Robert Fairweather [osue37 at bangor.ac.uk]
Sent: 13 November 2015 17:53
To: adegenet-forum at lists.r-forge.r-project.org
Subject: [adegenet-forum] optimum number of PCs for optim.a.score()
Hello,
I am using the optim.a.score() function to investigate the optimum number of PCs to retain in my analysis, a function that operates on a DAPC object. To produce a DAPC object I first have to carry out a DAPC procedure on my data, which means defining the number of PCs to retain in advance. I have noticed that the number of PCs retained in the DAPC object changes the outcome of the optim.a.score function, suggesting that some optimum should be known before using the function.
For example, with the microbov data, optim.a.score(dapc(microbov, n.da=100, n.pca=50)) , as suggested in the vignette, returns an optimum number of ~22 PCs, however, increasing this to 100, 200 and 300 PCs, all explaining <100% cumulative variance, return values of 15, 27 and 59 respectively. 300 returns a series of instability warnings.
With this in mind, what is the best way to choose the number of PCs in the dapc object used in optim.a.score()? The number used in the microbov example in the vignette (50) is that explaining ~90% cumulative variance, and thus far I have been using that threshold as a guide with my own data.
Am I perhaps misunderstanding the use of the function?
Many thanks,
Robert
Robert Fairweather
Research Student
Molecular Ecology and Fisheries Genetics Laboratory
Environment Centre Wales
Bangor Unversity
LL57 2UW
Email: osue37 at bangor.ac.uk<mailto:osue37 at bangor.ac.uk>
Skype: fairweathr
Twitter: @FairweathR
Rhif Elusen Gofrestredig 1141565 - Registered Charity No. 1141565
Gall y neges e-bost hon, ac unrhyw atodiadau a anfonwyd gyda hi, gynnwys deunydd cyfrinachol ac wedi eu bwriadu i'w defnyddio'n unig gan y sawl y cawsant eu cyfeirio ato (atynt). Os ydych wedi derbyn y neges e-bost hon trwy gamgymeriad, rhowch wybod i'r anfonwr ar unwaith a dilewch y neges. Os na fwriadwyd anfon y neges atoch chi, rhaid i chi beidio a defnyddio, cadw neu ddatgelu unrhyw wybodaeth a gynhwysir ynddi. Mae unrhyw farn neu safbwynt yn eiddo i'r sawl a'i hanfonodd yn unig ac nid yw o anghenraid yn cynrychioli barn Prifysgol Bangor. Nid yw Prifysgol Bangor yn gwarantu bod y neges e-bost hon neu unrhyw atodiadau yn rhydd rhag firysau neu 100% yn ddiogel. Oni bai fod hyn wedi ei ddatgan yn uniongyrchol yn nhestun yr e-bost, nid bwriad y neges e-bost hon yw ffurfio contract rhwymol - mae rhestr o lofnodwyr awdurdodedig ar gael o Swyddfa Cyllid Prifysgol Bangor.
This email and any attachments may contain confidential material and is solely for the use of the intended recipient(s). If you have received this email in error, please notify the sender immediately and delete this email. If you are not the intended recipient(s), you must not use, retain or disclose any information contained in this email. Any views or opinions are solely those of the sender and do not necessarily represent those of Bangor University. Bangor University does not guarantee that this email or any attachments are free from viruses or 100% secure. Unless expressly stated in the body of the text of the email, this email is not intended to form a binding contract - a list of authorised signatories is available from the Bangor University Finance Office.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/adegenet-forum/attachments/20151117/54b5e51b/attachment.html>
More information about the adegenet-forum
mailing list