a45765f7ef1e938108a37d11f031e36e764b8032,skbio/io/fastq.py,,_generator_to_fastq,#Any#Any#Any#Any#Any#Any#,380

Before Change



        if enforce_qual_range and ((seq.quality < 0).any() or
                                   (seq.quality > 62).any()):
            raise FASTQFormatError("Failed qual conversion for seq id: %s."
                                   "This may be because you passed an "
                                   "incorrect value for phred_offset" %
                                   seq.id)

        qual = seq.quality+phred_offset
        qual_str = "".join(map(chr, qual))

After Change


        else:
            header = id_

        if not seq.has_quality():
            raise FASTQFormatError(
                "Cannot write %s biological sequence in FASTQ format because "
                "it does not have quality scores associated with it." %
                cardinal_to_ordinal(idx + 1))
        qual_str = _encode_phred_to_qual(seq.quality, variant=variant,
                                         phred_offset=phred_offset)

        fh.write("@")
        fh.write(header)
        fh.write("\n")
        fh.write(str(seq))
        fh.write("+\n")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: biocore/scikit-bio
Commit Name: a45765f7ef1e938108a37d11f031e36e764b8032
Time: 2014-10-24
Author: jai.rideout@gmail.com
File Name: skbio/io/fastq.py
Class Name:
Method Name: _generator_to_fastq


Project Name: dask/distributed
Commit Name: 6e0c0a6b90b1d3c3f686f0c968e9cf3d0c354413
Time: 2019-05-22
Author: mrocklin@gmail.com
File Name: distributed/nanny.py
Class Name: Nanny
Method Name: close


Project Name: EpistasisLab/tpot
Commit Name: 0c83431f47a1500f400f53b8d8fff1e0bc8947b0
Time: 2017-01-04
Author: weixuanfu@Weixuans-MacBook-Air.local
File Name: tpot/base.py
Class Name: TPOTBase
Method Name: _wrapped_cross_val_score


Project Name: prody/ProDy
Commit Name: a22812ad47f77f451cac9c5ba011b63341fd7737
Time: 2018-04-27
Author: shz66@pitt.edu
File Name: prody/__init__.py
Class Name:
Method Name: