Commit fdef3fce authored by Gerald Salin's avatar Gerald Salin
Browse files

tried to fix bug #55

parent 98355c63
......@@ -219,15 +219,15 @@ class CutAdapt (Analysis):
stats = {}
print(input_file)
for line in open(input_file, 'r').readlines():
if re.search("Processed reads",line):
if re.search("Total read pairs processed",line):
stats["processedread"] = line.strip().split()[2]
if re.search("Processed bases",line):
if re.search("Total basepairs processed:",line):
stats["processedbase"] = line.strip().split()[2]
if re.search("Trimmed reads",line):
stats["trimmedread"] = line.strip().split()[2]
if re.search("Trimmed bases",line):
stats["trimmedbase"] = line.strip().split()[2]
if re.search("Too short reads",line):
if re.search("Pairs that were too short",line):
stats["shortread"] = line.strip().split()[3]
if re.search("Too long reads",line):
stats["longread"] = line.strip().split()[3]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment