Skip to content

Commit

Permalink
added + character to hybrid tips in dup-counts output
Browse files Browse the repository at this point in the history
  • Loading branch information
gwct committed Mar 24, 2023
1 parent fc6b6b3 commit 2481439
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023.03.24
- Hybrid tip labels now have '+' added to them in the dup-counts output

2023.03.11
- Re-factored code
- Removed `-d` and replaced with the `--st-only` and `--no-st` options, which seems clearer
Expand Down
5 changes: 4 additions & 1 deletion grampa_lib/mul_out.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ def mainOut(globs, all_scores, lowest_maps, multiple_maps):
## End map loop

for node in main_dups:
outline = [str(mul_num), node, str(main_dups[node])];
out_node = node;
if node in hybrid_clade:
out_node = node + "+";
outline = [str(mul_num), out_node, str(main_dups[node])];
dupout.write("\t".join(outline) + "\n");
# Write out the counts per node
## For the lowest scoring trees, also output counts of duplications per node
Expand Down

0 comments on commit 2481439

Please sign in to comment.