Skip to main content

Reconstructor - Current Version: 1.2.0

This repository contains all source code in the Reconstructor Python package, important file dependencies, and benchmarking scores for Reconstructor models. Reconstructor is a COBRApy compatible, automated GENRE building tool from annotated aminoa acid .fasta files based on KEGG annotations.

Installation

Install Reconstructor using pip:

pip install reconstructor

Use following command to download additional dependencies/run final installation checks (should take ~1hr to complete depending on your system):

python -m reconstructor --test yes

See the documentation for additional details about installation.

Usage

Use reconstructor via COMMAND LINE

Now that Reconstructor and all dependency databases are installed, you can proceed to use Reconstructor via the command line. An example would be:

python -m reconstructor --input_file <input fasta file> --file_type <1,2,3> --gram <negative, positive> --media rich

All possible command line arguments are described in a later section.

Type 1: Build GENRE from annotated amino acid .fasta file

python -m reconstructor --input_file Osplanchnicus.aa.fasta --file_type 1 --gram negative --media rich

Type 2: Build GENRE from BLASTp hits

python -m reconstructor --input_file Osplanchnicus.hits.out --file_type 2 --gram negative --media rich

Type 3: Additional gap-filling (if necessary)

python -m reconstructor --input Osplanchnicus.sbml --type 3 --media rich

Use Reconstructor directly in PYTHON

Reconstructor can be imported and used directly in Python for easy integration with COBRApy analysis tools:

from reconstructor import reconstruct

Here is an example of how to generate a GENRE from an annotated amino acid fasta file (.fa, type 1 input) directly in your python script.

model = reconstruct('218496.4.fa', file_type=1, gram='negative')

All arguments for this function are described in the next section.

Required and optional arguments

--input_file <REQUIRED input file, required, str>
--file_type <REQUIRED input file type, .fasta = 1, diamond blastp output = 2, .sbml = 3, Required, Default = 1, int>
--gram <REQUIRED Type of Gram classificiation (positive or negative), default = positive, str>`
--media <REQUIRED 'rich' is the default and can be used to generate model based on a rich media. List of strings of metabolites in modelseed namespace composing the media condition, comma separated. Must end with _e. For example: 'cpd00001_e'.>`
--org <KEGG organism code. Not required, str>
--min_frac <Minimum objective fraction required during gapfilling, default = 0.01, float>
--max_frac <Maximum objective fraction allowed during gapfilling, default = 0.5 ,float>
--out <Name of output GENRE file, default = default, str>
--name <ID of output GENRE, default = default, str>
--cpu <Number of processors to use, default = 1, int>
--test <run installation tests, default = no, str>

Git Repository Structure

reconstructor

Contains the source code for Reconstructor.

reference

Contains a variety of zipped reference files related to Receonstructor:

  • RepresentativeGENRES.zip (comparison of models created by Reconstructor, ModelSeed, and CarveME)
  • MEMOTE.zip (MEMOTE benchmarking scores for 10 representative Reconstructor models)
  • C_difficile_media.zip (C. Difficile models made with 5 different media)

See the reference folder README for more details about its contents.

docs

Contains documentation files for Reconstructor.

Additional Information

Thank you for your interest in Reconstructor. If you have any additional questions please open an issue.

If you encounter any problems, please file an issue along with a detailed description.

Distributed under the terms of the MIT license, Reconstructor is free and open source software.

Metadata

Release files for reconstructor 1.2.0

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

Source distribution (sdist)

Source distribution for reconstructor 1.2.0
File Size Uploaded Provenance
reconstructor-1.2.0.tar.gz 39.3 MB Without provenance Details

Built distribution (wheel)

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

Total release size: 78.6 MB

Release files / reconstructor-1.2.0.tar.gz

Download URL reconstructor-1.2.0.tar.gz
Size 39.3 MB
Tags Source
SHA-256 checksum
How to use checksums
5c2e31b3d463cc881358a0da91a6253cd7a9bb0933796eaf99bef7816462f2bb
BLAKE2b-256 checksum
How to use checksums
00333568ec78c3591c26c88f963233c1a1068c4f04dc1dfb5f4b17cb42f698e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.14.0 Darwin/25.0.0

Release files / reconstructor-1.2.0-py3-none-any.whl

Download URL reconstructor-1.2.0-py3-none-any.whl
Size 39.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a4a2d4bd9e6b0e9ffa143a6f160ad666ea6971bc7995bfa1724b25ec52c53563
BLAKE2b-256 checksum
How to use checksums
22ed3cad5557f1cb4a808c56367e62f3c064ae32753c23a60509d2e9a118a852
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.14.0 Darwin/25.0.0

Security for reconstructor 1.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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