Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarified error messages. #44

Merged
merged 1 commit into from
Jan 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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