Skip to content

TAMU-CPT/cacao-backend

Repository files navigation

CACAO Backend Docker Repository on Quay

Build Status

This is the backend for the CPT's implementation of GONUTS (GO normal usage tracking system) for CACAO, or Community Annotation of Community Assessment with Ontologies.

Usage

Set up a virtual environment and install requirements

$ virtualenv venv
$ . venv/bin/activate
$ pip install -r requirements.txt

Migrate

$ python manage.py migrate

Load fixtures

We've created some sample data:

$ python manage.py loaddata fixtures/quickstart.json

Run

$ python manage.py runserver

JBrowse Integration

If you want to view your annotations in JBrowse, add the following to your trackList.json file and point it at your backend url.

{
  "label": "my_rest_track",
  "key": "REST Test Track",
  "storeClass": "JBrowse/Store/SeqFeature/REST",
  "baseUrl": "https://server_url/jbrowse/",
  "query": {
    "organism": "Miro"
  },
  "style": {
    "color": "function(feature){ if(feature.data.state == 1){ return 'yellow'; } if(feature.data.state == 2){ return 'green';} return 'red';}"
  },
  "type": "JBrowse/View/Track/CanvasFeatures",
  "trackType": "JBrowse/View/Track/CanvasFeatures"
}

License

This software is licensed under AGPL-3.0.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published