get_sequence#
- biotite.sequence.io.fastq.get_sequence(fastq_file: FastqFile, header: str | None = None) tuple[NucleotideSequence, ndarray][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.