[Bioperl-l] copying Bio::Tree::Tree objects
Jon manning
jrm at compbio.dundee.ac.uk
Tue Dec 14 06:55:12 EST 2004
Hi to all,
Is there a simple way of copying tree objects, i.e. not pass by
reference like:
$tree2 = $tree;
keeping node identifiers etc the same? I want to change one copy while
keeping the other to refer back to. I tried using TreeIO to write and
then read in the tree, but this seems to preclude the use of the same
node identifiers, making the comparison tricky.
Thanks,
Jon
More information about the Bioperl-l
mailing list