biotite.sequence.io.fastq.set_sequence

biotite.sequence.io.fastq.set_sequence(fastq_file, sequence, scores, header=None, as_rna=False)[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'.