set_sequence#

biotite.sequence.io.fastq.set_sequence(fastq_file: FastqFile, sequence: NucleotideSequence, scores: ndarray[tuple[K], dtype[integer]], header: str | None = None, as_rna: bool = False) None[source]#

Set a sequence and a quality score array in a FastqFile instance.

Parameters:
fastq_fileFastqFile

The FastqFile to be accessed.

sequenceNucleotideSequence

The sequence to be set.

scoresndarray, dtype=int

The quality scores to be set.

headerstr, optional

The identifier for the sequence. Default is ‘sequence’.

as_rnabool, optional

If set to true, the sequence symbol 'T' will be replaced by 'U'.