seedoffset = 0;
inputfile = NULL;
+ dorp = NOTSPECIFIED;
while( --argc > 0 && (*++argv)[0] == '-' )
{
switch( c )
{
case 'o':
- seedoffset = atoi( *++argv );
+ seedoffset = myatoi( *++argv );
fprintf( stderr, "seedoffset = %d\n", seedoffset );
--argc;
goto nextoption;
fprintf( stderr, "inputfile = %s\n", inputfile );
--argc;
goto nextoption;
+ case 'D':
+ dorp = 'd';
+ break;
+ case 'P':
+ dorp = 'p';
+ break;
default:
fprintf( stderr, "illegal option %c\n", c );
argc = 0;
infp = stdin;
- dorp = NOTSPECIFIED;
+// dorp = NOTSPECIFIED;
getnumlen_casepreserve( infp, &nlenmin );
fprintf( stderr, "%d x %d - %d %c\n", njob, nlenmax, nlenmin, dorp );
}
else
{
- usual = "ATGCUatgcu-";
+ usual = "ATGCUatgcuBDHKMNRSVWYXbdhkmnrsvwyx-";
replace_unusual( njob, seq, usual, 'n', tolower );
}
for( i=0; i<njob; i++ )
{
- fprintf( stdout, ">%d_oripos_%s\n", i+seedoffset, name[i] );
+ fprintf( stdout, ">_os_%d_oe_%s\n", i+seedoffset, name[i]+1 );
fprintf( stdout, "%s\n", seq[i] );
}