Skip to content

Commit

Permalink
fixing a small error in rename_tree_leaves
Browse files Browse the repository at this point in the history
  • Loading branch information
brantfaircloth committed Sep 5, 2024
1 parent 2beedcc commit 1487dae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/genetrees/phyluce_genetrees_rename_tree_leaves
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ from phyluce.helpers import is_file, FullPaths

import dendropy

# import pdb
#import pdb


def get_args():
Expand Down Expand Up @@ -100,8 +100,8 @@ def main():
names = dict([(name[0].replace("-", "_"), name[1]) for name in names])
elif args.order == "right:left":
names = dict([(name[1].replace("-", "_"), name[0]) for name in names])
trees = dendropy.TreeList(
stream=open(args.input), schema=args.input_format
trees = dendropy.TreeList.get(
file=open(args.input), schema=args.input_format
)
new_labels = []
for tree in trees:
Expand Down

0 comments on commit 1487dae

Please sign in to comment.