Skip to main content

README

Introduction

This library is a simple wrapper of pyrodigal, which is a cythonized implementation of prodigal that is orders of magnitudes faster.

Pyrodigal is mostly written for single genomes or FASTA files, so this tool was created to batch process metagenomic-scale datasets. Metagenomic data usually consists of large number of genome files for MAGs. Additionally, viral metagenomic datasets tend to store all single-scaffold viruses in a single file, which tends to be much larger than a typical single-genome FASTA file.

This tool uses different load balancing strategies to parallelize pyrodigal over large amounts of files (MAGs) or FASTA files that have a large number of scaffolds (viruses).

Installation

Install versioned releases

pip install metapyrodigal

Install from source

git clone https://github.com/cody-mar10/metapyrodigal.git
cd metapyrodigal
pip install .

Usage

This tool will overwrite the pyrodigal binary, so you can use the metagenome-focused binary that I created.

The help page from pyrodigal -h looks like this:

usage: pyrodigal [-h] (-i FILE [FILE ...] | -d DIR) [-o DIR] [-c INT] [--genes] [--virus-mode] [-x STR]
                 [--allow-unordered]

Find ORFs from query genomes using pyrodigal v3.5.2, the cythonized prodigal API

options:
  -h, --help            show this help message and exit
  -i FILE [FILE ...], --input FILE [FILE ...]
                        fasta file(s) of query genomes (can use unix wildcards)
  -d DIR, --input-dir DIR
                        directory of fasta files to process
  -o DIR, --outdir DIR  output directory (default: /storage2/scratch/ccmartin6/software/metapyrodigal)
  -c INT, --max-cpus INT
                        maximum number of threads to use (default: 1)
  --genes               use to also output the nucleotide genes .ffn file
  --virus-mode          use pyrodigal-gv to activate the virus models (default: False)
  -x STR, --extension STR
                        genome FASTA file extension if using -d/--input-dir (default: fna)
  --allow-unordered     for a single file input, this allows the protein ORFs to be written per scaffold as
                        available. All protein ORFs for each scaffold will be in order, but the scaffolds will not
                        necessarily be in the same order as in the input nucleotide file. **This is useful if you
                        are extremely memory limited,** since the default strategy can lead to the ORFs being
                        stored in memory for awhile before writing to file as the original scaffold order is
                        maintained. NOTE: This is about 20 percent faster, so it is recommended to use this if the
                        order of scaffolds does not matter.

-i and -d are mutually exclusive but one of them must be provided.

The output files have the same basename as the input file. Protein FASTA files will have the extension .faa, and nucleotide gene FASTA files will have the extension .ffn. For example:

pyrodigal -i GENOME.fna

will output GENOME.faa

Release files for metapyrodigal 1.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for metapyrodigal 1.4.1
File Size Uploaded
metapyrodigal-1.4.1.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for metapyrodigal 1.4.1
File Interpreter ABI Platform
metapyrodigal-1.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.7 kB

Release files / metapyrodigal-1.4.1.tar.gz

Download URL metapyrodigal-1.4.1.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a28ae83ae79003079490e797ed0176deace622fa594f8abcbe9552f805de3918
BLAKE2b-256 checksum
How to use checksums
705af161386bfd5f469b039b1ced5e94b2a5090b4e1f5fd4b343e1140c24ecd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / metapyrodigal-1.4.1-py3-none-any.whl

Download URL metapyrodigal-1.4.1-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
345ea712ce57fc622c3d9208f4a30340b5e8d26e2a8a7cdadc3dd237d82d0b2d
BLAKE2b-256 checksum
How to use checksums
c31d4a8a19c6076d0814f2af065d3afb3ef12ba4fa667fc5fb8903b248998fc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

1.4.1 This release

2 release files

1.4.0

2 release files

1.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page