Hi Mariana,<br><br>I guess this is because you did not install the dependencies (see <span class="il">FAQ</span> N. 2, section 'contacts/FAQ' of the Adegenet website):<br>Typing this should solve the problem:<br><br>
install.packages("<span class="il">adegenet</span>", dep=TRUE)<br>
<br>Sebastien.<br><br><div class="gmail_quote">On 29 March 2011 09:04, Mariana Varela <span dir="ltr"><<a href="mailto:mv307@cam.ac.uk">mv307@cam.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi, I am trying to implement the seqTrack function and I get this error when I require adegenet:<br>
Failed with error: ‘no item called "newtable" on the search list’<br>
In addition: Warning messages:<br>
1: In objects(newtable, all.names = TRUE) :<br>
‘newtable’ converted to character string<br>
2: In objects(newtable, all.names = TRUE) :<br>
‘newtable’ converted to character string<br>
<br>
then I get this when I try to execute seqTract:<br>
<br>
Error: could not find function "seqTrack"<br>
<br>
this is my code:<br>
<br>
seq <- read.dna("106.fasta", format = "fasta", as.matrix = FALSE)<br>
<br>
seq.dist <- dist.dna(seq, model = "N")<br>
<br>
print(seq.dist)<br>
<br>
seq.names <- names(seq)<br>
numseq <- length(seq.names)<br>
seq.times <- rep(0, numseq)<br>
seq.times[grep("W2", seq.names)] <- 2 * 7<br>
seq.times[grep("W12", seq.names)] <- 12 * 7<br>
seq.dates <- rep(as.POSIXct("2011-01-01"), numseq)<br>
seq.dates <- seq.dates + 60 * 60 * 24 * seq.times<br>
<br>
<a href="http://seq.st" target="_blank">seq.st</a> <- seqTrack(as.matrix(seq.dist), seq.names, seq.dates)<br>
<a href="http://seq.st" target="_blank">seq.st</a><br>
<br>
I have this R version:<br>
R 2.12.1 GUI 1.35 Leopard build 32-bit (5665)<br>
<br>
Any suggestions?<br>
<br>
Many thanks<br>
<br>
Mariana Varela, DVM, PhD.<br>
University of Cambridge<br>
Department of Veterinary Medicine<br>
Madingley Road<br>
Cambridge<br>
CB3 0ES<br>
email: <a href="mailto:mv307@cam.ac.uk" target="_blank">mv307@cam.ac.uk</a><br>
tel: +44 (1223) 339042<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><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>