Skip to content

Commit

Permalink
make code bash
Browse files Browse the repository at this point in the history
  • Loading branch information
jamorrison committed Mar 4, 2024
1 parent 3d6d050 commit 834dc8a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/install.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ dependencies are wrapped up in these methods.

If you plan to compile your own copy of `dupsifter` or run the pre-compiled binaries, there are several external
dependencies that are needed:
```
```bash
zlib
libbz2
liblzma
libcurl
```

Some helpful tools for retrieving the pre-compiled binaries or the source code from GitHub are:
```
```bash
git
curl
unzip
```

If you are compiling `dupsifter` yourself, you will also need:
```
```bash
gcc
make
```
Expand All @@ -36,7 +36,7 @@ All releases are available on [GitHub](https://github.com/huishenlab/dupsifter/r
### Precompiled Binaries

Precompiled binaries are available for macOS and Linux:
```
```bash
# macOS
curl -OL $(curl -s https://api.github.com/repos/huishenlab/dupsifter/releases/latest |
grep browser_download_url | grep darwin_amd64 | cut -d '"' -f 4)
Expand All @@ -55,14 +55,14 @@ chmod +x dupsifter
`dupsifter` can also be downloaded and built from source.

Via `git`:
```
```bash
git clone [email protected]:huishenlab/dupsifter.git
cd dupsifter
make
```

Or, via `curl`:
```
```bash
curl -OL $(curl -s https://api.github.com/repos/huishenlab/dupsifter/releases/latest |
grep browser_download_url | grep release-source.zip | cut -d '"' -f 4)
unzip release-source.zip
Expand All @@ -73,15 +73,15 @@ make
### Containers

A `Dockerfile` is available to build a `dupsifter` container for the latest release version:
```
```bash
git clone [email protected]:huishenlab/dupsifter.git
cd dupsifter/container
docker build --no-cache --tag dupsifter_latest --file Dockerfile_latest .
docker run -it dupsifter_latest /bin/bash
```

If you want to create a `Dockerfile` for a specific version of `dupsifter`, you can do that via:
```
```bash
git clone [email protected]:huishenlab/dupsifter.git
cd dupsifter/container
python create_container.py -v X.Y.Z
Expand All @@ -92,7 +92,7 @@ docker run -it dupsifter_vX.Y.Z /bin/bash

If you don't want to build the container yourself, a pre-built container is available on
[DockerHub](https://hub.docker.com/r/varishenlab/dupsifter) and can be pulled down with either Docker or Singularity:
```
```bash
# Docker
docker pull varishenlab/dupsifter:dupsifter_v1.2.1
docker run -it varishenlab:dupsifter /bin/bash
Expand All @@ -107,6 +107,6 @@ Singularity> make
### Bioconda

`dupsifter` is also available via `conda`/`mamba` (starting with version 1.2.0):
```
```bash
conda install -c bioconda dupsifter
```

0 comments on commit 834dc8a

Please sign in to comment.