Skip to content

Commit

Permalink
string conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
snacktavish committed Jul 2, 2020
1 parent df996e1 commit 2dddf65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions physcraper/aligntreetax.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def write_labelled_tree(treetax, label, filepath, schema = "newick", norepeats=T
else:
if norepeats:
new_label = "_".join([new_label, taxon.label])
new_label = new_label.replace(' ','_')
new_label = str(new_label).replace(' ','_')
taxon.label = new_label
tmp_tre.write(path=filepath,
schema=schema,
Expand Down Expand Up @@ -209,7 +209,7 @@ def write_labelled_aln(aligntreetax, label, filepath, schema = "fasta", norepeat
else:
if norepeats:
new_label = "_".join([new_label, taxon.label])
new_label = new_label.replace(' ','_')
new_label = str(new_label).replace(' ','_')
taxon.label = new_label
tmp_aln.write(path=filepath,
schema=schema)
Expand Down

0 comments on commit 2dddf65

Please sign in to comment.