How nanobiostructuresrg-lab/chemvault works
CHEMVAULT is a visual molecular-dataset curation application. Its principal workflow resolves a protein target, retrieves PubChem data, harmonizes structures, filters and consolidates activity-labeled observations, then assesses modelability and exports analyses. A parallel CSV workflow supports SQLite table inspection, refinement, derived tables, and export. Edges follow the README-described workflows and sampled/indexed calls; the README is the evidence for domain-stage links whose implementation was not sampled. API mode is optional and has documented limited coverage.
Main entry points: main.py FastAPI backend · database_core.py SQLite datasets · modelability_index.py Modelability analysis · harmonsmile_jobs.py HARMONSMILE jobs
Components 28
User interface
- Streamlit entry
app.py - Dataset workspace
ui/main_page.py - Dataset controls
ui/sidebar.py - Modelability results
ui/modelability_result.py
Curation workflows
- Database operations
application/database_use_cases.py - Table refinement and export
application/table_use_cases.py - Target identity resolution
application/protein_identifiers.py - PubChem job orchestration
application/pubchem_jobs.py - HARMONSMILE jobs
application/harmonsmile_jobs.py - Structure consolidation
application/structure_consolidation.py - Modelability jobs
application/modelability_jobs.py - Modelability analysis
application/modelability_index.py
Scientific services
- Protein and assay retrieval
services/pubchem_protein_search.py - Activity enrichment
services/activity_enrichment.py - Structure harmonization
application/curation_use_cases.py - Consolidation service
services/structure_consolidation.py - Fingerprint and scaffold context
services/modelability_index.py
Persistence and jobs
- SQLite datasets
services/database_core.py - Provenance and operation history
services/db_audit.py - Persisted job state
services/job_store.py
Optional API mode
- Backend gateway
clients/backend_gateway.py - FastAPI backend
api/main.py - HTTP API client
clients/api_client.py
Other components
- Researcher
- PubChem
- UniProt
- MOLRAPTOR fingerprints
- CSV input
Connections 38
- Researcher → Streamlit entry: uses
README.md - Streamlit entry → Dataset workspace: renders
app.py - Streamlit entry → Dataset controls: renders
app.py - Dataset workspace → Backend gateway: requests operations
ui/main_page.py - Dataset controls → Backend gateway: requests operations
ui/sidebar.py - Modelability results → Backend gateway: requests analysis
ui/modelability_result.py - Backend gateway → FastAPI backend: sends HTTP requests
README.md - FastAPI backend → Database operations: routes operations
api/main.py - FastAPI backend → Table refinement and export: routes operations
api/main.py - FastAPI backend → PubChem job orchestration: routes jobs
api/main.py - FastAPI backend → HARMONSMILE jobs: routes jobs
api/main.py - FastAPI backend → Modelability jobs: routes jobs
api/main.py - HTTP API client → FastAPI backend: calls API
README.md - Researcher → CSV input: provides
README.md - CSV input → SQLite datasets: builds database
README.md - Researcher → Target identity resolution: supplies target
README.md - Target identity resolution → UniProt: resolves accession
README.md - Target identity resolution → PubChem job orchestration: provides target identity
application/pubchem_jobs.py - PubChem job orchestration → Protein and assay retrieval: starts retrieval
application/pubchem_jobs.py - Protein and assay retrieval → PubChem: queries source
services/pubchem_protein_search.py - Protein and assay retrieval → Activity enrichment: enriches activity
services/pubchem_protein_search.py - Protein and assay retrieval → SQLite datasets: persists tables
README.md - HARMONSMILE jobs → Structure harmonization: runs harmonization
application/harmonsmile_jobs.py - Structure harmonization → SQLite datasets: updates structures
README.md - Structure consolidation → Consolidation service: delegates consolidation
application/structure_consolidation.py - Structure consolidation → SQLite datasets: reads and writes
README.md - Modelability jobs → Modelability analysis: runs analysis
application/modelability_jobs.py - Modelability analysis → SQLite datasets: reads labeled table
application/modelability_index.py - Modelability analysis → Fingerprint and scaffold context: uses analysis services
application/modelability_index.py - Modelability analysis → MOLRAPTOR fingerprints: consumes fingerprints
README.md - Modelability analysis → Modelability results: returns analysis
ui/modelability_result.py - Table refinement and export → SQLite datasets: reads and exports
application/table_use_cases.py - Database operations → SQLite datasets: inspects database
application/database_use_cases.py - Database operations → Provenance and operation history: reads provenance
application/database_use_cases.py - PubChem job orchestration → Persisted job state: persists job state
application/pubchem_jobs.py - HARMONSMILE jobs → Persisted job state: persists job state
application/harmonsmile_jobs.py - Modelability jobs → Persisted job state: persists job state
application/modelability_jobs.py - HARMONSMILE jobs → Provenance and operation history: records operation
application/harmonsmile_jobs.py