Skip to content

Commit

Permalink
Merge pull request #360 from gbouras13/dev
Browse files Browse the repository at this point in the history
container to docs
  • Loading branch information
gbouras13 authored Sep 26, 2024
2 parents c58763f + 49f6adf commit fb9f1f4
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ If you don't want to install `pharokka` or `phold` locally, you can run `pharokk
- [Installation](#installation)
- [Conda Installation](#conda-installation)
- [Pip](#pip)
- [Container](#container)
- [Source](#source)
- [Database Installation](#database-installation)
- [Beginner Conda Installation](#beginner-conda-installation)
Expand Down Expand Up @@ -221,6 +222,29 @@ pip install pharokka

You will still need to install the non-python dependencies manually.

## Container

If you have Docker/Singularity/Apptainer installed, you can use the [biocontainers container](https://quay.io/repository/biocontainers/pharokka?tab=tags) (yes, every bioconda package has one!)

You might find this useful if you have trouble with conda environments.

For example to install `pharokka v1.7.3` with Singularity:

```
IMAGE_DIR="<the directory you want the .sif file to be in >"
# e.g. to pull into the working directory
IMAGE_DIR=$PWD
singularity pull --dir $IMAGE_DIR docker://quay.io/biocontainers/pharokka:1.7.3--pyhdfd78af_0
```

* Then to run, you use the same commands but prepended with `singularity exec <.sif file>` e.g.:

```
containerImage="$IMAGE_DIR/pharokka_1.7.3--pyhdfd78af_0.sif"
singularity exec $containerImage pharokka.py -h
```


## Source

Alternatively, the development version of `pharokka` (which may include new, untested features) can be installed manually via github.
Expand Down
22 changes: 22 additions & 0 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,28 @@ pip install pharokka

You will still need to install the non-python dependencies manually.

## Container

If you have Docker/Singularity/Apptainer installed, you can use the [biocontainers container](https://quay.io/repository/biocontainers/pharokka?tab=tags) (yes, every bioconda package has one!)

You might find this useful if you have trouble with conda environments.

For example to install `pharokka v1.7.3` with Singularity:

```
IMAGE_DIR="<the directory you want the .sif file to be in >"
# e.g. to pull into the working directory
IMAGE_DIR=$PWD
singularity pull --dir $IMAGE_DIR docker://quay.io/biocontainers/pharokka:1.7.3--pyhdfd78af_0
```

* Then to run, you use the same commands but prepended with `singularity exec <.sif file>` e.g.:

```
containerImage="$IMAGE_DIR/pharokka_1.7.3--pyhdfd78af_0.sif"
singularity exec $containerImage pharokka.py -h
```

## Source

Alternatively, the development version of `pharokka` (which may include new, untested features) can be installed manually via github.
Expand Down

0 comments on commit fb9f1f4

Please sign in to comment.