def read_gene_subsets(fns):
    """Read gene names from a single txt file or multiple files"""
    
    names=[]
    for fn in fns:
        name=[]
        for line in open(fn,'r').xreadlines(): 
            try:
                name.append(line.strip().split()[0])
            except __HOLE__:    # sometimes null line was parsed and null array is returned, in this case, just pass
                pass
        names.append(name)
    
    return names
dataset/ETHPy150Open taoliu/taolib/Assoc/inout.py/read_gene_subsets