5e2e73c8f504d2d794bb674aff116bcc64ec2f07,skbio/io/fastq.py,,_parse_quality_scores,#Any#Any#Any#Any#,480
Before Change
def _parse_quality_scores(fh, seq_len, variant, phred_offset):
phred_scores = []
qual_len = 0
prev_was_blank = False
for chunk in fh:
chunk = chunk.strip()
if chunk:
if chunk.startswith("@") and qual_len == seq_len:
return phred_scores, chunk
else:
if prev_was_blank:
raise FASTQFormatError("Found blank line within FASTQ "
"record.")
qual_len += len(chunk)
if qual_len > seq_len:
raise FASTQFormatError(
After Change
phred_scores = []
qual_len = 0
prev = "+"
for chunk, line_number in _line_generator(fh) :
if chunk:
if chunk.startswith("@") and qual_len == seq_len:
return phred_scores, chunk
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: biocore/scikit-bio
Commit Name: 5e2e73c8f504d2d794bb674aff116bcc64ec2f07
Time: 2015-04-25
Author: tapitman11@gmail.com
File Name: skbio/io/fastq.py
Class Name:
Method Name: _parse_quality_scores
Project Name: biocore/scikit-bio
Commit Name: c54c3ffcda46ec80b5b882ffc45aa6dd3611505b
Time: 2014-10-25
Author: jai.rideout@gmail.com
File Name: skbio/io/fastq.py
Class Name:
Method Name: _parse_quality_scores
Project Name: biocore/scikit-bio
Commit Name: c54c3ffcda46ec80b5b882ffc45aa6dd3611505b
Time: 2014-10-25
Author: jai.rideout@gmail.com
File Name: skbio/io/fastq.py
Class Name:
Method Name: _parse_sequence_data