Skip to content

Commit

Permalink
Remove faulty global alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
eaasna committed Sep 11, 2024
1 parent d40fa45 commit d1a4a15
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 165 deletions.
14 changes: 3 additions & 11 deletions include/dream_stellar/options/verifier_options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,11 @@ using AllLocal = seqan2::Tag<VerifyAllLocal_> const;
struct VerifyBestLocal_;
using BestLocal = seqan2::Tag<VerifyBestLocal_> const;

struct VerifyBandedGlobal_;
using BandedGlobal = seqan2::Tag<VerifyBandedGlobal_> const;

struct VerifyBandedGlobalExtend_;
using BandedGlobalExtend = seqan2::Tag<VerifyBandedGlobalExtend_> const;

// basically a std::variant<AllLocal, BestLocal, BandedGlobal, BandedGlobalExtend>
// basically a std::variant<AllLocal, BestLocal>
struct StellarVerificationMethod
{
StellarVerificationMethod(AllLocal) : _index{0} {}
StellarVerificationMethod(BestLocal) : _index{1} {}
StellarVerificationMethod(BandedGlobal) : _index{2} {}
StellarVerificationMethod(BandedGlobalExtend) : _index{3} {}

constexpr std::size_t index() const noexcept
{
Expand All @@ -42,7 +34,7 @@ struct StellarVerificationMethod
friend inline std::string to_string(StellarVerificationMethod method)
{
using cstring_t = char const * const;
cstring_t method_names[] = {"exact", "bestLocal", "bandedGlobal", "bandedGlobalExtend"};
cstring_t method_names[] = {"exact", "bestLocal"};
return method_names[method.index()];
}

Expand All @@ -54,7 +46,7 @@ struct VerifierOptions
{
double xDrop{5}; // maximal x-drop

// verification strategy: exact, bestLocal, bandedGlobal
// verification strategy: exact, bestLocal
std::string strVerificationMethod{"exact"};
StellarVerificationMethod verificationMethod{AllLocal{}};
};
Expand Down
2 changes: 0 additions & 2 deletions include/dream_stellar/stellar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
#include <dream_stellar/stellar_index.hpp>
#include <dream_stellar/utils/stellar_kernel_runtime.hpp>
#include <dream_stellar/verification/all_local.hpp>
#include <dream_stellar/verification/banded_global_extend.hpp>
#include <dream_stellar/verification/banded_global.hpp>
#include <dream_stellar/verification/best_local.hpp>
#include <dream_stellar/verification/swift_hit_verifier.hpp>

Expand Down
4 changes: 0 additions & 4 deletions include/dream_stellar/stellar_launcher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ struct StellarLauncher
return visitor_fn(AllLocal());
else if (verificationMethod == StellarVerificationMethod{BestLocal{}})
return visitor_fn(BestLocal());
else if (verificationMethod == StellarVerificationMethod{BandedGlobal{}})
return visitor_fn(BandedGlobal());
else if (verificationMethod == StellarVerificationMethod{BandedGlobalExtend{}})
return visitor_fn(BandedGlobalExtend());
return StellarComputeStatistics{};
}

Expand Down
78 changes: 0 additions & 78 deletions include/dream_stellar/verification/banded_global.hpp

This file was deleted.

68 changes: 0 additions & 68 deletions include/dream_stellar/verification/banded_global_extend.hpp

This file was deleted.

4 changes: 2 additions & 2 deletions src/argument_parsing/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ void init_search_parser(sharg::parser & parser, search_arguments & arguments)
parser.add_option(arguments.strVerificationMethod,
sharg::config{.short_id = '\0',
.long_id = "verification",
.description = "STELLAR: Verification strategy: exact or bestLocal or bandedGlobal.",
.description = "STELLAR: Verification strategy: exact or bestLocal.",
.advanced = true,
.validator = sharg::value_list_validator{"exact", "bestLocal", "bandedGlobal", "bandedGlobalExtend"}});
.validator = sharg::value_list_validator{"exact", "bestLocal"}});
parser.add_option(arguments.numMatches,
sharg::config{.short_id = '\0',
.long_id = "numMatches",
Expand Down

0 comments on commit d1a4a15

Please sign in to comment.