From 28a6349238d069153c6adabf47c3b8e6c5e28b20 Mon Sep 17 00:00:00 2001 From: "Robert A. Petit III" Date: Sat, 6 Apr 2019 02:09:44 -0400 Subject: [PATCH] set min_range and max_range args to be a float fixes bug in create_typing_output.py has multiple spots where min_range and max_range are being compared as a string instead of a float Example: https://github.com/jhawkey/IS_mapper/blob/master/scripts/create_output.py#L389 --- scripts/ismap.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/ismap.py b/scripts/ismap.py index 47fda30..63b3ad1 100644 --- a/scripts/ismap.py +++ b/scripts/ismap.py @@ -56,9 +56,9 @@ def parse_args(): help='Minimum depth for mapped region to be kept in bed file (default 6)') parser_hits.add_argument('--novel_gap_size', type=int, required=False, default=15, help='Distance in base pairs between left and right flanks to be called a novel hit (default 15)') - parser_hits.add_argument('--min_range', type=str, required=False, default=0.9, + parser_hits.add_argument('--min_range', type=float, required=False, default=0.9, help='Minimum percent size of the gap to be called a known hit (default 0.9, or 90 percent)') - parser_hits.add_argument('--max_range', type=str, required=False, default=1.1, + parser_hits.add_argument('--max_range', type=float, required=False, default=1.1, help='Maximum percent size of the gap to be called a known hit (default 1.1, or 110 percent)') parser_hits.add_argument('--merging', type=str, required=False, default='100', help='Value for merging left and right hits in bed files together to simply calculation of closest and intersecting regions (default 100).') @@ -241,4 +241,4 @@ def main(): if __name__ == '__main__': - main() \ No newline at end of file + main()