def read_params():
    p = ap.ArgumentParser()
    p.add_argument('-t', '--ifn_tree', required=True, default=None, type=str, help='The input tree in newick format.')
    p.add_argument('-m', '--colorized_metadata', required=False, default='unset', type=str, help='The metadata field to colorize. Default "unset".')
    p.add_argument('--fig_size', required=False, default=8, type=float, help='The figure size. Default "8".')
    p.add_argument('--legend_marker_size', required=False, default=20, type=int, help='The legend marker size. Default "20".')
    p.add_argument('--legend_font_size', required=False, default=10, type=int, help='The legend font size. Default "10".')
    p.add_argument('--legend_marker_edge_width', required=False, default=0.2, type=float, help='The legend marker edge width. Default "0.2".')
    p.add_argument('--leaf_marker_size', required=False, default=20, type=int, help='The legend marker size. Default "20".')
    p.add_argument('--leaf_marker_edge_width', required=False, default=0.2, type=float, help='The legend marker edge width. Default "0.2".')
    p.add_argument('--dpi', required=False, default=300, type=int, help='The figure dpi.')
    p.add_argument('--figure_extension', required=False, default='.png', type=str, help='The figure extension. Default ".png".')
    p.add_argument('--ofn_prefix', required=False, default=None, type=str, help='The prefix of output files.')
    return p.parse_args()
def read_params():
    p = ap.ArgumentParser()
    p.add_argument('-t', '--ifn_tree', required=True, default=None, type=str, help='The input tree in newick format.')
    p.add_argument('-m', '--colorized_metadata', required=False, default='unset', type=str, help='The metadata field to colorize. Default "unset".')
    p.add_argument('--fig_size', required=False, default=8, type=float, help='The figure size. Default "8".')
    p.add_argument('--legend_marker_size', required=False, default=20, type=int, help='The legend marker size. Default "20".')
    p.add_argument('--legend_font_size', required=False, default=10, type=int, help='The legend font size. Default "10".')
    p.add_argument('--legend_marker_edge_width', required=False, default=0.2, type=float, help='The legend marker edge width. Default "0.2".')
    p.add_argument('--leaf_marker_size', required=False, default=20, type=int, help='The legend marker size. Default "20".')
    p.add_argument('--leaf_marker_edge_width', required=False, default=0.2, type=float, help='The legend marker edge width. Default "0.2".')
    p.add_argument('--dpi', required=False, default=300, type=int, help='The figure dpi.')
    p.add_argument('--figure_extension', required=False, default='.png', type=str, help='The figure extension. Default ".png".')
    p.add_argument('--ofn_prefix', required=False, default=None, type=str, help='The prefix of output files.')
    return p.parse_args()