iqtree / piqtree2

a python library that exposes features from iqtree2 - efficient software for phylogenomic inference
GNU General Public License v2.0
12 stars 3 forks source link

Get example_usage.ipynb to work #3

Closed khiron closed 3 months ago

khiron commented 3 months ago

We have a ipynb that does;

import pyiqtree
tree1 = "(A,B,(C,D));"
tree2 = "(A,C,(B,D));"
pyiqtree.RF_distance(tree1, tree2)

It currently has a problem finding the name mangled export on import.

File /workspaces/pyiqtree2/pyiqtree/__init__.py:1
----> [1](https://file+.vscode-resource.vscode-cdn.net/workspaces/pyiqtree2/pyiqtree/__init__.py:1) from .libiqtree import RF_distance, generate_random_tree_file, phylogenetic_analysis

ImportError: /workspaces/pyiqtree2/pyiqtree/libiqtree.cpython-312-x86_64-linux-gnu.so: undefined symbol: _Z21calculate_RF_distanceRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_

Once that is addressed we have end to end functionality and the rest is all just finessing the solution.

rmcar17 commented 3 months ago

The problem this references has been resolved.