How chonwai/axpep_backend works
This Laravel backend exposes peptide, codon, and toxicity-prediction features alongside task lookup, result downloads, and usage statistics. The visible request workflow is API controller to service, with task validation and persistence used for task operations; prediction services also dispatch background jobs. Source excerpts show one SSL-GCN client communicating with an external prediction service. Routes and most prediction implementations were not sampled, so their detailed wiring is not asserted.
Main entry points: TasksServices.php Task services · AcPEPServices.php AcPEP services · TaskController.php Task API · Tasks.php Task records
Components 25
API layer
Prediction workflows
- AcPEP services
app/Services/AcPEPServices.php - AcPEP job
app/Jobs/AcPEPJob.php - Codon job
app/Jobs/CodonJob.php - Prediction services
app/Services - Prediction jobs
app/Jobs - SSL-GCN client
app/Services/SSLGCNMicroserviceClient.php - Toxicology service
app/Services/SSLBESToxServices.php
Tasks and persistence
- Task services
app/Services/TasksServices.php - Task data access
app/DAO/Ingredient/TasksDAOFactory.php - Method data access
app/DAO/Ingredient/TasksMethodsDAOFactory.php - Task records
app/Models/Tasks.php - Method results
app/Models/TasksMethods.php - DAO factory
app/DAO/DAOSimpleFactory.php
Shared support
- Task validation
app/Http/Requests/TasksRules.php - Request helpers
app/Utils/RequestUtils.php - File utilities
app/Utils/FileUtils.php - Format utilities
app/Utils/FormatUtils.php - Task utilities
app/Utils/TaskUtils.php - Response utilities
app/Utils/ResponseUtils.php - Response factory
app/Utils/Res/ResFactoryUtils.php - Service interface
app/Services/BaseServicesInterface.php
Other components
- API caller
- SSL-GCN service
Connections 20
- API caller → Task API: requests
- API caller → AcPEP API: requests
- Task API → Task services: calls
app/Http/Controllers/Apis/TaskController.php - Task API → Request helpers: prepares request
app/Http/Controllers/Apis/TaskController.php - AcPEP API → AcPEP services: calls
app/Http/Controllers/Apis/AcPEPController.php - Task services → Task data access: uses
app/Services/TasksServices.php - Task services → Task records: uses
app/Services/TasksServices.php - Task services → Task validation: validates with
app/Services/TasksServices.php - Task services → File utilities: uses
app/Services/TasksServices.php - Task services → Response factory: formats responses
app/Services/TasksServices.php - AcPEP services → AcPEP job: dispatches
app/Services/AcPEPServices.php - AcPEP services → Codon job: dispatches
app/Services/AcPEPServices.php - AcPEP services → DAO factory: uses
app/Services/AcPEPServices.php - AcPEP services → Task records: uses
app/Services/AcPEPServices.php - Task records → Method results: has details
app/Models/Tasks.php - SSL-GCN client → SSL-GCN service: sends predictions
app/Services/SSLGCNMicroserviceClient.php - Toxicology service → SSL-GCN client: uses
- Prediction services → Prediction jobs: dispatches
app/Services/AcPEPServices.php - Task validation → Format utilities: validates format
app/Http/Requests/TasksRules.php - Task services → Service interface: implements
app/Services/TasksServices.php