Skip to content

Commit

Permalink
colour options for identity and similarity plots
Browse files Browse the repository at this point in the history
  • Loading branch information
KatyBrown committed May 21, 2024
1 parent d0dc645 commit 9a16ba6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CIAlign/argP.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,11 +535,21 @@ def getParser():
help="""Matplotlib palette name for identity mini alignments. \
Default: %(default)s""")

optional.add("--plot_identity_gap_col", dest='plot_identity_gap_col',
type=str, default='white',
help="""Colour for gaps in identity mini alignments. \
Default: %(default)s""")

optional.add("--plot_similarity_palette", dest='plot_similarity_palette',
type=str, default='bone',
help="""Matplotlib palette name for similarity mini \
alignments. Default: %(default)s""")

optional.add("--plot_similarity_gap_col", dest='plot_similarity_gap_col',
type=str, default='white',
help="""Colour for gaps in similarity mini alignments. \
Default: %(default)s""")

optional.add("--plot_dpi", dest="plot_dpi",
type=int, default=300, metavar="(int)",
help="DPI for mini alignments. Default: %(default)s")
Expand Down
4 changes: 3 additions & 1 deletion CIAlign/runCIAlign.py
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,8 @@ def runMiniAlignments(args, log, orig_arr, orig_nams, arr, nams,
height=args.plot_height,
force_numbers=fn,
palette=args.palette,
plot_identity_palette=args.plot_identity_palette)
plot_identity_palette=args.plot_identity_palette,
plot_identity_gap_col=args.plot_identity_gap_col)
if args.plot_consensus_similarity:
log.info("Plotting similarity to consensus")
if not args.silent:
Expand All @@ -919,6 +920,7 @@ def runMiniAlignments(args, log, orig_arr, orig_nams, arr, nams,
force_numbers=fn,
palette=args.palette,
plot_similarity_palette=args.plot_similarity_palette,
plot_similarity_gap_col=args.plot_similarity_gap_col,
sub_matrix_name=args.plot_sub_matrix_name)


Expand Down

0 comments on commit 9a16ba6

Please sign in to comment.