---
name: "fastaq-to_random_subset"
section: "1"
platform: "linux"
package: "fastaq"
version: "3.17.0-9"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/fastaq-to_random_subset"
---

# fastaq-to\_random\_subset(1)

Make a random sample of sequences (and optionally mates as well)

## NAME

fastaq\_to\_random\_subset - Make a random sample of sequences (and optionally mates as well)

## DESCRIPTION

usage: fastaq\_to\_random\_subset \[options\] \<infile\> \<outfile\> \<percent\>

Takes a random subset of reads from a sequence file and optionally the corresponding read from a mates file. Output is interleaved if mates file given

### positional arguments:

- infile

  Name of input file

- outfile

  Name of output file

- FLOAT

  Per cent probability of keeping any given read (pair) in \[0,100\]

### options:

- **-h**, **--help**

  show this help message and exit

- **--mate\_file** MATE\_FILE

  Name of mates file

- **--seed** INT

  Seed for random number generator. If not given, python's default is used
