trapes.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:TRAPeS 作者: YosefLab 项目源码 文件源码
def addCellToTCRsum(cellFolder, noutput, opened, tcrFout):
    if os.path.isfile(noutput + '.summary.txt'):
        currOut = open(noutput + '.summary.txt','r')
        if not opened:
            opened = True
            head = currOut.readline()
            head = 'cell\t' + head
            tcrFout.write(head)
        else:
            currOut.readline()
        l = currOut.readline()
        while l != '':
            newL = cellFolder + '\t' + l
            tcrFout.write(newL)
            l = currOut.readline()
        currOut.close()
    return opened
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号