Skip to content

Commit

Permalink
rename awFmDatabaseSingleKmerExactMatch function to awFmFindSearchRan…
Browse files Browse the repository at this point in the history
…geForString()
  • Loading branch information
Sawwave committed Feb 3, 2024
1 parent 7c6bb61 commit 469758e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/AwFmIndex.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ enum AwFmReturnCode awFmReadIndexFromFile(


/*
* Function: awFmDatabaseSingleKmerExactMatch
* Function: awFmFindSearchRangeForString
* --------------------
* Queries the FM-Index for the range of BWT positions that represent instances
* of the given Kmer found in the database.
Expand All @@ -274,7 +274,7 @@ enum AwFmReturnCode awFmReadIndexFromFile(
* kmer may be found, as long as startPtr < endPtr. Otherwise (startPtr >= endPtr),
* the given kmer does not exist in the database sequence.
*/
struct AwFmSearchRange awFmDatabaseSingleKmerExactMatch(
struct AwFmSearchRange awFmFindSearchRangeForString(
const struct AwFmIndex *_RESTRICT_ const index, const char *_RESTRICT_ const kmer, const uint16_t kmerLength);


Expand Down
4 changes: 2 additions & 2 deletions src/AwFmSearch.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ enum AwFmReturnCode awFmGetHeaderStringFromSequenceNumber(const struct AwFmIndex
}


struct AwFmSearchRange awFmDatabaseSingleKmerExactMatch(
struct AwFmSearchRange awFmFindSearchRangeForString(
const struct AwFmIndex *_RESTRICT_ const index, const char *_RESTRICT_ const kmer, const uint16_t kmerLength) {
int8_t kmerLetterPosition = kmerLength - 1;
uint16_t bwtBlockWidth;
Expand Down Expand Up @@ -305,7 +305,7 @@ struct AwFmSearchRange awFmDatabaseSingleKmerExactMatch(
bool awFmSingleKmerExists(
const struct AwFmIndex *_RESTRICT_ const index, const char *_RESTRICT_ const kmer, const uint16_t kmerLength) {

struct AwFmSearchRange kmerRange = awFmDatabaseSingleKmerExactMatch(index, kmer, kmerLength);
struct AwFmSearchRange kmerRange = awFmFindSearchRangeForString(index, kmer, kmerLength);
return kmerRange.startPtr <= kmerRange.endPtr;
}

Expand Down

0 comments on commit 469758e

Please sign in to comment.