Skip to content

Commit

Permalink
[FEATURE] large commit finally bringing bidirectional FM
Browse files Browse the repository at this point in the history
  • Loading branch information
h-2 committed Oct 13, 2016
1 parent b63e507 commit d336238
Show file tree
Hide file tree
Showing 6 changed files with 280 additions and 146 deletions.
6 changes: 2 additions & 4 deletions src/holders.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,8 @@ class GlobalDataHolder
using TMatch = Match<TRedAlph>;

static constexpr BlastProgram blastProgram = p;
static constexpr bool indexIsFM = std::is_same<TIndexSpec_, TFMIndex<>>::value;
static constexpr bool indexIsBiFM = std::is_same<TIndexSpec_, BidirectionalIndex<TFMIndex<>>>::value;
static constexpr bool indexIsFM = std::is_same<TIndexSpec_, TFMIndex<>>::value || indexIsBiFM;
static constexpr bool alphReduction = !std::is_same<TransAlph<p>, TRedAlph>::value;

/* Sequence storage types */
Expand Down Expand Up @@ -354,9 +355,6 @@ class GlobalDataHolder
TPositions untransQrySeqLengths; // used iff qIsTranslated(p)
TPositions untransSubjSeqLengths; // used iff sIsTranslated(p)

TMasking segIntStarts;
TMasking segIntEnds;

StatsHolder stats;

GlobalDataHolder() :
Expand Down
11 changes: 7 additions & 4 deletions src/lambda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,13 @@ argConv4(LambdaOptions & options,
BlastProgramSelector<p>(),
TRedAlph(),
TScoreExtension());
else if (options.dbIndexType == DbIndexType::BI_FM_INDEX)
return realMain<BidirectionalIndex<TFMIndex<>>>(options,
TOutFormat(),
BlastTabularSpecSelector<h>(),
BlastProgramSelector<p>(),
TRedAlph(),
TScoreExtension());
else
return realMain<TFMIndex<>>(options,
TOutFormat(),
Expand Down Expand Up @@ -352,10 +359,6 @@ realMain(LambdaOptions & options,
if (ret)
return ret;

// ret = loadSegintervals(globalHolder, options);
// if (ret)
// return ret;

ret = loadQuery(globalHolder, options);
if (ret)
return ret;
Expand Down
Loading

0 comments on commit d336238

Please sign in to comment.