dereneaton / ipyrad

Interactive assembly and analysis of RAD-seq data sets
http://ipyrad.readthedocs.io
GNU General Public License v3.0
72 stars 40 forks source link

tmx.draw_tree() error #516

Closed siyeongjun closed 1 year ago

siyeongjun commented 1 year ago

I follwed the treemix commands, and it worked well. However, I found an error in the last part of the treemix code

*this is my test.treemix.in.gz Matsu Nemuro USA WGS 10,0 10,0 11,1 12,0 0,12 10,0 1,9 12,0 0,10 12,0 2,8 12,0 0,10 10,0 3,9 12,0 0,10 10,0 3,9 12,0 10,0 10,0 9,3 12,0 ..............

imap = { "Matsu": ["Matsu_1", "Matsu_2", "Matsu_3", "Matsu_4", "Matsu_5", "Matsu_6"], "Nemuro": ["Nemuro_1", "Nemuro_2", "Nemuro_3", "Nemuro_4", "Nemuro_5", "Nemuro_6"], "USA": ["USA1", "USA2", "USA3", "USA4", "USA5", "USA6"], "WGS": ["WGS_1", "WGS_2", "WGS_3", "WGS_4", "WGS_5", "WGS_6"], } minmap = {i: 0.7 for i in imap}

tmx = ipa.treemix( data=data, ... imap=imap, ... minmap=minmap, ... seed=123456, ... root="Nemuro,WGS", ... m=2, ... ) Samples: 24 Sites before filtering: 139154 Filtered (indels): 0 Filtered (bi-allel): 0 Filtered (mincov): 0 Filtered (minmap): 28075 Filtered (combined): 28075 Sites after filtering: 111079 Sites containing missing values: 109484 (98.56%) Missing values in SNP matrix: 197669 (7.41%) subsampled 20325 unlinked SNPs tmx.run() tmx.draw_tree(); Traceback (most recent call last): File "", line 1, in File "/root/anaconda3/lib/python3.7/site-packages/ipyrad/analysis/treemix.py", line 284, in draw_tree scalebar=True, ValueError: too many values to unpack (expected 2)

isaacovercast commented 1 year ago

It looks like you are using an older version of toytree. Please update to the newest version of toytree (v2.0.5) and try again:

conda install -c conda-forge toytree=2.0.5

siyeongjun commented 1 year ago

Thank you, But still, the same error exists.

print('toytree', toytree.version) toytree 2.0.5 ... ... ... tmx.draw_tree(); Traceback (most recent call last): File "", line 1, in File "/root/anaconda3/lib/python3.7/site-packages/ipyrad/analysis/treemix.py", line 284, in draw_tree scalebar=True, ValueError: too many values to unpack (expected 2)

isaacovercast commented 1 year ago

Can you also check your version of ipyrad? It also may be out of date. The current version is 0.9.92.

conda update -c conda-forge -c bioconda ipyrad=0.9.92