Skip to content

Commit

Permalink
loadihashref parameter removal
Browse files Browse the repository at this point in the history
  • Loading branch information
calkan committed Nov 24, 2014
1 parent 06e750b commit 8eae36e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
7 changes: 6 additions & 1 deletion CommandLineParser.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ int parseCommandLine (int argc, char *argv[])
int o;
int index;
char *fastaFile = NULL;

readGroup[0] = 0;
sampleName[0] = 0;
libName[0] = 0;
Expand All @@ -118,6 +118,7 @@ int parseCommandLine (int argc, char *argv[])
{"search", required_argument, 0, 's'},
{"help", no_argument, 0, 'h'},
{"version", no_argument, 0, 'v'},
{"quiet", no_argument, 0, 'q'},
{"seq", required_argument, 0, 'x'},
{"seq1", required_argument, 0, 'x'},
{"seq2", required_argument, 0, 'y'},
Expand Down Expand Up @@ -210,6 +211,10 @@ int parseCommandLine (int argc, char *argv[])
fprintf(stderr, "mrFAST %s.%s with FastHASH\n", versionNumber, versionNumberF);
return 0;
break;
case 'q':
if (freopen("/dev/null", "w", stderr) == NULL)
fprintf(stderr, "Quiet mode failure.\n");
break;
case '?':
fprintf(stderr, "Unknown parameter: %s\n", longOptions[index].name);
abort();
Expand Down
3 changes: 1 addition & 2 deletions HashTable.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ void finalizeLoadingIHashTable()
}

/**********************************************/
int loadIHashTable(double *loadTime, int errThreshould)
int loadIHashTable(double *loadTime)
{
double startTime = getTime();
unsigned char extraInfo = 0;
Expand Down Expand Up @@ -426,7 +426,6 @@ int initLoadingHashTable(char *fileName)

tmp = fread(&WINDOW_SIZE, sizeof(WINDOW_SIZE), 1, _ih_fp);

fprintf(stderr, "Hash table kmer length: %d\n", WINDOW_SIZE);
configHashTable();

if (_ih_maxHashTableSize != pow(4, WINDOW_SIZE))
Expand Down
2 changes: 1 addition & 1 deletion HashTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ int initLoadingHashTable(char *fileName);
HashTable *getHashTable();

void (*generateHashTable)(char *fileName, char *indexName);
int (*loadHashTable)(double *loadTime, int errThreshould);
int (*loadHashTable)(double *loadTime);
void (*finalizeLoadingHashTable)();
unsigned int *(*getCandidates)(int hv);

Expand Down
4 changes: 2 additions & 2 deletions baseFAST.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ int main(int argc, char *argv[])
do
{

flag = loadHashTable ( &tmpTime, errThreshold); // Reading a fragment
flag = loadHashTable ( &tmpTime); // Reading a fragment
curGen = getRefGenomeName();

// First Time
Expand Down Expand Up @@ -256,7 +256,7 @@ int main(int argc, char *argv[])
do
{

flag = loadHashTable ( &tmpTime , errThreshold); // Reading a fragment
flag = loadHashTable ( &tmpTime); // Reading a fragment
curGen = getRefGenomeName();

// First Time
Expand Down

0 comments on commit 8eae36e

Please sign in to comment.