Skip to content

Commit 50fe8e1

Browse files
committed
Minor tweak to logic for detecting index type
1 parent b225c1e commit 50fe8e1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
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:

0 commit comments

Comments
 (0)