Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
Fix include
  • Loading branch information
eaasna committed Sep 11, 2024
1 parent d1a4a15 commit 31dcc31
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions include/dream_stellar/options/dream_options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <set>
#include <cstdint>
#include <cstddef>
#include <vector>

namespace dream_stellar
Expand Down
3 changes: 1 addition & 2 deletions include/dream_stellar/stellar_launcher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ struct StellarLauncher
search_and_verify(
StellarDatabaseSegment<TAlphabet> const databaseSegment,
TId const & databaseID,
QueryIDMap<TAlphabet> const & queryIDMap,
bool const databaseStrand,
StellarOptions & localOptions, // localOptions.compactThresh is out-param
StellarSwiftPattern<TAlphabet> & localSwiftPattern,
Expand Down Expand Up @@ -99,7 +98,7 @@ struct StellarLauncher

StellarComputeStatistics statistics = _verificationMethodVisit(
localOptions.verificationMethod,
[&]<typename TTag>(TTag tag) -> StellarComputeStatistics
[&]<typename TTag>(TTag) -> StellarComputeStatistics
{
SwiftHitVerifier<TTag> swiftVerifier
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ allOrBestLocal(Segment<Segment<TSequence const, InfixSegment>, InfixSegment> con
TEpsilon e = floor(eps*minLength);
TSize minLength1 = _max(0, (TSize)ceil((e+1) / eps));
TEpsilon e1 = floor(eps*minLength1);
TSize minScore = _min((TSize)ceil((minLength-e) / (e+1)), (TSize)ceil((minLength1-e1) / (e1+1)));
TScore minScore = _min((TSize)ceil((minLength-e) / (e+1)), (TSize)ceil((minLength1-e1) / (e1+1)));

// diagonals for banded local alignment
int64_t upperDiag = 0;
Expand Down
7 changes: 0 additions & 7 deletions include/valik/search/search_local.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,13 +266,10 @@ bool search_local(search_arguments & arguments, search_time_statistics & time_st
seqan2::resize(forwardMatches, length(queries));

constexpr bool databaseStrand = true;
auto queryIDMap = dream_stellar::QueryIDMap<TAlphabet>(queries);

dream_stellar::StellarComputeStatistics statistics = dream_stellar::StellarLauncher<TAlphabet>::search_and_verify
(
databaseSegment,
databaseID,
queryIDMap,
databaseStrand,
threadOptions,
swiftPattern,
Expand Down Expand Up @@ -328,14 +325,10 @@ bool search_local(search_arguments & arguments, search_time_statistics & time_st
seqan2::resize(reverseMatches, length(queries));

constexpr bool databaseStrand = false;

dream_stellar::QueryIDMap<TAlphabet> queryIDMap{queries};

dream_stellar::StellarComputeStatistics statistics = dream_stellar::StellarLauncher<TAlphabet>::search_and_verify
(
databaseSegment,
databaseID,
queryIDMap,
databaseStrand,
threadOptions,
swiftPattern,
Expand Down

0 comments on commit 31dcc31

Please sign in to comment.