<div dir="ltr"><div class="gmail_default" style="font-size:large;color:rgb(0,0,255)">Hello,</div><div class="gmail_default" style="font-size:large;color:rgb(0,0,255)"><br></div><div class="gmail_default" style="font-size:large;color:rgb(0,0,255)">I am getting an error running xval that has already been posted about:</div><div class="gmail_default"><font color="#0000ff" size="4"><a href="http://lists.r-forge.r-project.org/pipermail/adegenet-forum/2011-May/000282.html">http://lists.r-forge.r-project.org/pipermail/adegenet-forum/2011-May/000282.html</a></font><br></div><div class="gmail_default"><font color="#0000ff" size="4"><a href="http://lists.r-forge.r-project.org/pipermail/adegenet-forum/2016-November/001510.html">http://lists.r-forge.r-project.org/pipermail/adegenet-forum/2016-November/001510.html</a><br></font></div><div class="gmail_default"><font color="#0000ff" size="4"><a href="http://lists.r-forge.r-project.org/pipermail/adegenet-forum/2017-April/001579.html">http://lists.r-forge.r-project.org/pipermail/adegenet-forum/2017-April/001579.html</a><br></font></div><div class="gmail_default"><font color="#0000ff" size="4"><br></font></div><div class="gmail_default"><font color="#0000ff" size="4">
<span style="color:rgb(0,0,255);font-family:arial,sans-serif;font-size:large;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">However, as far as I have found, the only response was from the 2011 post, and said that group member ship had to be provided. I think I have done this. Can you provide any advice on how i can trouble shoot this error to figure out if there is something wrong with my file?</span>
<br></font></div><div class="gmail_default"><font color="#0000ff" size="4"><br></font></div><div class="gmail_default"><font color="#0000ff" size="4">Specifically, I am trying to run xval (in prep for DAPC) on a dataset with 74 individuals and 7820 loci. Data is attached. I may not be able to run DAPC on the dataset, since it is possible that I have no population structure here, but that is what I'm trying to see. If do have structure, it shouldn't be more than two groups. Anyway, I run the following:</font></div><div class="gmail_default"><font color="#0000ff" size="4"><br></font></div><div class="gmail_default"><font color="#0000ff" size="4"><div class="gmail_default">rm(list=ls(all=T))</div><div class="gmail_default"><br></div><div class="gmail_default">#load packages</div><div class="gmail_default">library("ape")</div><div class="gmail_default">library("genetics")</div><div class="gmail_default">library("pegas")</div><div class="gmail_default">library("seqinr")</div><div class="gmail_default">library("ggplot2")</div><div class="gmail_default">library("adegenet")</div><div><br></div><div><div>TaNoOdds <- read.structure("TaNoOddsWithOutsFilled.STRU", n.ind = 74, n.loc = 7820, onerowperind = FALSE, col.lab = 1, col.pop = 2, col.others = NULL, row.marknames = 1, NA.char = "0", ask = TRUE)</div></div><div><br></div></font></div><div class="gmail_default"><div class="gmail_default"> mat <- scaleGen(TaNoOdds, NA.method="mean")</div><div class="gmail_default"><br></div><div class="gmail_default">##then I get this error message</div><div class="gmail_default">Warning message:</div><div class="gmail_default">In .local(x, ...) : Some scaling values are null.</div><div class="gmail_default"> Corresponding alleles are removed.</div><div class="gmail_default"><br></div><div class="gmail_default">I have run this exact same set of commands on seven other files with no problem. Any thoughts about how to trouble-shoot are much appreciated.</div><div class="gmail_default"><br></div></div><div class="gmail_default"><font color="#0000ff" size="4">With thanks,</font></div><div class="gmail_default"><font color="#0000ff" size="4">Ella</font></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Ella Bowles, PhD<br>Postdoctoral Researcher<br>Department of Biology<br>Concordia University<br><br>Website: <a href="https://ellabowlesphd.wordpress.com/" target="_blank">https://ellabowlesphd.wordpress.com/</a><br>Email: <a href="mailto:bowlese@gmail.com" target="_blank">bowlese@gmail.com</a></div></div></div></div></div></div></div>
</div>