Skip to content

Instantly share code, notes, and snippets.

@terrycojones
Created November 27, 2017 15:33
Show Gist options
  • Save terrycojones/4358219caa8ad4a786443eb4485cc506 to your computer and use it in GitHub Desktop.
Save terrycojones/4358219caa8ad4a786443eb4485cc506 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from __future__ import print_function
import sys
from ete3 import Tree
assert len(sys.argv) == 2, ('Usage: %s tree-file' % sys.argv[0])
print(Tree(sys.argv[1]).write(format=1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment