sampledoc
News and Announcements »

subsample_fasta.py – Randomly subsample sequences from a given fasta file

Description:

Subsample the seqs.fna file, randomly select 5% of the sequences:

Usage: subsample_fasta.py [options]

Input Arguments:

Note

[REQUIRED]

-i, --input_fasta_fp
Path to the input fasta file
-p, --percent_subsample
Specify the percentage of sequences to subsample

[OPTIONAL]

-o, --output_fp
The output filepath

Output:

Example:

Subsample seqs.fasta to approximately 5%

subsample_fasta.py -i $PWD/seqs.fna -p 0.05 -o $PWD/subsampled_seqs.fna

Site index


sampledoc