Repository 'seq_primer_clip'
hg clone https://testtoolshed.g2.bx.psu.edu/repos/peterjc/seq_primer_clip

Changeset 12:86cfa8eebb73 (2017-02-03)
Previous changeset 11:5ccb4e31510a (2017-02-01) Next changeset 13:64cc41c3456d (2017-02-09)
Commit message:
planemo upload for repository https://github.com/peterjc/pico_galaxy/tree/master/tools/seq_primer_clip commit 7a746d55f0e8456992ee11c49a507285f9f39383-dirty
modified:
tools/seq_primer_clip/seq_primer_clip.py
b
diff -r 5ccb4e31510a -r 86cfa8eebb73 tools/seq_primer_clip/seq_primer_clip.py
--- a/tools/seq_primer_clip/seq_primer_clip.py Wed Feb 01 13:18:48 2017 -0500
+++ b/tools/seq_primer_clip/seq_primer_clip.py Fri Feb 03 12:55:33 2017 -0500
[
@@ -147,8 +147,8 @@
             # We'll use a set to remove any duplicate patterns
             # if letter not in "NX":
             pattern = seq[:i] + "N" + seq[i + 1:]
-            assert len(pattern) == len(seq), "Len %s is %i, len %s is %i" \
-                   % (pattern, len(pattern), seq, len(seq))
+            assert len(pattern) == len(seq), ("Len %s is %i, len %s is %i"
+                                              % (pattern, len(pattern), seq, len(seq)))
             yield make_reg_ex(pattern)
     if mm >= 2:
         for i, letter in enumerate(seq):
@@ -158,8 +158,8 @@
                 # We'll use a set to remove any duplicate patterns
                 # if letter not in "NX":
                 pattern = seq[:i] + "N" + seq[i + 1:i + 1 + k] + "N" + seq[i + k + 2:]
-                assert len(pattern) == len(seq), "Len %s is %i, len %s is %i" \
-                       % (pattern, len(pattern), seq, len(seq))
+                assert len(pattern) == len(seq), ("Len %s is %i, len %s is %i"
+                                                  % (pattern, len(pattern), seq, len(seq)))
                 yield make_reg_ex(pattern)