Hi Diego,

Try using 'convertTreeData' with your tree (with named nodes) and your
data. See below an example:

convertTreeData(tree,data)->newtreedata

fwd<-surfaceForward(newtreedata[[1]],newtreedata[[2]])

I hope it helps, good luck!

a


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dr. Arley Camargo
Profesor Adjunto, Programa de Desarrollo Universitario
Centro Universitario de Rivera, Universidad de la República
Ituzaingó 667, Rivera 40000
Uruguay

Tel: (++598) 462-26313 int. 275
Sitio web: www.cur.edu.uy
Enlaces:CV-Uy
<http://buscadores.anii.org.uy/buscador_cvuy/exportador/ExportarPdf?hash=466cd2a9d5ed5e2408b6372de7acd0be>
ResearchGate
<https://www.researchgate.net/profile/Arley_Camargo/?ev=hdr_xprf> Google
scholar <http://scholar.google.com.uy/citations?user=BbPdK7wAAAAJ&hl=en>
Publons <http://publons.com/a/450169/>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

2015-07-18 8:52 GMT-03:00 Diego Salazar <[email protected]>:

> Hi all,
>
> I am trying to use runSurface {surface} but I get the next error:
>
> > runSurface(tree, data)
> Error in runSurface(tree.nex, data) :
> Each node in 'tree' must have a unique label for back-compatibility
> between formats. Use 'nameNodes(tree)'.
>
>
> When I use nameNodes(tree):
>
> Phylogenetic tree with 113 tips and 112 internal nodes.
>
> Tip labels:
>     Pinus_clausa, Pinus_banksiana, Pinus_contorta, Pinus_virginiana,
> Pinus_sabiniana, Pinus_coulteri, ...
> Node labels:
>     zzz1, zzz2, zzz3, zzz4, zzz5, zzz6, ...
>
> Rooted; includes branch lengths.
>
> I understand that nodes haves differents labels, then what is the problem?
>
> Thanks in advanced
>
> Diego
>
> --
> Diego Francisco Salazar Tortosa
> Phd. student
> Departamento de Ecología
> Facultad de Ciencias
> Universidad de Granada
> Av. Fuente Nueva s/n
> 18071 Granada
> Telefono: +34 958241000 ext 20007
> Movil: +34 634851132
> email:[email protected]
>        [email protected]
>
> _______________________________________________
> R-sig-phylo mailing list - [email protected]
> https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
> Searchable archive at
> http://www.mail-archive.com/[email protected]/

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-phylo mailing list - [email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo
Searchable archive at http://www.mail-archive.com/[email protected]/

Reply via email to