示例#1
0
文件: broadPeak.py 项目: slois/ngs
def Iterator (handle, parser, intersect=False):
    for line in getLine(handle):
	if intersect:
                f = line.split("\t")
                s1 = "\t".join(f[0:10])
                s2 = "\t".join(f[10:20])
                olap = f[20]
                yield parser.parseString(s1), parser.parseString(s2), olap
        else:
                yield parser.parseString(line)
        
	yield parser.parseString(line)
示例#2
0
文件: Bed.py 项目: slois/ngs
def Iterator (handle, parser, intersect=False):
    for line in getLine(handle):
        yield parser.parseString(line)