Spaces:
Build error
Build error
Delete README.md
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242---title: WOLOJI Comprehensive Bacterial Genomics Suiteemoji: π§¬colorFrom: bluecolorTo: greensdk: dockerapp_port: 7860fullWidth: trueshort_description: End-to-end bacterial whole-genome analysis---
# WOLOJI Comprehensive Bacterial Genomics Suite v2.0.1
WOLOJI is a Docker-based Streamlit platform for bacterial isolate whole-genome analysis. It combines the strongest functions of the earlier Woloji, Gulumba and Bulamarwa applications into one reproducible workflow while keeping standalone sequence utilities for primer design, BLAST and phylogenetic analysis.
The package is designed to start from raw Illumina, Oxford Nanopore or assembled bacterial genomes and coordinate the following analysis blocks:
1. Input validation and SHA256 provenance.2. Raw read quality control with fastp, FastQC and MultiQC.3. Short-read assembly with SPAdes.4. Long-read assembly with Flye.5. Hybrid assembly with Unicycler and optional Polypolish short-read polishing.6. Assembly quality assessment with QUAST and optional CheckM2.7. Species and taxonomic analysis with Mash, skani and optional GTDB-Tk.8. Standardized genome annotation with Bakta when its database is mounted, otherwise Prokka.9. Genome composition and codon-bias analysis, including GC1, GC2, GC3, ENc, RSCU and neutrality plots.10. Functional annotation with eggNOG-mapper.11. Antimicrobial resistance analysis with NCBI AMRFinderPlus.12. Virulence screening through ABRicate/VFDB when the database is available.13. Secondary metabolite biosynthetic gene clusters with antiSMASH.14. Plasmid and mobile genetic element analysis with MOB-suite, geNomad, IntegronFinder and MinCED.15. Classical MLST.16. cgMLST/wgMLST allele calling with chewBBACA using a user-supplied schema.17. Pan-genome analysis with Panaroo.18. Core SNP analysis with Snippy, recombination filtering with Gubbins and phylogenetic inference with IQ-TREE.19. Population genomic clustering with PopPUNK.20. Standalone Primer3, local BLAST and MAFFT/IQ-TREE utilities.21. Publication-oriented tables, figures, methods notes, command logs, software provenance and run manifests.
## Repository structure
```text.βββ app.pyβββ Dockerfileβββ Dockerfile.liteβββ requirements.txtβββ requirements-dev.txtβββ pyproject.tomlβββ README.mdβββ CITATION.cffβββ LICENSEβββ CHANGELOG.mdβββ PUBLICATION_READINESS.mdβββ DEPLOYMENT_CHECKLIST.mdβββ example_metadata.csvβββ .dockerignoreβββ .streamlit/β βββ config.tomlβββ .github/workflows/β βββ ci.ymlβ βββ release-readiness.ymlβββ config/β βββ databases.env.exampleβββ tests/β βββ test_core.pyβ βββ test_codon.pyβ βββ test_io.pyβ βββ smoke_dry_run.pyβββ tools/β βββ finalize_release_metadata.pyβββ validation/β βββ README.mdβ βββ benchmark_runs.tsvβ βββ compare_outputs.pyβββ woloji/ βββ __init__.py βββ codon.py βββ figures.py βββ io.py βββ models.py βββ pipeline.py βββ tooling.py βββ utilities.py βββ utils.py```
## Hugging Face deployment
Create a new Hugging Face Space and choose **Docker** as the SDK. Upload every file in this repository to the root of the Space. The README front matter declares `sdk: docker` and port `7860`.
The Docker build installs the application and command-line software, but it deliberately does not download the very large biological databases. Database-dependent modules remain visible and are reported as skipped until their database paths are configured.
### Recommended persistent database mount
Mount persistent storage at `/data` and configure Space variables such as:
```bashBAKTA_DB=/data/bakta/dbGTDBTK_DATA_PATH=/data/gtdbtkCHECKM2DB=/data/checkm2/uniref100.KO.1.dmndEGGNOG_DATA_DIR=/data/eggnogGENOMAD_DB=/data/genomad_dbMOB_SUITE_DB=/data/mob_suiteABRICATE_DB_DIR=/data/abricate```
Use the **Tools & databases** tab after deployment to confirm executable and database availability before analysing research data.
## Input
### Recommended metadata file
The application accepts a CSV or TSV table. `Sample_ID` is required. Other columns are optional.
```csvSample_ID,Read_1,Read_2,Long_Reads,Assembly,Genus,SpeciesISO01,ISO01_R1.fastq.gz,ISO01_R2.fastq.gz,,,Escherichia,coliISO02,,,ISO02_nanopore.fastq.gz,,Klebsiella,pneumoniaeISO03,,,,ISO03.fasta,Staphylococcus,aureus```
Without metadata, WOLOJI automatically pairs filenames containing `_R1/_R2` or `_1/_2`. An unpaired FASTQ is interpreted as long-read input.
## Important analysis requirements
### GTDB-Tk
Set `GTDBTK_DATA_PATH` to a compatible GTDB-Tk reference-data release. Do not mix software and database releases without checking compatibility.
### CheckM2
Set `CHECKM2DB` to the CheckM2 diamond database file when it is stored outside the default location.
### Bakta
Set `BAKTA_DB` to the unpacked Bakta database directory.
### eggNOG-mapper
Set `EGGNOG_DATA_DIR` to the prepared eggNOG-mapper data directory.
### geNomad
Set `GENOMAD_DB` to the unpacked geNomad database directory.
### MOB-suite
Set `MOB_SUITE_DB` to an initialized MOB-suite database directory. Database initialization should be performed before deployment rather than during an analysis request.
### chewBBACA
Upload the cgMLST or wgMLST schema as a ZIP. The same schema and training settings should be used across isolates being compared.
### Core SNP analysis
Upload a suitable reference genome and enable **Core SNP phylogenomics**. WOLOJI uses reads when available and assemblies otherwise. The analysis calls Snippy, `snippy-core`, Gubbins and IQ-TREE.
## Reproducibility output
Each run generates a ZIP containing, where applicable:
```text00_input/01_read_qc/02_assembly/03_polishing/04_assembly_qc/05_taxonomy/06_annotation/07_composition_codon/08_functional/09_amr/10_virulence/11_secondary_metabolites/12_mobileome/13_typing/14_pangenome/16_phylogenomics/17_population/20_publication_report/logs/input_manifest.tsvcommand_manifest.jsonrun_manifest.json```
The input manifest stores SHA256 checksums. The command manifest records every executed or skipped command, return code, start/finish times and log paths. The run manifest records parameters and database paths.
## Publication use
WOLOJI is an orchestration and reporting platform. Publications must cite both WOLOJI and the underlying programs actually used in the selected workflow. Database release dates and versions should also be reported. Prediction-based AMR, virulence, plasmid, prophage, CRISPR, secondary-metabolite and taxonomy outputs require biological interpretation and, where relevant, experimental validation.
For a software manuscript, benchmark WOLOJI on synthetic/mock data and public bacterial WGS datasets, and report concordance, runtime, RAM, failure rate and reproducibility against established bacterial WGS workflows. Do not claim superiority solely because more modules are exposed through the graphical interface.
## Local development
```bashpython -m venv .venvsource .venv/bin/activatepip install -r requirements.txtstreamlit run app.py```
The web interface can run in **dry-run mode** even when command-line bioinformatics tools are not installed. Dry-run records the intended commands without executing them.
## Verification and continuous integration
The repository includes biological regression tests for the complete NCBI bacterial genetic code table 11, ENc limits, RSCU calculations, FASTA statistics and automatic sample filename pairing. It also includes a dry-run orchestration smoke test.
Run locally with:
```bashpython -m pip install -r requirements-dev.txtruff check .python -m compileall -q app.py woloji tests tools validationpytest -q --cov=woloji --cov-report=term-missingPYTHONPATH=. python tests/smoke_dry_run.pypython tools/finalize_release_metadata.py --check```
GitHub Actions performs the same checks on Python 3.11 and 3.12 for every push and pull request.
## Biological validation before manuscript submission
The `validation/` directory provides a structured benchmark record and a generic table concordance script. Use these to compare WOLOJI outputs with direct runs of the same underlying tools on public or curated datasets. Software verification and biological validation are treated separately. See `PUBLICATION_READINESS.md` and `validation/README.md`.
## Release citation metadata
`CITATION.cff` contains the verified author ORCID and institutional affiliation. The repository URL is deliberately not guessed. After the final GitHub repository or Hugging Face Space exists, finalize the citation metadata with the real URL:
```bashpython tools/finalize_release_metadata.py \ --repository-url "https://huggingface.co/spaces/<REAL_ACCOUNT>/<REAL_SPACE>" \ --check --require-repository```
The release-readiness GitHub workflow performs the same validation using a manually supplied repository URL.
## License
The WOLOJI application code in this repository is released under the MIT License. Each external bioinformatics tool and reference database retains its own license and terms. Review those terms before redistribution or commercial deployment.README.mdDeleted-242