Mercurial > repos > tyty > structurefold
view predict/read_file.py @ 54:e6cf432c7010 draft
Uploaded
author | tyty |
---|---|
date | Mon, 17 Nov 2014 15:17:12 -0500 |
parents | a292aaf51735 |
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;