Mercurial > repos > tyty > structurefold
annotate reactivity_cal/read_file.py @ 67:96a827962750 draft
Uploaded updated scripts, removed *.pyc and .DS_Store
| author | devteam |
|---|---|
| date | Fri, 21 Nov 2014 11:28:59 -0500 |
| parents | 7a8ddf1819b1 |
| children |
| rev | line source |
|---|---|
| 5 | 1 #!/usr/bin/env python |
| 2 # -*- coding: utf-8 -*- | |
| 3 | |
| 4 import sys | |
| 5 | |
| 6 | |
| 7 | |
| 8 def read_t_file(in_file): | |
| 9 f = open(in_file); | |
| 10 result = []; | |
| 11 for aline in f.readlines(): | |
| 12 temp = []; | |
| 13 tline = aline.strip(); | |
| 14 tl = tline.split('\t'); | |
| 15 for i in range(0, len(tl)): | |
| 16 temp.append(tl[i].strip()); | |
| 17 result.append(temp); | |
| 18 f.close(); | |
| 19 return result; | |
| 20 | |
| 21 |
