Skip to content
This repository has been archived by the owner on Aug 23, 2022. It is now read-only.

Commit

Permalink
change 5000 to b
Browse files Browse the repository at this point in the history
  • Loading branch information
Haifeng Chen committed May 27, 2016
1 parent 80b52de commit e010a4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/walt/mapping.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ void SingleEndMapping(const string& org_read, const Genome& genome,
continue;

IndexRegion(read_seed, genome, hash_table, seed_len, region);

if (region.second - region.first + 1 > b) {
continue;
}
Expand Down
5 changes: 2 additions & 3 deletions src/walt/paired.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,10 @@ void PairEndMapping(const string& org_read, const Genome& genome,
continue;

IndexRegion(read_seed, genome, hash_table, seed_len, region);
#ifdef SMALLBUCKETS
if (region.second - region.first + 1 > 5000) {
if (region.second - region.first + 1 > b) {
continue;
}
#endif

for (uint32_t j = region.first; j <= region.second; ++j) {
uint32_t genome_pos = hash_table.index[j];
uint32_t chr_id = getChromID(genome.start_index, genome_pos);
Expand Down

0 comments on commit e010a4b

Please sign in to comment.