constructor=BiologicalSequence):
// SKip any blank or whitespace-only lines at beginning of file
seq_header = ""
for line in _line_generator(fh):
seq_header = line
if seq_header:
break
if seq_header:
if not seq_header.startswith("@"):
raise FASTQFormatError(
"Expected sequence (@) header line at start of file: %r"
After Change
def _fastq_to_generator(fh, variant=None, phred_offset=None,
constructor=BiologicalSequence):
// SKip any blank or whitespace-only lines at beginning of file
seq_header = next(_line_generator(fh, skip_blanks=True))
if not seq_header.startswith("@"):
raise FASTQFormatError(
"Expected sequence (@) header line at start of file: %r"