The basic logic would indeed be using ``add_child``, passing in the seed
node of the second tree as the node to be added.
Other issues that you might have to deal with would be taxon management.
A basic approach would be:
~~~
tns = dendropy.TaxonNamespace()
tree1 = dendropy.Tree.get(
path="tree1.tre",
schema="newick",
taxon_namespace=tns)
tree2 = dendropy.Tree.get(
path="tree2.tre",
schema="newick",
taxon_namespace=tns)
nd = tree1.find_node(...)
nd.add_child(tree2.seed_node)
~~~
It would probably be useful for you to post a minimum self-contained
example for what you tried, and what did not work.
-- jeet
> --
> You received this message because you are subscribed to the Google
> Groups "DendroPy Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
dendropy-user...@googlegroups.com
> <mailto:
dendropy-user...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.
--
--------------------------------------
Jeet Sukumaran
--------------------------------------
jeetsu...@gmail.com
--------------------------------------
Blog/Personal Pages:
http://jeetworks.org/
GitHub Repositories:
http://github.com/jeetsukumaran
Photographs (as stream):
http://www.flickr.com/photos/jeetsukumaran/
Photographs (by galleries):
http://www.flickr.com/photos/jeetsukumaran/sets/
--------------------------------------