Skip to main content

Split fasta files

Project description

fastasplit

Split fasta files

Josh Tompkin, 2023

Installation and usage

Install with pip:

    pip3 install fastasplit

Usage:

    fastasplit [-h] [--version] [-d dir] [-p prefix] [-e] [-f] -n int [-s] [-q] [-v] fasta

Specify number of files with -n <int>, numer of sequences per file with -n <int> -s, or put every sequence into its own file with -e. Run with -h to print help.

Examples

Split a fasta file named 'sequences.fa' into 20 fasta files with equal number of sequences in each:

    fastasplit -n 20 sequences.fa

Split a fasta file named 'sequences.fa' into files with 10 sequences each:

    fastasplit -n 10 -s sequences.fa

Split each sequence in 'sequences.fa' into a separate file:

    fastasplit -e sequences.fa

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastasplit-1.3.1.tar.gz (17.1 kB view hashes)

Uploaded Source

Built Distribution

fastasplit-1.3.1-py3-none-any.whl (17.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page