scout/parse/omim.py
def parse_omim_morbid(lines):
    """docstring for parse_omim_morbid"""
    header = []
    for i,line in enumerate(lines):
        line = line.rstrip()
        if line.startswith('#'):
            if i < 10:
                if line.startswith('# Phenotype'):
                    header = line[2:].split('\t')
        else:
            yield parse_omim_line(line, header)
def parse_omim_morbid(lines):
    header = []
    for i,line in enumerate(lines):
        line = line.rstrip()
        if line.startswith('#'):
            if i < 10:
                if line.startswith('# Phenotype'):
                    header = line[2:].split('\t')
        else:
            yield parse_omim_line(line, header)
def parse_omim_morbid ( lines ) : header = [ ] for i , line in enumerate ( lines ) : line = line . rstrip ( ) if line . startswith ( '#' ) : if i < 10 : if line . startswith ( '# Phenotype' ) : header = line [ 2 : ] . split ( '\t' ) else : yield parse_omim_line ( line , header )
docstring for parse_omim_morbid
docstring for parse_omim_morbid