- Mirroring and Provisioning
- Codon Counter / Ratio Calculations
- PostgreSQL Interface
git clone git@github.com:PDX-Flamingo/codonpdx-python.git
Create a PyPy virtualenv and then run the following commands.
source .venv/bin/activate
pip install -r requirements.txt
make
There are several configuration files that need to be configured before use.
Sample configuration files are provided for the following:
- config/db.cfg
- config/mirror.cfg
- config/codonpdx.cfg
- codonpdx/celeryconfig.py
This will start a celery worker which is used by the webapp and mirror command.
celery -A codonpdx worker -l info
The celery worker can also be daemonized.
generate codon count metadata for a file
zcat ~/refseq/release/complete/complete.1.genomic.gbff.gz| ./codonpdx.py count -f genbank > /tmp/complete.1.json
load count metadata into refseq
cat /tmp/complete.1.json | ./codonpdx.py insert -d refseq
calculate scores for NG_027788.1
./codonpdx.py calc -d refseq -v NG_027788.1
DataSet | Version | OS | Compiler | Python | codonpdx | Jobs | Time |
---|---|---|---|---|---|---|---|
refseq | Release 65 | CentOS 6 | GCC 4.9.0 | PyPy 2.31 | v1.0.0 | 32 | 12.35 minutes |
genbank | Release 201 | CentOS 6 | GCC 4.9.0 | PyPy 2.31 | v1.0.0 | 32 | 95.20 minutes |