Skip to content

Commit

Permalink
Merge pull request #44 from FitzsimmonsCM/master
Browse files Browse the repository at this point in the history
Clarified error messages.
  • Loading branch information
t-neumann authored Jan 2, 2019
2 parents c00265f + 47fb0ac commit 355169f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion slamdunk/slamdunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def runCount(tid, bam, ref, bed, maxLength, minQual, conversionThreshold, output
if (maxLength == None) :
maxLength = estimateMaxReadLength(bam)
if (maxLength < 0) :
print("Could not reliable estimate maximum read length. Please specify --max-read-length parameter.")
print("Difference between minimum and maximum read length is > 10. Please specify --max-read-length parameter.")
sys.exit(0)

log = getLogFile(outputLOG)
Expand Down
3 changes: 1 addition & 2 deletions slamdunk/utils/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,7 @@ def removeFile(files):

def checkStep(inFiles, outFiles, force=False):
if not files_exist(inFiles):
print(inFiles, outFiles)
raise RuntimeError("One or more input files don't exist.")
raise RuntimeError("One or more input files don't exist: " + str(inFiles))
inFileDate = os.path.getmtime(inFiles[0])
for x in inFiles[1:]:
inFileDate = max(inFileDate, os.path.getmtime(x))
Expand Down

0 comments on commit 355169f

Please sign in to comment.