Skip to content

Commit

Permalink
fixed parameter parsing warning in the command line regarding -G
Browse files Browse the repository at this point in the history
  • Loading branch information
dapogon committed Aug 4, 2020
1 parent c3d200e commit 6cda167
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/cellcoal.c
Original file line number Diff line number Diff line change
Expand Up @@ -8473,16 +8473,12 @@ static void ReadParametersFromCommandLine (int argc,char **argv)
fprintf(stderr, "\n!!! PARAMETER ERROR: Bad mean genotyping error (%f)\n\n", meanGenotypingError);
PrintUsage(stderr);
}
if (meanGenotypingError > 0 && doNGS == YES)
{
fprintf (stderr, "\n!!! PARAMETER ERROR: Cannot specify a coverage larger than 0, which implies read count generation, and a mean genotyping error at the same time\n\n");
PrintUsage(stderr);
}
if (varGenotypingError <= 0 || (meanGenotypingError > 0 && varGenotypingError >= (meanGenotypingError * (1.0 - meanGenotypingError))))
{
fprintf(stderr, "\n!!! PARAMETER ERROR: Bad variance genotyping error (%f); it has to be > 0 and < mean*(1-mean)\n\n", varGenotypingError);
PrintUsage(stderr);
}
doNGS = NO;
break;
case 'C':
coverage = atof(argv[i]);
Expand Down Expand Up @@ -9194,6 +9190,7 @@ void ReadParametersFromFile ()
fprintf(stderr, "\n!!! PARAMETER ERROR: Bad variance genotyping error (%f); it has to be >0 and < mean*(1-mean)\n\n", varGenotypingError);
PrintUsage(stderr);
}
doNGS = NO;
break;
case 'C':
if (fscanf(stdin, "%lf", &coverage) !=1 || argument < 0)
Expand Down

0 comments on commit 6cda167

Please sign in to comment.