2c7eba36dfc9bed091b77c11dd3eedfab7995106,skbio/io/format/genbank.py,,_parse_single_genbank,#Any#,158

Before Change




def _parse_single_genbank(chunks):
    headers_parsers = {
        k: globals().get("_parse_{h}".format(h=k.lower()),
                         _parse_section_default)
        for k in _HEADERS}

    metadata = dict.fromkeys(_HEADERS)
    metadata["REFERENCE"] = []
    metadata["FEATURES"] = []
    sequence = ""
    // each section starts with a HEADER without indent.
    section_splitter = yield_section(lambda x: not x[0].isspace(), strip=False)
    for section in section_splitter(chunks):
        header = section[0].split(None, 1)[0]
        parser = headers_parsers[header]
        try:
            parsed = parser(section)
        except:
            raise GenbankFormatError(

After Change


    section_splitter = yield_section(lambda x: not x[0].isspace(), strip=False)
    for section in section_splitter(chunks):
        header = section[0].split(None, 1)[0]
        parser = globals().get("_parse_%s" % header.lower())
        if not parser:
            parser = _parse_section_default
        if header == "FEATURES":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: biocore/scikit-bio
Commit Name: 2c7eba36dfc9bed091b77c11dd3eedfab7995106
Time: 2015-08-10
Author: zhenjiang.xu@gmail.com
File Name: skbio/io/format/genbank.py
Class Name:
Method Name: _parse_single_genbank


Project Name: dmlc/gluon-nlp
Commit Name: 03b0e7061cf477fbeccb9c128ee76603df582d86
Time: 2018-09-04
Author: leonard@lausen.nl
File Name: scripts/word_embeddings/evaluate_pretrained.py
Class Name:
Method Name:


Project Name: facebookresearch/pytext
Commit Name: 64429901d353ea7a1b374b4176f59f580bd36a4f
Time: 2019-06-04
Author: geoffreygoh@fb.com
File Name: pytext/config/serialize.py
Class Name:
Method Name: _union_from_json