Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add phylogeny #20

Open
lonsbio opened this issue Aug 11, 2020 · 2 comments
Open

Add phylogeny #20

lonsbio opened this issue Aug 11, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@lonsbio
Copy link
Member

lonsbio commented Aug 11, 2020

Need a scheme to translate names to emojjy, but with a suitable phylogeny framework in Python should be straight forward from there onwards

e.g. using ete3

from ete3 import Tree
import pyemojify
t = Tree("((Human,Gorilla),(Mouse,Rat));")
test_emoji = [":man:",":monkey:",":mouse:",":rat:"]
for c, leaf in enumerate(t):
  leaf.name = test_emoji[c]
  leaf.name = pyemojify.emojify(leaf.name)
print( t.get_tree_root())

will give


      /-👨
   /-|
  |   \-🐒
--|
  |   /-🐭
   \-|
      \-🐀
@lonsbio lonsbio added the enhancement New feature or request label Aug 11, 2020
@lonsbio
Copy link
Member Author

lonsbio commented Aug 11, 2020

As with the main code, actual emoji can be used instead of the pyemojify ":emoji:" format to break the limited number of emoji available.

@lonsbio
Copy link
Member Author

lonsbio commented Aug 11, 2020

This paper and this repo serve as a guide for a complete example to be implemented:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant