Metabolic In silico Network Expansions
Project description
MINE Databases
This repository contains code for the generation (though Pickaxe), storage and querying of MINE databases. For generalinformation on MINE Databases, please consult JJeffryes et al. 2015 APIs can found in the API Repository
Repository Structure
This repository primarily consists of the minedatabases python module and it's 5 submodules:
- compound_io: Contains functions to load and export chemical structures from MINE databases. Has command-line interface.
- databases: Contains functions which impose a schema on the underlying Mongo databases which store MINE data.
- pickaxe: Allows for the application of reaction rules to compound sets and the annotation of the resulting compounds an reactions. Has command-line interface.
- queries: Contains logic for text and chemical structure queries of the MINE database.
- utils: Various utility functions such as hashing & type conversions
Compound_io command-line usage
compound_io may be called independently to import or export chemical
strictures in MINE database format. These may be helpful for sharing
predictions or maintaining current external databases for cross-referencing.
The call format is python compound_io.py import-<format> <input path> <database>
for imports and python compound_io.py export-<format> <database> <outfile path> <optionally: maximum compounds per file>
for exports.
Valid formats are:
- smi: SMILES line-code
- mol: MDL molecule files (outputs individual files in specified directory)
- sdf: Structured Data File (concatenated mol files)
- tsv: FOR EXPORT ONLY, a tab separated file compatible with ModelSEED
Pickaxe command-line usage
Pickaxe.py can be called independently to generate predictions with or
without database storage. To list all options call python pickaxe.py -h
.
To predict all chemical damage reactions for one generation on compounds in the iAF1260
model one would call python pickaxe.py -C ./data/ChemicalDamageCoreactants.tsv -r ./data/ChemicalDamageRxnRules.tsv -g 1 -c ./data/iAF1260.tsv
Testing
pytest
to run all tests. Ensure that pytest is installed.
To add coverage, run:
pytest --cov-report term --cov-report xml:tests/cov.xml --cov=minedatabase minedatabase/tests/
Ensure that coverage and pytest-cov are both installed.
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
Built Distribution
File details
Details for the file minedatabase-1.0.0.tar.gz
.
File metadata
- Download URL: minedatabase-1.0.0.tar.gz
- Upload date:
- Size: 47.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f77202bde1817f55290afbf16eec80d857ee485736ff27ab2e874a33e47bd6e0 |
|
MD5 | bf77de3caf1711b7e7196bf766de8c86 |
|
BLAKE2b-256 | e9e0061cef9953be7dca842504e65f9658c5c99a8905d8b9cc57ea17763f2549 |
File details
Details for the file minedatabase-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: minedatabase-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f47f6fc33b4a7f72e1682346b281d40c4119a46de6c0bea345e4c30ded06743 |
|
MD5 | e93e83e9b199c829db0305ca7d563b34 |
|
BLAKE2b-256 | 9f84459933173d60cb4d731ec6825df08dd1dbcabe227618d09ee3ae0d91fe99 |