Skip to content

Commit

Permalink
Merge pull request #170 from panoptes-organization/develop
Browse files Browse the repository at this point in the history
Release 0.2.3
  • Loading branch information
fgypas authored Aug 7, 2023
2 parents d39f26f + 070446d commit 91b8386
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 20 deletions.
61 changes: 41 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,12 @@ panoptes is a service that can be used by:

# Installation

## Basic installation process

### Requirements

Requirements:
- Python>=3.6
- virtualenv
- [sqlite3](https://www.sqlite.org/download.html)

### Option 1: Install via pypi and run server
## Install from pypi and run server

Create virtual environment
```bash
Expand All @@ -44,22 +41,18 @@ Server should run on: 127.0.0.1:5000

By default it should generate an sqlite database: .panoptes.db

### Option 2: Install via conda and run server
## Install from conda and run server

Create conda environment
```bash
conda create --name panoptes
conda create --name panoptes -c conda-forge -c bioconda panoptes-ui
```

Activate conda environment
```bash
conda activate panoptes
```

Install via pypi OR conda
```bash
conda install -c panoptes-organization panoptes-ui
```
Run server
```bash
panoptes
Expand All @@ -68,7 +61,7 @@ Server should run on: 127.0.0.1:5000

By default it should generate an sqlite database: .panoptes.db

### Option 3: Install from source code and run server
## Install from source code and run server

Clone repo
```bash
Expand Down Expand Up @@ -103,15 +96,30 @@ Server should run on: 127.0.0.1:5000

By default it should generate an sqlite database: .panoptes.db

## Docker installation
## Docker execution

Requirements:
- docker

Pull image that is automatically built from bioconda. You can find the latest tag in the following url: https://quay.io/repository/biocontainers/panoptes-ui?tab=tags. For example:
```
docker pull quay.io/biocontainers/panoptes-ui:0.2.2--pyh7cba7a3_0
```

Then run the container with:

### Requirements
```bash
docker run -p 5000:5000 -it "image id" panoptes
```

> Note: In this case the database is stored within the docker image, so every time you restart the server the database will be empty. You would need to mount the volumes to make the database persistent.
## Docker compose execution

Requirements:
- docker
- docker-compose

### Build and run with docker-compose

Build
```bash
docker-compose build
Expand All @@ -129,15 +137,28 @@ Stop
docker-compose down
```

### Run an example workflow
## Singularity execution

You can also deploy the server with singularity. To do so pull the image with singularity. For example:

```bash
singularity pull docker://quay.io/biocontainers/panoptes-ui:0.2.2--pyh7cba7a3_0
```

And then we can start the server by running:
```bash
singularity exec panoptes-ui:0.2.2--pyh7cba7a3_0
```

# Run an example workflow

In order to run an example workflow please follow the instructions [here](https://github.com/panoptes-organization/snakemake_example_workflow)

### panoptes in action
## panoptes in action

[![Watch the video](https://img.youtube.com/vi/de-YSJmq_5s/hqdefault.jpg)](https://www.youtube.com/watch?v=de-YSJmq_5s)

### panoptes API
## panoptes API

Panoptes provides the following API endpoints:

Expand Down Expand Up @@ -166,7 +187,7 @@ Please see the [Contributing instructions](CONTRIBUTING.md).

## CI server

Changes in develop or master trigger a [Travis](https://travis-ci.com/panoptes-organization/panoptes) build (and runs tests)
Changes in develop or master trigger a [GitHub Actions](https://github.com/panoptes-organization/panoptes/actions) build (and runs tests)

# Contact

Expand Down
1 change: 1 addition & 0 deletions contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Dimitrios Afentoulis (@dafentoulis)
- Argyrios-Alexandros Gardelakos (@agardelakos)
- Foivos Gypas (@fgypas)
- Bruno P. Kinoshita (@kinow)
- Georgios Kostoulas (@gkostoulas)
- Johannes Köster (@johanneskoester)
- Russell Neches (@ryneches)
Expand Down

0 comments on commit 91b8386

Please sign in to comment.