How to extract fixed number (e.g. 300) of sequences from Fastq or fast.gz files in qiime2

I have 66 samples demultiplexed Fastq.gz files generated through Illumina MiSeq technology. I have to extract fixed number of sequences i.e. 300 sequences from each sample/read.Could you help me to do this in QIIME 2, please?

Hi there @Bhagwan! Can you please provide some more detail about what it is you are hoping to accomplish here? It sounds a bit like you are trying to rarefy your raw sequences, but usually we rarefy at the feature table step. Thanks! :qiime2:

Yep. I know. I have to perform ANOVA with selected sequences. Therefore, I need randomly selected 300 good quality sequences.

:smiley: https://docs.qiime2.org/2019.7/plugins/available/feature-table/rarefy/