Mercurial > repos > davidvanzessen > shm_csr
diff baseline/script_imgt.py @ 32:4c5ba6b5d10d draft
Uploaded
author | davidvanzessen |
---|---|
date | Thu, 15 Dec 2016 09:21:54 -0500 |
parents | c33d93683a09 |
children | 8728284105ee |
line wrap: on
line diff
--- a/baseline/script_imgt.py Tue Dec 13 10:06:49 2016 -0500 +++ b/baseline/script_imgt.py Thu Dec 15 09:21:54 2016 -0500 @@ -11,7 +11,7 @@ args = parser.parse_args() refdic = dict() -with open(args.ref, 'r') as ref: +with open(args.ref, 'rU') as ref: currentSeq = "" currentId = "" for line in ref: @@ -37,13 +37,16 @@ vPattern = re.compile("|".join(vPattern)) def filterGene(s, pattern): + s1 = s[s.find(" ") + 1:] + return s1[:s1.find(" ")] + """ if type(s) is not str: return None res = pattern.search(s) if res: return res.group(0) return None - + """ currentSeq = ""