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

handle missing input files for sandbox/assemstats3.py #484

Merged
merged 1 commit into from
Jun 13, 2014
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
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2014-06-13 Titus Brown <t@idyll.org>

* sandbox/assemstats3.py: handle missing input files.

2014-06-11 Michael Wright <wrigh517@msu.edu>

* scripts/load-into-counting: Fixed docstring misnomer to
Expand Down
6 changes: 5 additions & 1 deletion sandbox/assemstats3.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import screed
import sys
import glob

import os

def trimLens(lens, minLen):
'''
Expand Down Expand Up @@ -102,6 +102,10 @@ def main():
print "N\tsum\tmax\tfilename"

for filename in sys.argv[2:]:
if not os.path.exists(filename):
print >>sys.stderr, "WARNING: file %s does not exist." % filename
continue

lens = getLens(filename)
trimmedLens = trimLens(lens, minLen)

Expand Down