Skip to content

Commit a710de2

Browse files
committed
Merge branch 'bug_fixes'
2 parents a2bbf6c + 50fe8e1 commit a710de2

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

bowtie

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,16 @@ def main():
8585
if tot_size > small_index_max_size:
8686
bin_spec = os.path.join(ex_path, bin_l)
8787
else:
88-
if os.path.exists(args.index + idx_ext_l):
88+
if not os.path.exists(arg + idx_ext_s)\
89+
and os.path.exists(args.index + idx_ext_l):
8990
bin_spec = os.path.join(ex_path, bin_l)
9091
bowtie_args.insert(0, args.index)
9192
else:
9293
for arg in bowtie_args:
9394
if arg[0] == '-':
9495
continue
95-
if os.path.exists(arg + idx_ext_l):
96+
if not os.path.exists(arg + idx_ext_s)\
97+
and os.path.exists(arg + idx_ext_l):
9698
bin_spec = os.path.join(ex_path, bin_l)
9799

98100
if args.debug:

ebwt_search.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,7 +1566,7 @@ static void exactSearch(PatternComposer& _patsrc,
15661566
SLEEP(10);
15671567
}
15681568
#else
1569-
for (int i = 0; i < nthreads; i++) {
1569+
for (int i = 0; i < nthreads - 1; i++) {
15701570
threads[i]->join();
15711571
}
15721572
#endif
@@ -1950,7 +1950,7 @@ static void mismatchSearchFull(PatternComposer& _patsrc,
19501950
SLEEP(10);
19511951
}
19521952
#else
1953-
for (int i = 0; i < nthreads; i++) {
1953+
for (int i = 0; i < nthreads - 1; i++) {
19541954
threads[i]->join();
19551955
}
19561956
#endif
@@ -2453,7 +2453,7 @@ static void twoOrThreeMismatchSearchFull(
24532453
SLEEP(10);
24542454
}
24552455
#else
2456-
for (int i = 0; i < nthreads; i++) {
2456+
for (int i = 0; i < nthreads - 1; i++) {
24572457
threads[i]->join();
24582458
}
24592459
#endif
@@ -3011,7 +3011,7 @@ static void seededQualCutoffSearchFull(
30113011
SLEEP(10);
30123012
}
30133013
#else
3014-
for (int i = 0; i < nthreads; i++) {
3014+
for (int i = 0; i < nthreads - 1; i++) {
30153015
threads[i]->join();
30163016
}
30173017
#endif

0 commit comments

Comments
 (0)