Mercurial > repos > tyty > structurefold
diff reactivity_cal/read_file.py @ 78:332a0da1508d draft
Uploaded
author | tyty |
---|---|
date | Tue, 09 Dec 2014 03:05:57 -0500 |
parents | 7a8ddf1819b1 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/reactivity_cal/read_file.py Tue Dec 09 03:05:57 2014 -0500 @@ -0,0 +1,21 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +import sys + + + +def read_t_file(in_file): + f = open(in_file); + result = []; + for aline in f.readlines(): + temp = []; + tline = aline.strip(); + tl = tline.split('\t'); + for i in range(0, len(tl)): + temp.append(tl[i].strip()); + result.append(temp); + f.close(); + return result; + +