From: martinahansen Date: Sun, 30 Jan 2011 18:24:27 +0000 (+0000) Subject: polished shred_seq X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b4c52e910f5a9940331508bd1711c4cca45bc391;p=biopieces.git polished shred_seq git-svn-id: http://biopieces.googlecode.com/svn/trunk@1229 74ccb610-7750-0410-82ae-013aeee3265d --- diff --git a/bp_bin/shred_seq b/bp_bin/shred_seq index 5b7f7ff..aaff5b7 100755 --- a/bp_bin/shred_seq +++ b/bp_bin/shred_seq @@ -42,6 +42,9 @@ class Seq # seq.shred { |subseq| } -> Seq # seq.shred -> [] def shred(size, max_cov) + raise SeqError, "Size: #{size} < 1" if size < 1 + raise SeqError, "Max coverage: #{max_cov} < 1" if max_cov < 1 + entries = [] sum = 0 strand = '+'