phylotastic / phylo_webservices

This repository contains all Web Services that NMSU team created
1 stars 0 forks source link

replace tip labels with "mrcaott" tag with corresponding scientific names #72

Open LunaSare opened 5 years ago

LunaSare commented 5 years ago

Open Tree of life services sometimes returns tip labels with the tag "mrcaottID1ottID2" instead of the original scientific name. Function datelife::recover_mrcaott() recovers the original name by getting all parent names from both ott IDs and then detecting the first parent that matches both. That should be the original input name, so we just replace the "mrcaott" tip label with with this name.