FASTAQ-TO_RANDOM_SUBSET(1)

πŸ“¦
version 3.17.0 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

✨ 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, 50 means half, 100 means everything, 0 means… 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