aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-08-19 08:44:51 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-08-19 08:44:51 -0700
commitbd21a4412a3e35f32ad84cf19328b7c89e0ed6e5 (patch)
tree52e434afe51f6b153ba0aed6a9f4746614853264
parent9fa0dc81e1a6162736fbefe7ffffde79f9f808ce (diff)
chore: update makefile to redirect to correct targets
-rw-r--r--Makefile2
-rw-r--r--pangraph/graph.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 60266a5..117dbc9 100644
--- a/Makefile
+++ b/Makefile
@@ -55,7 +55,7 @@ staph:
@echo "cluster staph"; \
pangraph cluster -d data/staph data/staph/assemblies/*.fna.gz
@echo "build staph"; \
- pangraph build -d data/staph -m 500 -b 0 data/staph/guide.json #1>staph.log
+ pangraph build -d data/staph -m 500 -b 0 data/staph/guide.json 1>staph.log 2>/dev/null
# figures
diff --git a/pangraph/graph.py b/pangraph/graph.py
index 2f6572a..1a67c16 100644
--- a/pangraph/graph.py
+++ b/pangraph/graph.py
@@ -524,7 +524,7 @@ class Graph(object):
shell=True)
out, err = proc.communicate()
tree = Phylo.read(io.StringIO(out.decode('utf-8')), format='newick')
- print(f"-> {n} SCORE: {tree.total_branch_length()/(2*{num_seqs})}")
+ print(f"-> {n} SCORE: {tree.total_branch_length()/(2*num_seqs)}")
make_tree(0)
make_tree(1)