cutadapt icon indicating copy to clipboard operation
cutadapt copied to clipboard

Suggestion: filter mode for polyA

Open NickNCL opened this issue 1 year ago • 2 comments

Hi,

I'm using cutadapt v4.9 installed with conda

Maybe my aim is a bit niche here, but I'd like to filter out any reads matching the polyA filter in cutadapt (rather than trimming the polyA which is the default behaviour)

I was hoping that using --discard-trimmed in addition to --poly-a option would have this effect, but seemingly not

Input reads are all 50 bp, output contains shorter (trimmed) reads

This was my command:

(cutadapt4.4) nnb85@fms-302011:~/Ecoli_RNAP_pacing/Pamela/RawData/NoPolyA$ cutadapt --discard-trimmed --poly-a -j 20 -o NoPolyA/file.fastq file.fastq

I'm struggling to find any other tool that can do this

NickNCL avatar Aug 29 '24 10:08 NickNCL

You could try discarding all reads shorter than 50 bp using --minimum-length=50. That should get rid of all poly-A-trimmed reads.

marcelm avatar Aug 29 '24 14:08 marcelm

That's a good idea, thanks

NickNCL avatar Aug 29 '24 15:08 NickNCL