diff yac.py @ 4:f7947c5a18b8 draft

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/yac_clipper commit 48768de9d682fb80c4981cd52ef724fdf8f6961e
author artbio
date Mon, 08 Apr 2019 07:26:41 -0400
parents 94d67b195acd
children acbf910cd2ae
line wrap: on
line diff
--- a/yac.py	Mon Jan 21 18:46:04 2019 -0500
+++ b/yac.py	Mon Apr 08 07:26:41 2019 -0400
@@ -111,8 +111,11 @@
                 else:
                     read = line.rstrip()
                     continue
-                trimmed_read, trimmed_qscore = self.scanadapt(
-                    self.adaptmotifs, read, qscore)
+                try:
+                    trimmed_read, trimmed_qscore = self.scanadapt(
+                        self.adaptmotifs, read, qscore)
+                except ValueError:
+                    continue
                 if self.minsize <= len(trimmed_read) <= self.maxsize:
                     if (self.Nmode == "reject") and ("N" in trimmed_read):
                         continue