biotite.sequence.io.fastq.get_sequence

biotite.sequence.io.fastq.get_sequence(fastq_file, header=None)[source]

Get a sequence and quality scores from a FastqFile instance.

Parameters
fastq_fileFastqFile

The FastqFile to be accessed.

headerstr, optional

The identifier to get the sequence and scores from. By default, the first sequence of the file is returned.

Returns
sequenceNucleotideSequence

The requested sequence.

scoresndarray, dtype=int

The requested scores.