Mercurial > repos > yufei-luo > s_mart
diff commons/core/parsing/FastaParser.py @ 46:169d364ddd91
Uploaded
author | m-zytnicki |
---|---|
date | Mon, 30 Sep 2013 03:19:26 -0400 |
parents | 44d5973c188c |
children |
line wrap: on
line diff
--- a/commons/core/parsing/FastaParser.py Wed Sep 18 08:51:22 2013 -0400 +++ b/commons/core/parsing/FastaParser.py Mon Sep 30 03:19:26 2013 -0400 @@ -80,7 +80,7 @@ if self.currentLine != None: if self.currentLine[0] != ">": raise Exception("First line is weird: %s" % (self.currentLine)) - name = self.currentLine[1:].split()[0].replace("|", "_").replace(".", "_") + name = self.currentLine[1:].split()[0] self.currentLine = None for line in self.handle: @@ -89,7 +89,7 @@ pass elif line[0] == ">": if name == None: - name = line[1:].split()[0].replace("|", "_").replace(".", "_") + name = line[1:].split()[0] else: self.currentLine = line return Sequence(name, string)