<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi All,</p>
<p><br>
</p>
<p>Has anyone noticed any strange behaviour with read.fasta since the update to v3.3.1? I have a number of long-term scripts (running on various clusters and locally) that until recently all worked very nicely. I revisited my scripts this week only to find
error messages during the read.fasta stage:</p>
<p><br>
</p>
<p><span><span>wgsconsensus <-read.fasta(file=consensusfile,as.string=F, seqtype=c("DNA"),seqonly=F,set.attributes=F) </span># consensusfile is just the path to fasta</span><br>
</p>
<p><span><br>
</span></p>
<p></p>
<div><span style="color:rgb(255,0,0)">
<div>Error in read.fasta(file = consensusfile, as.string = F, seqtype = c("DNA"), : </div>
<div> unused arguments (as.string = F, seqtype = c("DNA"), seqonly = F, set.attributes = F)</div>
</span></div>
<div><span style="color:rgb(255,0,0)"></span></div>
<br>
<p></p>
<p>I've encountered this on different platforms, running the latest (and older versions) of R, and with both new files and those I've run before. Sequential removal of arguments hasn't been particularly informative, and running it without any arguments also
doesn't help:</p>
<p><br>
</p>
<p></p>
<div>read.fasta(file=consensusfile)</div>
<div><span style="color:rgb(255,0,0)">Read 2 items</span></div>
<div><span style="color:rgb(255,0,0)">Error in seqs[[i]] : subscript out of bounds</span></div>
<br>
<p></p>
<p>Can anyone advise what is happening? Have I just made a silly error?</p>
<p><br>
</p>
<p>Many thanks,</p>
<p><br>
</p>
<p>Mat</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
</div>
</div>
</div>
</body>
</html>