[adegenet-forum] chooseCN
Jombart, Thibaut
t.jombart at imperial.ac.uk
Fri May 8 20:15:48 CEST 2009
Dear Johannes,
I am sorry to read that you have been stuck all the day on this issue.
If you are using the latest version of adegenet, the right command would be:
network <- chooseCN(mycoordinates, edit.nb=T)
mon1 <- monmonier(mycoordinates, mydistancamatrix, network)
To check adegenet version:
packageDescription("adegenet", fields = "Version")
should reply 1.2-3.
Best,
Thibaut.
--
######################################
Dr Thibaut JOMBART
MRC Centre for Outbreak Analysis and Modelling
Department of Infectious Disease Epidemiology
Imperial College - Faculty of Medicine
St Mary’s Campus
Norfolk Place
London W2 1PG
United Kingdom
Tel. : 0044 (0)20 7594 3658
t.jombart at imperial.ac.uk
http://www1.imperial.ac.uk/medicine/people/t.jombart/
http://adegenet.r-forge.r-project.org/
________________________________________
From: adegenet-forum-bounces at lists.r-forge.r-project.org [adegenet-forum-bounces at lists.r-forge.r-project.org] On Behalf Of Penner, Johannes [Johannes.Penner at mfn-berlin.de]
Sent: 08 May 2009 18:33
To: adegenet-forum at lists.r-forge.r-project.org
Subject: [adegenet-forum] chooseCN
Dear adegenet users,
I am trying to apply the Monmonier algorithm. Using
network <- chooseCN(mycoordinates, edit.nb=T)
I am able to edit depict and edit a network. However, when I later try
to apply the algorithm:
mon1 <- monmonier(mycoordinates, mydistancamatrix, network$cn, ...)
I consistently get the error: "cn ist not a nb object". It seems the
problem is that no nb object is created:
- The command "class(cn)" returns an error that "object 'cn" was not
found.
- The command "network$cn" returns the answer "NULL".
Despite trying all day, including reinstalling R and the packages, I was
not able to find a solution. I also tried all variations suggested in
the tutorial, manual and help files. Any help and suggestions are highly
appreciated!
Thank you very much in advance!
Best wishes
Johannes
_______________________________________________
adegenet-forum mailing list
adegenet-forum at lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/adegenet-forum
More information about the adegenet-forum
mailing list