GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - DEAL-US/Cocos: Web framework to run prediction models that predict antibiotic resistance from bacterial genomes, with a semantic layer that describes models, steps and results as FAIR linked data.

BranchesTags
Open more actions menu

Latest commit

 

History

522 Commits
522 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
docker
docker
 
 
docs
docs
 
 
example_files
example_files
 
 
scripts
scripts
 
 
.dockerignore
.dockerignore
 
 
.env.example
.env.example
 
 
.env.prod.example
.env.prod.example
 
 
.gitignore
.gitignore
 
 
CITATION.cff
CITATION.cff
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
requirements-dev.txt
requirements-dev.txt
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Cocos

Framework for integrating and deploying antibiotic resistance prediction models in genomic analysis workflows.

Cocos provides a web interface that allows users to process genomic data and obtain antibiotic resistance predictions from multiple registered prediction models. The framework is designed to facilitate the use of research models by users without requiring direct interaction with the underlying machine learning implementations.

Features

  • From reads to predictions: users upload sequencing reads (Illumina or ONT), an assembly or a Bakta annotation, and Cocos runs the assembly, annotation and gene extraction each model needs before predicting.
  • Models as plug-ins: a prediction model or an annotation parser is a folder with its code and an RDF descriptor of what it consumes and produces, validated with SHACL. Adding one does not require changing the rest of the code. A model can also run outside Cocos, in any language or tool (e.g. AMRFinderPlus): its folder then has only its descriptor, which says where it runs. Models give a probability, a verdict (resistant, susceptible, possible resistance, not detected...) or both, with the evidence behind it.
  • Discovery of models: Cocos decides from the descriptors which models can run on a sample, and which preparation steps they need, with SPARQL over the registry.
  • Public registry: every step, model and term of the AMRF vocabulary has an IRI with an HTML and RDF page, and the registry has a SPARQL endpoint.
  • Provenance: each sample can be downloaded as RDF with how its data was obtained (PROV-O and P-Plan), and each prediction as an RO-Crate.
  • Trust of the predictions: each prediction says how much it can be trusted, and why, from the provenance of the sample and what the model declares about its training data and quality.

Getting Started

Cocos needs a bio service for the assembly and annotation jobs, and a model service for the models that run outside it. The Cocos-deployment repository has them, a mock of the bio service, and this repository as a submodule. To try Cocos with the mock, with Docker installed:

git clone --recurse-submodules https://github.com/DEAL-US/Cocos-deployment.git
cd Cocos-deployment
python deploy.py --mock

Cocos is then at http://localhost:8080.

Documentation

The documentation is also published at deal-us.github.io/Cocos.

Guide What
Development Development environment, configuration and tests
Production Production stack and its configuration
Extending Cocos Adding prediction models (in Cocos or in the model service), annotation parsers and trust rules
Semantic Layer Registry and SPARQL endpoint, discovery, RDF of the samples, provenance, RO-Crates and trust

Repository Layout

app/                 Django project
├── ai_models/       prediction models (plug-ins)
├── parsers/         annotation parsers (plug-ins)
├── semantics/       semantic layer: AMRF vocabulary, registry, discovery, provenance, trust
└── trust_rules.toml rules of the trust of the predictions
docker/              Docker Compose files for development and production, and Nginx
docs/                documentation
scripts/             setup of the development and production environments

Authors

Cocos is developed by María Quirós in collaboration with the DEAL research group at the Universidad de Sevilla.

License

The Cocos source code is free software under the GNU General Public License v3. The AMRF vocabulary and its SHACL shapes (app/semantics/vocab/) are published under CC BY 4.0. The registry served by an instance (/registry/, /sparql), which copies labels of EDAM, is published under CC BY-SA 4.0.

About

Web framework to run prediction models that predict antibiotic resistance from bacterial genomes, with a semantic layer that describes models, steps and results as FAIR linked data.

Topics

antibiotic-resistancebaktabioinformaticsdjangolinked-datardfsemantic-webshacl

Resources

Readme
GPL-3.0 license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.