a45765f7ef1e938108a37d11f031e36e764b8032,skbio/io/fastq.py,,_generator_to_fastq,#Any#Any#Any#Any#Any#Any#,380
Before Change
if phred_offset not in [33, 64]:
raise ValueError("Unknown PHRED offset of %s" % phred_offset)
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))
fh.write("@%s\n%s\n+%s\n%s\n" % (header, seq_str, header, qual_str))
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("@")
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: biocore/scikit-bio
Commit Name: 67d8d5f9309b13b6dc4d1a864bd4f768cffc27a4
Time: 2014-09-12
Author: jai.rideout@gmail.com
File Name: skbio/sequence/_sequence.py
Class Name: BiologicalSequence
Method Name: __getitem__
Project Name: biocore/scikit-bio
Commit Name: 1d6f932f76237d2154525d3358d1efb3a93be270
Time: 2015-03-24
Author: ebolyen@gmail.com
File Name: skbio/sequence/_sequence.py
Class Name: IUPACSequence
Method Name: __getitem__
Project Name: biocore/scikit-bio
Commit Name: 7a6b341fb37a0318d1d02fd6a01f7794313b308b
Time: 2015-04-02
Author: ebolyen@gmail.com
File Name: skbio/sequence/_sequence.py
Class Name: Sequence
Method Name: __repr__