marcelm / cutadapt

Cutadapt removes adapter sequences from sequencing reads
https://cutadapt.readthedocs.io
MIT License
502 stars 126 forks source link

Use `--action=lowercase` for short reads but keep trimmed passed reads. #762

Closed y9c closed 4 months ago

y9c commented 4 months ago

Is it possible to keep the original sequence for discarded reads for debugging, but trimmed the reads that passed the length filter? Thank you.

marcelm commented 4 months ago

Do I understand correctly that you want --action=lowercase for reads that are sent to the --untrimmed-output file, but the normal behavior for trimmed reads?

No, this isn’t possible at the moment. It is also a bit hard to add this because the check whether a read should be filtered is done when the action has already been applied to it. So when the read is written out, it’s already trimmed and one would somehow have to add back the bases and turn them into lowercase.

y9c commented 4 months ago

Thank you for the information.