Planteome / noctua

Graph-based modeling environment for biology, including prototype editor and services
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

** Installation

You must start with a modern version of Node.js (say >=0.12.3). Due to gcc requirements for Node.js modules, you'll need a relatively new system, we'll be using Ubuntu 16.04 LTS.

All of the tooling is built around that and should install easily with:

: npm install

Noctua makes use of [[https://jsplumbtoolkit.com/][jsPlumb]] and [[http://github.com/berkeleybop][BBOP]] components developed for [[https://github.com/geneontology/amigo/][AmiGO]].

** Running

Before you do anything, you'll need to create a startup.yaml that will define your environment. There are examples available in config/startup.yaml.*. For example, for local noctua-only development, you could try:

: cp config/startup.yaml.noctua-dev ./startup.yaml

For more information about the configuration examples, see [[https://github.com/geneontology/noctua/tree/master/config#configurations][here]].

After configuring your startup, run gulp build:

: ./node_modules/.bin/gulp build

Or, if you have "./node_modules/.bin" in your path:

: gulp build

The the gulpfile.js and the startup.yaml are not necessary to run the services, they merely wrap getting the different variables coordinated for the command line options for each of the services.

Tha available gulp tasks are:

*** Minerva (optional)

You must have a Minerva backend running somewhere and target it
with Barista and Noctua. In this dev example, we'll assume that
you need that as well. Everybody is different, but I'll give my
local dev environment as an example. Minerva is packaged with the
noctua repo.

The first step is to create the Blazegraph journal from your OWL
models directory. This will require the necessary variables
(e.g. NOCTUA_STORE) to be defined in startup.yaml. To make the
journal, run:

: gulp batch-minerva-create-journal

After the journal has been properly created you can start Minerva:

: gulp run-minerva

This would run minerva as defined in your startup.yaml, probably
defaulting to port 6800.

Learn more about Minerva [[https://github.com/geneontology/minerva][here]].

*** Barista (optional)

Everybody is different, but depending on you local startup.yaml default,
if can be as simple as:

: gulp run-barista

This will startup Barista aimed at the local Minerva instance
running on default ports.

Barista needs two files to run: users.yaml and
groups.yaml. Examples can be found [[https://github.com/geneontology/go-site/metadata][here]].

*** Client/Graph Editor (previously "Noctua")

Everybody is different, but depending on you local startup.yaml default,
if can be as simple as:

: gulp run-noctua

This will startup the client aimed at the local Barista instance
running on default ports.

** How to use demo *** Generating/selecting a model

*** Models

- Model meta information can be edited by selecting [Model] >
  [Edit annotations] from the top menu
- [Model] > [Soft refresh] gets a fully updated model from the
  server; this is what you'll use for the time being when another
  user makes a change to the model
- [Model] > [Reset] complete reloads everything from the server
  from scratch
- To export to a text file (Manchester syntax), use
  [Export]
- To save your current model, select [Model] > [Save]; your model
  should now be available from the landing page

*** General navigation

- Dragging on the background of the model allows you to pan around
  without using the scrollbars
- Under [Views], there are various zooming options
- To reduce clutter, the "part of" relation can be hidden by
  selecting [View] > [Show/hide "part of"]
- The minimum space you start with is 800x600px. If you need more,
  try reseting your model--the space you can use will grow with
  it.

** Known issues

The bulk of major issues and feature requests are handled by the tracker (https://github.com/geneontology/noctua/issues). If something is not mentioned here or in the tracker, please contact Seth or Chris.