FASTAQ-TO_RANDOM_SUBSET(1)
β¨ NAME β¨
fastaq_to_random_subset β it grabs a random sample of sequences for u π² and yeah it can pull the matching mates too if u want
π DESCRIPTION π
okay bestie, the vibe here is: u hand it a sequence file, u tell it what percent of reads to keep, and it gives u back a random subset. that's it, that's the whole thing. slay. π¦
and if u ALSO give it a mates file? it'll grab the corresponding read from that mates file too β so ur pairs stay paired, no lonely reads left behind π. ur output comes out interleaved when a mates file is given. periodt.
the usage looks like this:
fastaq_to_random_subset [options] <infile> <outfile> <percent>
π positional arguments π
infileβ the name of ur input file, the one u love πoutfileβ the name of ur output file, where the goods go β¨FLOATβ the per cent probability that any given read (or read pair, if we're doing mates) gets kept. it lives in[0,100]. so like,50means half,100means everything,0meansβ¦ bestie why π
π§ options π§
-h,--helpβ shows this help message and then dips out (exit). iconic behavior honestly π--mate_file MATE_FILEβ the name of the mates file, for when u want the matching reads to come along too π«Ά--seed INTβ the seed for the random number generator. if u don't give one, python's default is what gets used π (lowkey means u get a different subset every run unless u set it, so set it if u want reproducibility, bestie)
no cap: everything above is verbatim from the page, i did not invent a single flag. ur faves could never πΈ
k bye, this was fastaq_to_random_subset version 3.17.0, brought to u from the User Commands corner of the manual, dated January 2026 β stay random, stay subset, mwah ππ
π¦ where this page comes from
- ubuntu resolute: fastaq 3.17.0-9build1 Β· GPL-3.0-only
- ubuntu stonking: fastaq 3.17.0-9build1 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms