Skip to content

Commit

Permalink
update for toy3 compat and pd warning
Browse files Browse the repository at this point in the history
  • Loading branch information
eaton-lab committed Jul 13, 2024
1 parent 2c6dfe3 commit 5671dc5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions ipyrad/analysis/treeslider.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def _init_tree_table(self):
"sites": 0,
"samples": 0,
"missing": 0.0, # np.nan,
"tree": 0,
"tree": "",
},
columns=[
"scaffold", "start", "end",
Expand Down Expand Up @@ -459,7 +459,7 @@ def _run(self, force=False, ipyclient=None):
for idx in self.tree_table.index:

# if continuing an existing job, skip if row already filled
if self.tree_table.tree[idx] != 0:
if self.tree_table.tree[idx] != "":
prog.finished += 1
continue

Expand Down Expand Up @@ -593,8 +593,7 @@ def remote_mrbayes(nexfile, inference_args, keepdir=None):


def remote_raxml(phyfile, inference_args, keepdir=None):
"""
Call raxml on phy and returned parse tree result
"""Call raxml on phy and returned parse tree result
"""
# if keep_all_files then use workdir as the workdir instead of tmp
if keepdir:
Expand All @@ -613,9 +612,9 @@ def remote_raxml(phyfile, inference_args, keepdir=None):

# get newick string from result
if os.path.exists(rax.trees.bipartitions):
tree = toytree.tree(rax.trees.bipartitions).newick
tree = toytree.tree(rax.trees.bipartitions).write()
else:
tree = toytree.tree(rax.trees.bestTree).newick
tree = toytree.tree(rax.trees.bestTree).write()

# remote tree files
if keepdir is None:
Expand Down

0 comments on commit 5671dc5

Please sign in to comment.