Skip to content

Commit 2453f18

Browse files
authored
Merge pull request #211 from SGSSGene/fix/less_space_construction
Using less space during construction
2 parents 312d4eb + d8286ae commit 2453f18

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

src/mkindex_algo.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ auto generateIndex(TStringSet & seqs, LambdaIndexerOptions const & options)
603603
myPrint(options, 1, "Generating Index...");
604604
double s = sysTime();
605605

606-
TIndex index{seqs | bio::views::to_rank | fmindex_collection::add_sentinels, 5};
606+
TIndex index{seqs | bio::views::to_rank | fmindex_collection::add_sentinels, /*samplingRate*/ 5, options.threads};
607607

608608
double e = sysTime() - s;
609609
myPrint(options, 1, " done.\n");

src/search_algo.hpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -470,11 +470,9 @@ inline void search_impl(LocalDataHolder<TGlobalHolder> & lH, TSeed && seed)
470470
{
471471
if constexpr (TGlobalHolder::c_dbIndexType == DbIndexType::FM_INDEX)
472472
{
473-
//!TODO a reversed FMIndex is used, so the query need to be reversed, so we search from left to right
474-
// This is a conceptual TODO for fmindex_collection library
475473
fmindex_collection::search_backtracking_with_buffers::search(
476474
lH.gH.indexFile.index,
477-
seed | std::views::reverse | bio::views::to_rank | fmindex_collection::add_sentinel,
475+
seed | bio::views::to_rank | fmindex_collection::add_sentinel,
478476
lH.searchOpts.maxSeedDist,
479477
lH.cursor_tmp_buffer,
480478
lH.cursor_tmp_buffer2,

submodules/fmindex-collection

Submodule fmindex-collection updated 105 files

test/data/datasources.cmake

+9-9
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ include (cmake/app_datasources.cmake)
44

55
## Index input files
66

7-
set(BASEURL "https://raw.githubusercontent.com/h-2/lambda-testdata/646b6fc570c5b3673fde6819ea983159921c0360")
7+
set(BASEURL "https://raw.githubusercontent.com/h-2/lambda-testdata/0a52e3bed1daf8646a496b63721b912fef3364bd")
88

99
declare_datasource (FILE db_nucl.fasta.gz
1010
URL ${BASEURL}/input_files/db_nucl.fasta.gz
@@ -22,35 +22,35 @@ declare_datasource (FILE db_prot.fasta.gz
2222

2323
declare_datasource (FILE db_nucl_fm.fasta.gz.lba
2424
URL ${BASEURL}/output_files/db_nucl_fm.fasta.gz.lba
25-
URL_HASH SHA256=7a139ea6d9da493ae80a1b0de0060f018cc408ce5b130496320b7f18b6f43eda)
25+
URL_HASH SHA256=68de7b2822b3f47268efee8becd400697cb1581a7055d1b581af365dd27f7a89)
2626

2727
declare_datasource (FILE db_nucl_bifm.fasta.gz.lba
2828
URL ${BASEURL}/output_files/db_nucl_bifm.fasta.gz.lba
29-
URL_HASH SHA256=4bc3894485ac11210149cb29cbc7a04ec3e8f01d1cc55d50b7c15e61d1a0c115)
29+
URL_HASH SHA256=e812f75f1672b5dc4b8cb6078ce209ec809d21783424836ccbe0c9b78f37887c)
3030

3131
declare_datasource (FILE db_nucl_bs_fm.fasta.gz.lba
3232
URL ${BASEURL}/output_files/db_nucl_bs_fm.fasta.gz.lba
33-
URL_HASH SHA256=e7429e16fa79114228a42e367843719f8bf56374c32537a5c25e5c9a062f3faf)
33+
URL_HASH SHA256=b17d4e29f424af54fa802344ae9d4af974dbfc16d0445741e08de6f3cfface0b)
3434

3535
declare_datasource (FILE db_nucl_bs_bifm.fasta.gz.lba
3636
URL ${BASEURL}/output_files/db_nucl_bs_bifm.fasta.gz.lba
37-
URL_HASH SHA256=dae02a72f5dd40ccb67f8c4fc8f84b04d148074f84e5e088fff0e61e7c2cda99)
37+
URL_HASH SHA256=6dc216251505f0a913dffb9dc97699898492d511934dbcd1c9961337a151a62b)
3838

3939
declare_datasource (FILE db_prot_fm.fasta.gz.lba
4040
URL ${BASEURL}/output_files/db_prot_fm.fasta.gz.lba
41-
URL_HASH SHA256=cc9a563f5a2a2e7fe27b9d19761e8326371625dadf2509289b7a52df65b31da3)
41+
URL_HASH SHA256=57fa7a4319c5eb4dded850a79beefa1c5eca6927c91541cd7d658fde0ab7d166)
4242

4343
declare_datasource (FILE db_prot_bifm.fasta.gz.lba
4444
URL ${BASEURL}/output_files/db_prot_bifm.fasta.gz.lba
45-
URL_HASH SHA256=0b2cdbea634481efb840c901ed768bc9bc2811ac87f16cca751c327094c50c75)
45+
URL_HASH SHA256=76d0405235aff8145fe0d90399ffb7d3619ad2fedc37776771a1ca8a38b79a5d)
4646

4747
declare_datasource (FILE db_trans_fm.fasta.gz.lba
4848
URL ${BASEURL}/output_files/db_trans_fm.fasta.gz.lba
49-
URL_HASH SHA256=49c0b6784df6de0d6e064c65d034ad3ced961283135f5cc14b86b1048059a0c9)
49+
URL_HASH SHA256=dc94a97d19a2ad224b995640bcacfc8fb6c7aa87ef134f3e61647c5b31286696)
5050

5151
declare_datasource (FILE db_trans_bifm.fasta.gz.lba
5252
URL ${BASEURL}/output_files/db_trans_bifm.fasta.gz.lba
53-
URL_HASH SHA256=172f3fb7c529bcf1eff086238efa1c66ce9a609c7abf6146105fa243c3cfcc4d)
53+
URL_HASH SHA256=3ffce0f1115888bce562460e7f4f1222af7052cd8a85a32db0813eac317d8be5)
5454

5555
## Query input files
5656

0 commit comments

Comments
 (0)