# HG changeset patch # User artbio # Date 1554722801 14400 # Node ID f7947c5a18b80e44273f3e6010bef8ea706fd486 # Parent 94d67b195acdced658cd9e622f1bfc778b517362 planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/yac_clipper commit 48768de9d682fb80c4981cd52ef724fdf8f6961e diff -r 94d67b195acd -r f7947c5a18b8 test-data/out_with_empty_reads.fasta.gz Binary file test-data/out_with_empty_reads.fasta.gz has changed diff -r 94d67b195acd -r f7947c5a18b8 test-data/yac_with_empty_reads.fastqsanger.gz Binary file test-data/yac_with_empty_reads.fastqsanger.gz has changed diff -r 94d67b195acd -r f7947c5a18b8 yac.py --- 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 diff -r 94d67b195acd -r f7947c5a18b8 yac.xml --- a/yac.xml Mon Jan 21 18:46:04 2019 -0500 +++ b/yac.xml Mon Apr 08 07:26:41 2019 -0400 @@ -1,4 +1,4 @@ - + @@ -125,6 +125,16 @@ + + + + + + + + + +