view get_reads/read_file.py @ 115:a6e3505227b5 draft

Uploaded
author tyty
date Tue, 14 Apr 2015 14:16:19 -0400
parents 297cdb01d656
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;