Skip to content

Commit

Permalink
add more info when c2t files modified more recently than .fa
Browse files Browse the repository at this point in the history
see #64. thanks @rmoran7
  • Loading branch information
brentp committed Jun 3, 2022
1 parent 5297a89 commit 192d1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bwameth.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def bwa_mem(fa, fq_convert_cmd, extra_args, threads=1, rg=None,
sys.stderr.write("Found BWA MEM2 index\n")

else:
raise BWAMethException("first run bwameth.py index %s OR bwameth.py index-mem2 %s" % (fa, fa))
raise BWAMethException("first run bwameth.py index %s OR bwameth.py index-mem2 %s OR make sure the modification time on the generated c2t files is newer than on the .fa file" % (fa, fa))


if not rg is None and not rg.startswith('@RG'):
Expand Down

0 comments on commit 192d1ac

Please sign in to comment.