Skip to content

Commit

Permalink
Contig stitcher: change unaligned colour
Browse files Browse the repository at this point in the history
  • Loading branch information
Donaim committed Jan 25, 2024
1 parent 3f0376a commit ce03442
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions micall/core/plot_contigs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ def get_all_arrows(group_ref: str, labels: bool) -> Iterable[Arrow]:
else:
figure.add(Arrow(a_r_st, a_r_ei, elevation=-20, h=1))

Check warning on line 1015 in micall/core/plot_contigs.py

View check run for this annotation

Codecov / codecov/patch

micall/core/plot_contigs.py#L1015

Added line #L1015 was not covered by tests
else:
colour = "red"
colour = "yellow"

name = name_mappings.get(contig_name, contig_name)
figure.add(Track(a_r_st, a_r_ei, color=colour, label=name))
Expand All @@ -1036,7 +1036,7 @@ def get_all_arrows(group_ref: str, labels: bool) -> Iterable[Arrow]:
contig = contig_map[contig_name]
r_st = position_offset
r_ei = position_offset + len(contig.seq)
colour = "red"
colour = "yellow"
name = name_mappings.get(contig_name, contig_name)
figure.add(Track(r_st, r_ei, color=colour, label=name))

Check warning on line 1041 in micall/core/plot_contigs.py

View check run for this annotation

Codecov / codecov/patch

micall/core/plot_contigs.py#L1036-L1041

Added lines #L1036 - L1041 were not covered by tests

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ce03442

Please sign in to comment.