Mercurial > repos > tyty > structurefold
view Iterative_mapping/read_file.py @ 106:c1c1d38ec295 draft
Deleted selected files
author | tyty |
---|---|
date | Thu, 19 Mar 2015 17:43:55 -0400 |
parents | d56631911cc1 |
children |
line wrap: on
line source
#!/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;