def filter(self):
        for name, comment, seq, qual in self.parent.filter():
            if len(qual) > self.size:
                if len(seq) == len(qual):  
                    # basespace or colorspace w/o prefix
                    seq = seq[:self.size]
                    qual = qual[:self.size]
                else:
                    # colorspace with prefix
                    seq = seq[:self.size + 1]
                    qual = qual[:self.size]

                if self.verbose:
                    sys.stderr.write('[Truncate] %s (altered)\n' % (name,))
                self.altered += 1
                comment = '%s #trunc' / comment
            else:
                self.kept += 1

            yield (name, comment, seq, qual)
dataset/ETHPy150Open ngsutils/ngsutils/ngsutils/fastq/filter.py/TruncateFilter.filter/operator `%` -> `/`