<html><body><div style="font-family: trebuchet ms,sans-serif; font-size: 12pt; color: #000000"><div>It's not entirely clear what you've done yesterday. Can you provide a reproducible example?</div><div><br data-mce-bogus="1"></div><div>Cheers,</div><div>Roman</div><div><br></div><div data-marker="__SIG_PRE__">----<br>In god we trust, all others bring data.</div><br><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"Mark Coulson" <Mark.Coulson.ic@uhi.ac.uk><br><b>To: </b>"Thibaut Jombart" <thibautjombart@gmail.com><br><b>Cc: </b>adegenet-forum@lists.r-forge.r-project.org<br><b>Sent: </b>Friday, August 5, 2016 11:42:48 AM<br><b>Subject: </b>Re: [adegenet-forum] error in hclust<br></div><br><div data-marker="__QUOTED_TEXT__">
<style><!--
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Lucida Console";
panose-1:2 11 6 9 4 5 4 2 2 4;}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d; mso-fareast-language: EN-US;" data-mce-style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d; mso-fareast-language: EN-US;">There are but this should be taken care of by NA.method and again worked just fine yesterday!</span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d; mso-fareast-language: EN-US;" data-mce-style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d; mso-fareast-language: EN-US;"> </span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d; mso-fareast-language: EN-US;" data-mce-style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d; mso-fareast-language: EN-US;">Mark</span><span style="font-size: 8.0pt; font-family: 'Arial',sans-serif; color: black;" data-mce-style="font-size: 8.0pt; font-family: 'Arial',sans-serif; color: black;"></span></p>
<p class="MsoNormal"><span style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d; mso-fareast-language: EN-US;" data-mce-style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d; mso-fareast-language: EN-US;"> </span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;" data-mce-style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;">From:</span></b><span lang="EN-US" style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;" data-mce-style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"> Thibaut Jombart [mailto:thibautjombart@gmail.com]
<br>
<b>Sent:</b> 05 August 2016 10:41<br>
<b>To:</b> Mark Coulson <Mark.Coulson.ic@uhi.ac.uk><br>
<b>Cc:</b> adegenet-forum@lists.r-forge.r-project.org<br>
<b>Subject:</b> Re: [adegenet-forum] error in hclust</span></p>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">Odd indeed. Are there any NAs in 'X'?</p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">Cheers</p>
</div>
<div>
<p class="MsoNormal">Thibaut</p>
</div>
</div>
<div>
<p class="MsoNormal"><br clear="all">
</p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><br>
--<br>
Dr Thibaut Jombart<br>
Lecturer, Department of Infectious Disease Epidemiology</p>
</div>
</div>
<p class="MsoNormal">Imperial College London<br>
<a href="https://sites.google.com/site/thibautjombart/" target="_blank">https://sites.google.com/site/thibautjombart/</a></p>
</div>
<div>
<p class="MsoNormal"><a href="https://github.com/thibautjombart" target="_blank">https://github.com/thibautjombart<br>
</a></p>
</div>
<p class="MsoNormal">Twitter: <a href="https://twitter.com/TeebzR" target="_blank">
@TeebzR</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal">On 5 August 2016 at 10:34, Mark Coulson <<a href="mailto:Mark.Coulson.ic@uhi.ac.uk" target="_blank">Mark.Coulson.ic@uhi.ac.uk</a>> wrote:</p>
<blockquote style="border: none; border-left: solid #CCCCCC 1.0pt; padding: 0cm 0cm 0cm 6.0pt; margin-left: 4.8pt; margin-right: 0cm;" data-mce-style="border: none; border-left: solid #CCCCCC 1.0pt; padding: 0cm 0cm 0cm 6.0pt; margin-left: 4.8pt; margin-right: 0cm;">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;" data-mce-style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">Hello,</p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;" data-mce-style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"> </p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;" data-mce-style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">Yesterday I ran the following code and everything worked just fine. Today I simply opened up my script and re-ran it and got the following</p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;" data-mce-style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"> </p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;" data-mce-style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">laidon <- import2genind("laidon_project_data_no_sibs.str")</p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;" data-mce-style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">X <- tab(laidon, freq=TRUE, NA.method="mean")
</p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;" data-mce-style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"> </p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;" data-mce-style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">D <- dist(X)</p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;" data-mce-style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">D <- as.matrix(D)</p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;" data-mce-style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"> </p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;" data-mce-style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">h1 <- hclust(D, method="complete")</p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;" data-mce-style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"> </p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; line-height: 11.25pt; background: white; word-break: break-all;" data-mce-style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; line-height: 11.25pt; background: white; word-break: break-all;">
<span style="font-size: 10.0pt; font-family: 'Lucida Console'; color: #c5060b;" data-mce-style="font-size: 10.0pt; font-family: 'Lucida Console'; color: #c5060b;">Error in if (<a href="http://is.na" target="_blank">is.na</a>(n) || n > 65536L) stop("size cannot be NA nor exceed 65536") :
</span></p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; line-height: 11.25pt; background: white; word-break: break-all;" data-mce-style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; line-height: 11.25pt; background: white; word-break: break-all;">
<span style="font-size: 10.0pt; font-family: 'Lucida Console'; color: #c5060b;" data-mce-style="font-size: 10.0pt; font-family: 'Lucida Console'; color: #c5060b;"> missing value where TRUE/FALSE needed</span></p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;" data-mce-style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"> </p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;" data-mce-style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">Not sure what this error means but more confused as to why suddenly it isn’t working. Nothing else has changed</p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;" data-mce-style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;"> </p>
<p class="MsoNormal" style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;" data-mce-style="mso-margin-top-alt: auto; mso-margin-bottom-alt: auto;">Mark</p>
</div>
<p class="MsoNormal">Inverness College UHI, a partner in the University of the Highlands and Islands
<a href="http://www.inverness.uhi.ac.uk" target="_blank">www.inverness.uhi.ac.uk</a> Board of Management of Inverness College (known as Inverness College UHI), Scottish Charity No SC021197.
</p>
</div>
<p class="MsoNormal"><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></p>
</blockquote>
</div>
<p class="MsoNormal"> </p>
</div>
</div>
Inverness College UHI, a partner in the University of the Highlands and Islands www.inverness.uhi.ac.uk Board of Management of Inverness College (known as Inverness College UHI), Scottish Charity No SC021197.
<br>_______________________________________________<br>adegenet-forum mailing list<br>adegenet-forum@lists.r-forge.r-project.org<br>https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum<br></div></div></body></html>