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
评论列表
文章目录