diff SMART/Java/Python/cleaning/GffCleaner.py @ 56:97aa2e42bfdf

Uploaded
author m-zytnicki
date Wed, 05 Feb 2014 11:51:11 -0500
parents 169d364ddd91
children
line wrap: on
line diff
--- a/SMART/Java/Python/cleaning/GffCleaner.py	Fri Jan 10 08:59:23 2014 -0500
+++ b/SMART/Java/Python/cleaning/GffCleaner.py	Wed Feb 05 11:51:11 2014 -0500
@@ -123,7 +123,7 @@
 	def parse(self):
 		progress = UnlimitedProgress(100000, "Reading input file", self.verbosity)
 		for cpt, line in enumerate(self.inputHandle):
-			if not line or line[0] == "#": continue
+			if not line or (not line.strip()) or line[0] == "#": continue
 			if line[0] == ">": break
 			parsedLine = ParsedLine(line, cpt)
 			if self.acceptedTypes == None or parsedLine.type in self.acceptedTypes: