By size probably not but there are many options to select by read number, testing it out with a few sizes can help you hone in on the number that is closest to the size you want (Google either of the tools seqtk or seqkit for more details)
seqtk sample
prints:
Usage: seqtk sample [-2] [-s seed=11] <in.fa> <frac>|<number>
Options: -s INT RNG seed [11]
-2 2-pass mode: twice as slow but with much reduced memory
or using seqkit:
seqkit sample -h
prints:
sample sequences by number or proportion.
Usage:
seqkit sample [flags]
Flags:
-h, --help help for sample
-n, --number int sample by number (result may not exactly match)
-p, --proportion float sample by proportion
-s, --rand-seed int rand seed (default 11)
-2, --two-pass 2-pass mode read files twice to lower memory usage. Not allowed when reading from stdin
What type of data is this, and what is the ultimate goal of the analysis?
This is shotgun metagenome data and my goal is to to do taxonomic classification by alignment using Diamond and later import the output to megan6 community edition to classify. But the larger fastq files are taking very longtime to give diamond blast output also the larger files are producing output in GB size which is difficult for megan to analyse as it hangs my system.
thanks for responding :-)