Hi Lucinda,

You don't give enough information allowing us to help you efficiently. However, see below.

Lucinda Kirkpatrick wrote on 15/05/2012 07:38:
Dear all,

I am attempting to export a tree I have pruned from 916 taxa to the 53 taxa
I am interested. I used this script:

overlap<- name.check(tree, d)
tree<- drop.tip(tree, overlap$Tree.not.data)
d2<- d[!(rownames(d) %in% overlap$Data.not.tree),]


plot(tree)
name.check(tree,d2)

That was successful but now I want to export the reduced tree as a nexus
file I get the following error:

  write.nexus(tree, file="./Results/Tree.nex")
Read 921 items

This suggests you use an old version of ape (which reads the original data from the NEXUS fil: this feature has been deprecated). I suggest you update ape first; if your problem persists give us more details, possibly with some example data.

Best,

Emmanuel

Error in 1:(start - 1) : argument of length 0

I need the reduced tree in a nexus format for another analysis - how is the
best way to do that?  I am very new to R so please make any explanation
very simple!

Thanks, Luci

        [[alternative HTML version deleted]]

_______________________________________________
R-sig-phylo mailing list
R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo


--
Emmanuel Paradis
IRD, Jakarta, Indonesia
http://ape.mpl.ird.fr/

_______________________________________________
R-sig-phylo mailing list
R-sig-phylo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-phylo

Reply via email to