Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Latest commit

 

History

History
46 lines (22 loc) · 954 Bytes

subsample_fasta.rst

File metadata and controls

46 lines (22 loc) · 954 Bytes

subsample_fasta.py

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