Closed Liripo closed 1 year ago
That's correct. To subset a record, you must construct a new one:
julia> rec = FASTX.FASTQ.Record("@name","ATC","!!!");
julia> FASTQRecord(
description(rec),
sequence(rec)[1:2],
quality(rec)[1:2]
)
FASTQ.Record:
description: "@name"
sequence: "AT"
quality: "!!"
I could add that - that wouldn't be too hard.
Thank you for your quick reply! It would be great to add this note to the documentation.
There does not seem to be a convenient operation to subset the record directly!