Skip to content

Commit 69f855b

Browse files
authored
Merge pull request #11 from sunbeam-labs/codex/clean-up-extension-and-rename-to-sbx_cenote_taker
Rename extension to sbx_cenote_taker and drop VirSorter integration
2 parents e4f8321 + 1168ef3 commit 69f855b

19 files changed

+429
-782
lines changed

README.md

Lines changed: 16 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,48 @@
11
<img src="https://github.com/sunbeam-labs/sunbeam/blob/stable/docs/images/sunbeam_logo.gif" width=120, height=120 align="left" />
22

3-
# sbx_virus_id
3+
# sbx_cenote_taker
44

55
<!-- badges: start -->
6-
[![Tests](https://github.com/sunbeam-labs/sbx_virus_id/actions/workflows/tests.yml/badge.svg)](https://github.com/sunbeam-labs/sbx_virus_id/actions/workflows/tests.yml)
7-
[![DockerHub](https://img.shields.io/docker/pulls/sunbeamlabs/sbx_virus_id)](https://hub.docker.com/repository/docker/sunbeamlabs/sbx_virus_id/)
6+
[![Tests](https://github.com/sunbeam-labs/sbx_cenote_taker/actions/workflows/tests.yml/badge.svg)](https://github.com/sunbeam-labs/sbx_cenote_taker/actions/workflows/tests.yml)
7+
[![DockerHub](https://img.shields.io/docker/pulls/sunbeamlabs/sbx_cenote_taker)](https://hub.docker.com/repository/docker/sunbeamlabs/sbx_cenote_taker/)
88
<!-- badges: end -->
99

1010
## Introduction
1111

12-
sbx_virus_id is a [sunbeam](https://github.com/sunbeam-labs/sunbeam) extension for identifying viruses in samples. This pipeline uses [MEGAHIT](https://github.com/voutcn/megahit) or [SPAdes](https://github.com/ablab/spades) for assembly of contigs and [Cenote-Taker2](https://github.com/mtisza1/Cenote-Taker2) or [Virsorter2](https://github.com/jiarong/VirSorter2) for viral identification.
12+
sbx_cenote_taker is a [sunbeam](https://github.com/sunbeam-labs/sunbeam) extension for identifying viruses in samples with [Cenote-Taker3](https://github.com/jedvachey/Cenote-Taker3). This pipeline uses [MEGAHIT](https://github.com/voutcn/megahit) for assembly of contigs and then processes assemblies with Cenote-Taker3.
1313

14-
N.B. If using Megahit for assembly, this extension requires also having sbx_assembly installed.
14+
N.B. This extension requires also having sbx_assembly installed.
1515

1616
### Installation
1717

1818
```
19-
sunbeam extend https://github.com/sunbeam-labs/sbx_virus_id.git
19+
sunbeam extend https://github.com/sunbeam-labs/sbx_assembly.git
20+
sunbeam extend https://github.com/sunbeam-labs/sbx_cenote_taker.git
2021
```
2122

22-
# Installing blast dbs
23+
### Cenote-Taker database
2324

24-
Install blast db:
25+
sbx_cenote_taker expects the Cenote-Taker3 reference database to be available locally. Download the database following the official instructions, for example:
2526

2627
```
27-
conda create -n blast
28-
conda activate blast
29-
conda install -c bioconda blast
30-
mkdir refseq_select_prot/
31-
cd refseq_select_prot/
32-
perl `which update_blastdb.pl` --decompress refseq_select_prot
28+
conda activate cenote-taker
29+
get_ct3_dbs -o /path/to/ct3_db --hmm T --hallmark_tax T --refseq_tax T --mmseqs_cdd T --domain_list T --hhCDD T --hhPFAM T --hhPDB T
3330
```
3431

35-
Install viral blast db:
32+
Update the `cenote_taker_db` entry in your Sunbeam configuration to point at the resulting directory.
3633

37-
```
38-
conda stuff from above ^^^
39-
mkdir viral_prot/ && cd viral_prot/
40-
wget https://ftp.ncbi.nlm.nih.gov/refseq/release/viral/viral.1.protein.faa.gz && gzip -d viral.1.protein.faa.gz
41-
makeblastdb -in viral.1.protein.faa -parse_seqids -title "viral" -dbtype prot
42-
```
34+
### Running
4335

44-
## Running
45-
46-
Run with sunbeam on the target `all_virus_id`,
36+
Run with sunbeam on the target `all_cenote_taker`:
4737

4838
```
49-
sunbeam run --profile /path/to/project/ all_virus_id
39+
sunbeam run --profile /path/to/project/ all_cenote_taker
5040
```
5141

5242
### Options for config.yml
5343

5444
- blast_db: path to blast db (default: "") (NOTE: this should be the database file not just the directory it's in)
5545
- blastx_threads: number of threads for running blastx (default: 4)
5646
- bowtie2_build_threads: number of threads for running bowtie2-build (default: 4)
57-
- cenote_taker2_db: path to cenote-taker2 db (default: "") (NOTE: this should be a directory)
58-
- virsorter_db: path to virsorter2 db (default: "") (NOTE: this should be a directory)
47+
- cenote_taker_db: path to cenote-taker3 db (default: "") (NOTE: this should be a directory)
5948
- include_phages: Whether to include phages in the output (default: False)
60-
- use_spades: Whether to use SPAdes instead of MEGAHIT (default: False)
61-
- use_virsorter: Whether to use Virsorter2 instead of Cenote-Taker2 (default: False)
62-
63-
## Legacy Installation
64-
65-
```
66-
git clone https://github.com/sunbeam-labs/sbx_virus_id.git extensions/sbx_virus_id
67-
cd extensions/sbx_virus_id
68-
cat config.yml >> /path/to/sunbeam_config.yml
69-
```

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.1
1+
0.1.0

config.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
sbx_virus_id:
1+
sbx_cenote_taker:
22
blast_db: ''
33
blastx_threads: 4
44
bowtie2_build_threads: 4
55
cenote_taker_db: ''
6-
cenote_taker_extra_dbs: True # Download hhsuite databases (True, ~70GB) or only basic (False, ~3GB)
7-
virsorter_db: ''
86
include_phages: False
9-
use_spades: False # Default: Megahit
10-
use_virsorter: False # Default: Cenote-Taker2

envs/cenote_taker_env.Dockerfile

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
FROM condaforge/mambaforge:latest
2-
3-
# Setup
4-
WORKDIR /home/sbx_virus_id_env
5-
6-
COPY envs/cenote_taker_env.yml ./
7-
8-
# Install environment
9-
RUN conda env create --file cenote_taker_env.yml --name cenote_taker
10-
11-
ENV PATH="/opt/conda/envs/cenote_taker/bin/:${PATH}"
12-
13-
# "Activate" the environment
14-
SHELL ["conda", "run", "-n", "cenote_taker", "/bin/bash", "-c"]
15-
16-
# Run
17-
CMD "bash"
1+
FROM condaforge/mambaforge:latest
2+
3+
# Setup
4+
WORKDIR /home/sbx_cenote_taker_env
5+
6+
COPY envs/cenote_taker_env.yml ./
7+
8+
# Install environment
9+
RUN conda env create --file cenote_taker_env.yml --name cenote_taker
10+
11+
ENV PATH="/opt/conda/envs/cenote_taker/bin/:${PATH}"
12+
13+
# "Activate" the environment
14+
SHELL ["conda", "run", "-n", "cenote_taker", "/bin/bash", "-c"]
15+
16+
# Run
17+
CMD "bash"

envs/sbx_cenote_taker.Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM condaforge/mambaforge:latest
2+
3+
# Setup
4+
WORKDIR /home/sbx_cenote_taker_env
5+
6+
COPY envs/sbx_cenote_taker.yml ./
7+
8+
# Install environment
9+
RUN conda env create --file sbx_cenote_taker.yml --name sbx_cenote_taker
10+
11+
ENV PATH="/opt/conda/envs/sbx_cenote_taker/bin/:${PATH}"
12+
13+
# "Activate" the environment
14+
SHELL ["conda", "run", "-n", "sbx_cenote_taker", "/bin/bash", "-c"]
15+
16+
# Run
17+
CMD "bash"
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: sbx_virus_id
1+
name: sbx_cenote_taker
22
channels:
33
- conda-forge
44
- bioconda
@@ -7,4 +7,4 @@ dependencies:
77
- blast
88
- bowtie2
99
- samtools
10-
- python>=3.10
10+
- python>=3.10

envs/sbx_virus_id.Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

envs/spades_env.Dockerfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

envs/spades_env.linux-64.pin.txt

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)