49b10f8937fc4e8e58270189011a9a0e5927f0e4,skbio/io/fasta.py,,_fasta_to_generator,#Any#Any#,500

Before Change



@register_reader("fasta")
def _fasta_to_generator(fh, constructor=BiologicalSequence):
    line = next(fh)
    if _is_header(line):
        id_, desc = _parse_header(line)
    else:
        raise FASTAFormatError("Found line without a FASTA header:\n%s" % line)

After Change



@register_reader("fasta")
def _fasta_to_generator(fh, constructor=BiologicalSequence):
    for seq, id_, desc in _fasta_or_qual_to_generator(fh, format="fasta"):
        yield constructor(seq, id=id_, description=desc)


@register_reader("fasta", BiologicalSequence)
def _fasta_to_biological_sequence(fh, seq_num=1):
    return _fasta_to_sequence(fh, seq_num, BiologicalSequence)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: biocore/scikit-bio
Commit Name: 49b10f8937fc4e8e58270189011a9a0e5927f0e4
Time: 2014-10-17
Author: jai.rideout@gmail.com
File Name: skbio/io/fasta.py
Class Name:
Method Name: _fasta_to_generator


Project Name: soft-matter/trackpy
Commit Name: c6607119c25d0178245243ef3fdd3d176dd0d8f2
Time: 2020-01-22
Author: anntzer.lee@gmail.com
File Name: trackpy/linking/utils.py
Class Name:
Method Name: coords_from_df


Project Name: biocore/scikit-bio
Commit Name: 8f30b61898a2cf9ac07eab30382e698dd5b4d7e4
Time: 2015-12-17
Author: ebolyen@gmail.com
File Name: skbio/io/registry.py
Class Name: IORegistry
Method Name: _read_gen