Mercurial > repos > peterjc > seq_primer_clip
changeset 12:86cfa8eebb73 draft
planemo upload for repository https://github.com/peterjc/pico_galaxy/tree/master/tools/seq_primer_clip commit 7a746d55f0e8456992ee11c49a507285f9f39383-dirty
author | peterjc |
---|---|
date | Fri, 03 Feb 2017 12:55:33 -0500 |
parents | 5ccb4e31510a |
children | 64cc41c3456d |
files | tools/seq_primer_clip/seq_primer_clip.py |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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)