Skip to content

Commit 23d27d1

Browse files
committed
squash commit for v2.1.24
1 parent d970a7d commit 23d27d1

37 files changed

Lines changed: 288 additions & 220 deletions

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ date-released: 2021-04-07
1313
doi: "10.1038/s41592-021-01101-x"
1414
message: "If you use this software, please cite it using these metadata."
1515
title: "Sensitive protein alignments at tree-of-life scale using DIAMOND"
16-
version: "2.1.22"
16+
version: "2.1.24"

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -409,12 +409,12 @@ set(OBJECTS
409409
src/util/tsv/join.cpp
410410
src/dp/scalar/smith_waterman.cpp
411411
src/tools/tsv.cpp
412-
#src/cluster/external/external.cpp
413-
#src/cluster/external/seed_table.cpp
414-
#src/cluster/external/pair_table.cpp
415-
#src/cluster/external/align.cpp
416-
#src/cluster/external/cluster.cpp
417-
#src/cluster/external/output.cpp
412+
src/cluster/external/external.cpp
413+
src/cluster/external/seed_table.cpp
414+
src/cluster/external/pair_table.cpp
415+
src/cluster/external/align.cpp
416+
src/cluster/external/cluster.cpp
417+
src/cluster/external/output.cpp
418418
#src/util/algo/mcl.cpp
419419
#src/stats/blast/matrix_adjust.cpp
420420
src/stats/blast/ncbi.cpp

src/align/global_ranking/extend.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void extend(SequenceFile& db, TempFile& merged_query_list, BitVector& ranking_db
9595
InputFile query_list(merged_query_list);
9696
db.set_seqinfo_ptr(0);
9797
db.flags() |= SequenceFile::Flags::SEQS;
98-
cfg.target.reset(db.load_seqs(INT64_MAX, &ranking_db_filter));
98+
cfg.target.reset(db.load_seqs(INT64_MAX, 0, &ranking_db_filter));
9999
TargetMap db2block_id;
100100
const BlockId db_count = cfg.target->seqs().size();
101101
db2block_id.reserve(db_count);
@@ -187,7 +187,7 @@ void extend(Search::Config& cfg, Consumer& out) {
187187
cfg.db->flags() |= SequenceFile::Flags::TITLES;
188188
if (bool(cfg.output_format->flags & Output::Flags::FULL_TITLES))
189189
cfg.db->flags() |= SequenceFile::Flags::FULL_TITLES;
190-
cfg.target.reset(cfg.db->load_seqs(INT64_MAX, &filter));
190+
cfg.target.reset(cfg.db->load_seqs(INT64_MAX, 0, &filter));
191191
TargetMap db2block_id;
192192
const BlockId db_count = cfg.target->seqs().size();
193193
db2block_id.reserve(db_count);

src/basic/basic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ using std::vector;
4242
using std::count;
4343
using std::runtime_error;
4444

45-
const char* Const::version_string = "2.1.23";
45+
const char* Const::version_string = "2.1.24";
4646
const char* Const::program_name = "diamond";
4747

4848
AlignMode::AlignMode(unsigned mode) :

src/basic/config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ Config::Config(int argc, const char **argv, bool check_io, CommandLineParser& pa
922922
trace_pt_membuf = hit_membuf;
923923

924924
if (command != Config::version) {
925-
static const std::chrono::time_point<std::chrono::system_clock> release_time = std::chrono::system_clock::from_time_t(1771090269);
925+
static const std::chrono::time_point<std::chrono::system_clock> release_time = std::chrono::system_clock::from_time_t(1772912406);
926926
if (std::chrono::system_clock::now() - release_time > std::chrono::hours(180 * 24)) {
927927
set_color(Color::YELLOW, true);
928928
cerr << "Warning: This version of DIAMOND is more than 180 days old. It is recommended to always use the latest version." << endl;

src/basic/const.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct Const
2020
{
2121

2222
enum {
23-
build_version = 177,
23+
build_version = 178,
2424
max_seed_weight = 32,
2525
max_shapes = 64
2626
};

src/cluster/cascaded/wrapper.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ using std::bind;
4545
using std::function;
4646
using std::runtime_error;
4747

48-
void external();
48+
namespace External {
49+
void external();
50+
}
4951
void multinode();
5052

5153
namespace Cluster {
@@ -165,7 +167,8 @@ void Cascaded::run() {
165167
init_thresholds();
166168
if (!config.parallel_tmpdir.empty()) {
167169
if (config.command == ::Config::LINCLUST)
168-
multinode();
170+
External::external();
171+
//multinode();
169172
else
170173
throw runtime_error("Option is not permitted for this workflow: --parallel-tmpdir");
171174
return;

src/cluster/external/align.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ using std::pair;
4444
using std::ofstream;
4545
using std::array;
4646

47+
namespace External {
48+
4749
static void align_rep(ThreadPool& tp, const ChunkSeqs& chunk_seqs, vector<PairEntryShort>::const_iterator begin, vector<PairEntryShort>::const_iterator end, int64_t max_oid, BufferArray& out, ofstream* aln_out, ClusterStats &cstats) {
4850
const int64_t rep_oid = begin->rep_oid, shift = bit_length(max_oid) - RADIX_BITS;
4951
const Sequence rep = chunk_seqs[rep_oid];
@@ -208,4 +210,6 @@ RadixedTable align(Job& job, int chunk_count, int64_t db_size) {
208210
if (rep[i] == i)
209211
++n;
210212
log_stream << n << endl;*/
213+
}
214+
211215
}

src/cluster/external/build_pair_table.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ limitations under the License.
2121
#include "external.h"
2222
#include "input_buffer.h"
2323

24+
namespace External {
25+
2426
#pragma pack(1)
2527

2628
struct SeedEntry {
@@ -98,4 +100,6 @@ inline void get_pairs_mutual_cov(KeyMergeIterator<InputBuffer<SeedEntry>::ConstI
98100
break;
99101
}
100102
}
103+
}
104+
101105
}

src/cluster/external/chunk.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ limitations under the License.
1919
#include "data/sequence_file.h"
2020
#include "external.h"
2121

22+
namespace External {
23+
2224
struct ChunkSeqs {
2325

2426
ChunkSeqs(const std::string& chunk_path) :
@@ -127,4 +129,6 @@ struct ChunkSeqs {
127129
std::vector<std::pair<int64_t, int64_t>> oid_range_;
128130
std::vector<std::unordered_map<int64_t, Sequence>*> oid2seq_;
129131

130-
};
132+
};
133+
134+
}

0 commit comments

Comments
 (0)