albertyw / itolapi

Python API for the Interactive Tree of Life (iTOL)
MIT License
35 stars 11 forks source link

Problems of multi datasets cannot be shown #29

Open ataravarice opened 5 years ago

ataravarice commented 5 years ago

Hello everyone:

When I upload a tree with two datasets, I found that only one dataset is exported by default.

The second dataset, a binary file, is uploaded correctly and can be shown online. But the dataset is hide by default. image

Does anyone knows how to export a tree with two datasets? My aim is to get a file like this:

image

My current command to export is like this:

print('Exporting to pdf') itol_exporter = ItolExport() itol_exporter.set_export_param_value('tree', str(test.comm.tree_id)) export_location = os.path.join(current_dir, treefile+'.pdf') itol_exporter.set_export_param_value('format', 'pdf') itol_exporter.set_export_param_value('datasetList','dataset1') itol_exporter.set_export_param_value('datasetList','dataset2') itol_exporter.set_export_param_value('datasetList','dataset0') itol_exporter.set_export_param_value('datasetList','binary_data') itol_exporter.set_export_param_value('bootstrap_display','1') itol_exporter.set_export_param_value('bootstrap_type','2') itol_exporter.set_export_param_value('datasets_visible','5') itol_exporter.export(export_location)

YiyanYang0728 commented 2 years ago

@ataravarice You may find this useful from the official website: image https://itol.embl.de/help.cgi#batchExp

ataravarice commented 2 years ago

Thanks a lot

@ataravarice You may find this useful from the official website: image https://itol.embl.de/help.cgi#batchExp