void initenv ( int argc, char ** argv ) { int copt; int inpseq; extern char * optarg; char temp[256]; inpseq = 0; LINK = 0; SCAFF = 0; optind = 1; while ( ( copt = getopt ( argc, argv, "g:L:p:G:FuS" ) ) != EOF ) { switch ( copt ) { case 'g': inGraph = 1; sscanf ( optarg, "%s", graphfile ); // continue; case 'G': sscanf ( optarg, "%s", temp ); // GLDiff = atoi ( temp ); continue; case 'L': sscanf ( optarg, "%s", temp ); ctg_short = atoi ( temp ); continue; case 'F': fillGap = 1; continue; case 'S': SCAFF = 1; continue; case 'u': maskRep = 0; continue; case 'p': sscanf ( optarg, "%s", temp ); // thrd_num = atoi ( temp ); continue; default: if ( inGraph == 0 ) // { display_scaff_usage(); exit ( -1 ); } } } if ( inGraph == 0 ) // { display_scaff_usage(); exit ( -1 ); } }
void initenv (int argc, char **argv) { int copt; int inpseq; extern char *optarg; char temp[256]; inpseq = 0; LINK = 0; SCAFF = 0; optind = 1; while ((copt = getopt (argc, argv, "g:L:p:G:N:FuSt:c:rR")) != EOF) { switch (copt) { case 'g': inGraph = 1; sscanf (optarg, "%s", graphfile); // break; case 'G': sscanf (optarg, "%s", temp); // GLDiff = atoi (temp); break; case 'L': sscanf (optarg, "%s", temp); ctg_mask = atoi (temp); break; case 'N': sscanf ( optarg, "%s", temp ); known_genome_size = atoi ( temp ); break; case 'F': fillGap = 1; break; case 'S': SCAFF = 1; break; case 'u': maskRep = 0; break; case 'p': sscanf (optarg, "%s", temp); // thrd_num = atoi (temp); break; case 't': sscanf (optarg, "%s", temp); // max_num = atoi (temp)>0? atoi (temp):5; break; case 'c': sscanf (optarg, "%s", temp); // max_cnt = atoi (temp)>=0? atoi (temp):0; break; case 'r': read_trace= 1; break; case 'R': RPKM=1; read_trace= 1; break; default: if (inGraph == 0) // { display_scaff_usage (); exit (-1); } } } if (inGraph == 0) // { display_scaff_usage (); exit (-1); } }