Filtering output sequences below a certain length

Hi @rosave ,

It looks like you are using the wrong method. qiime quality-filter q-score is specifically for filtering sequences based on their quality scores (in fastq format), not on length alone.

If your sequences are demultiplexed but not yet denoised, then the denoising methods (deblur or dada2) have options to set a trimming length. This will discard sequences that are shorter than that length, so will be one way to discard these, but only if your sequences are in a fastq format (pre-denoising). If your sequences fit those criteria, you can see the help documentation for those methods to learn more.

Another option is to use RESCRIPt (a plugin that must be installed separately) to filter sequences explicitly based on length. This method takes FeatureData[Sequence] artifacts as input (i.e., fasta format sequences after denoising). You can read more about that method here:

Good luck!

2 Likes