precellar.SeqSpec.update_read#
- SeqSpec.update_read(read_id, *, modality=None, primer_id=None, is_reverse=None, fastq=None, min_len=None, max_len=None)#
Update read information in the SeqSpec object.
This method updates the read information in the SeqSpec object. If the read does not exist, it will be created.
- Parameters:
read_id (str) – The id of the read.
modality (str | None) – The modality of the read.
primer_id (str | None) – The id of the primer.
is_reverse (bool | None) – Whether the read is reverse.
fastq (Path | list[Path] | None) – The path to the fastq file containing the reads.
min_len (int | None) – The minimum length of the read. If not provided, the minimum length is inferred from the fastq file.
max_len (int | None) – The maximum length of the read. If not provided, the maximum length is inferred from the fastq file.