{"action":"created","issue":{"url":"https://api.github.com/repos/jeetsukumaran/DendroPy/issues/51","repository_url":"https://api.github.com/repos/jeetsukumaran/DendroPy","labels_url":"https://api.github.com/repos/jeetsukumaran/DendroPy/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/jeetsukumaran/DendroPy/issues/51/comments","events_url":"https://api.github.com/repos/jeetsukumaran/DendroPy/issues/51/events","html_url":"https://github.com/jeetsukumaran/DendroPy/issues/51","id":153688231,"number":51,"title":"mrca changes underlying tree?","user":{"login":"wwood","id":15348,"avatar_url":"https://avatars.githubusercontent.com/u/15348?v=3","gravatar_id":"","url":"https://api.github.com/users/wwood","html_url":"https://github.com/wwood","followers_url":"https://api.github.com/users/wwood/followers","following_url":"https://api.github.com/users/wwood/following{/other_user}","gists_url":"https://api.github.com/users/wwood/gists{/gist_id}","starred_url":"https://api.github.com/users/wwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wwood/subscriptions","organizations_url":"https://api.github.com/users/wwood/orgs","repos_url":"https://api.github.com/users/wwood/repos","events_url":"https://api.github.com/users/wwood/events{/privacy}","received_events_url":"https://api.github.com/users/wwood/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-09T01:16:18Z","updated_at":"2016-05-09T03:13:00Z","closed_at":"2016-05-09T02:32:56Z","body":"```\r\nfrom dendropy import Tree\r\n\r\ntr = Tree.get(schema='newick', data='((A,B):1,(C,(D,E):2):3);')\r\nprint str(tr)\r\n\r\nlca = tr.mrca(taxon_labels=['A', 'B'])\r\nprint str(tr)\r\n```\r\ngives\r\n```\r\n((A,B):1.0,(C,(D,E):2.0):3.0)\r\n((A,B):4.0,C,(D,E):2.0)\r\n```\r\nI've tried this using python2 & 3, as well as on 4.1.0 and development-master. Calling `update_bipartitions()` before `mrca` was no help either.\r\n\r\n`mrca` isn't supposed to change the tree, right?"},"comment":{"url":"https://api.github.com/repos/jeetsukumaran/DendroPy/issues/comments/217767903","html_url":"https://github.com/jeetsukumaran/DendroPy/issues/51#issuecomment-217767903","issue_url":"https://api.github.com/repos/jeetsukumaran/DendroPy/issues/51","id":217767903,"user":{"login":"jeetsukumaran","id":26183,"avatar_url":"https://avatars.githubusercontent.com/u/26183?v=3","gravatar_id":"","url":"https://api.github.com/users/jeetsukumaran","html_url":"https://github.com/jeetsukumaran","followers_url":"https://api.github.com/users/jeetsukumaran/followers","following_url":"https://api.github.com/users/jeetsukumaran/following{/other_user}","gists_url":"https://api.github.com/users/jeetsukumaran/gists{/gist_id}","starred_url":"https://api.github.com/users/jeetsukumaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeetsukumaran/subscriptions","organizations_url":"https://api.github.com/users/jeetsukumaran/orgs","repos_url":"https://api.github.com/users/jeetsukumaran/repos","events_url":"https://api.github.com/users/jeetsukumaran/events{/privacy}","received_events_url":"https://api.github.com/users/jeetsukumaran/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T03:13:00Z","updated_at":"2016-05-09T03:13:00Z","body":"(1) is actually the \"best-practice\" approach. It is a formal part of the API and is wrapped up in tests."}}