# HG changeset patch # User peterjc # Date 1486144533 18000 # Node ID 86cfa8eebb73dbdd6c40a749786c9bcba879b971 # Parent 5ccb4e31510a47d98f4d0fbc1e002ddc62b9f1eb planemo upload for repository https://github.com/peterjc/pico_galaxy/tree/master/tools/seq_primer_clip commit 7a746d55f0e8456992ee11c49a507285f9f39383-dirty 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)