From fe0c594dac0512240caa63e6e1de5d447375e251 Mon Sep 17 00:00:00 2001 From: Zamin Iqbal Date: Tue, 19 Jun 2018 13:13:04 +0100 Subject: [PATCH] Remove unnecessary check --- src/cortex_var/many_colours/cmd_line.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/cortex_var/many_colours/cmd_line.c b/src/cortex_var/many_colours/cmd_line.c index 616dde2f..b1827435 100644 --- a/src/cortex_var/many_colours/cmd_line.c +++ b/src/cortex_var/many_colours/cmd_line.c @@ -2088,19 +2088,7 @@ int check_cmdline(CmdLine* cmd_ptr, char* error_string) strcpy(error_string, tmp); return -1; } - - if ( (cmd_ptr->max_read_length>100000) && (cmd_ptr->align_given_list==false) && (cmd_ptr->do_genotyping_of_file_of_sites==false) ) - { - char tmp[]="You are not allowed to set maximum read length >100000 when loading fasta/q into a graph. (However it IS allowed if you are aligning fasta/q to preexisting graph, or genotyping a file of calls (which might be very long)). Since you have not specified --align, Cortex has exited.\n"; - if (strlen(tmp)>LEN_ERROR_STRING) - { - die("coding error - this string is too long:\n%s\n", tmp); - } - strcpy(error_string, tmp); - return -1; - - } - + if ( (cmd_ptr->max_read_length>300000000) && (cmd_ptr->align_given_list==true) ) {