---
name: "fastaq_to_random_subset"
section: "1"
platform: "linux"
package: "fastaq"
version: "1.5.0-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/fastaq_to_random_subset"
---

# fastaq\_to\_random\_subset(1)

## NAME

fastaq\_to\_random\_subset

## DESCRIPTION

 fastaq\_to\_random\_subset \[options\] \<fasta/q in\> \<outfile\> \<probablilty of keeping read (pair) in \[0,100\]\>

Takes a random subset of reads from a fasta/q file and optionally the corresponding read from a mates file. Ouptut is interleaved if mates file given

### positional arguments:

- infile

  Name of input fasta/q file

- outfile

  Name of fasta/q output file

- INT

  Probability of keeping any given read (pair) in \[0,100\]

### optional arguments:

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

  show this help message and exit

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

  Name of fasta/q mates file

## AUTHOR

fastaq\_to\_random\_subset was originally written by Martin Hunt (mh12@sanger.ac.uk)

## COPYING

Wellcome Trust Sanger Institute Copyright © 2013 Wellcome Trust Sanger Institute This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
