-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #94 from phac-nml/v2.0.0
Release V2.0.0
- Loading branch information
Showing
29 changed files
with
8,452 additions
and
538 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a single version of Python | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
||
name: Python application | ||
|
||
on: | ||
push: | ||
branches: [ "master", "v2.0.0" ] | ||
pull_request: | ||
branches: [ "master", "v2.0.0" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.12" | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install samtools bowtie2 mash bcftools ncbi-blast+ seqtk libcurl4-openssl-dev libssl-dev ca-certificates -y | ||
sudo apt-get install python3-pip python3-dev python3-pandas python3-requests python3-biopython -y | ||
python3 -m pip install --upgrade pip setuptools | ||
pip3 install pytest | ||
if [ -f requirements.txt ]; then | ||
pip3 install -r requirements.txt; | ||
else | ||
pip3 install -e . | ||
fi | ||
ectyper_init | ||
- name: Test with pytest | ||
run: | | ||
pytest -o log_cli=true --basetemp=tmp-pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM ubuntu:22.04 | ||
ENV DEBIAN_FRONTEND="noninteractive" TZ="America/New_York" | ||
RUN apt update && apt install git python3-pip -y | ||
RUN apt install libcurl4-openssl-dev libssl-dev -y | ||
RUN pip3 install Cython numpy | ||
RUN apt install mash ncbi-blast+ bowtie2 seqtk samtools bcftools -y | ||
RUN git clone https://github.com/phac-nml/ecoli_serotyping.git | ||
# install the tool and initialize its species ID MASH database | ||
RUN cd ecoli_serotyping && git checkout v2.0.0 && pip3 install . | ||
RUN ectyper_init | ||
|
||
#build image: docker build --tag ectyper:2.0.0 . | ||
#type a sample: docker run -it --rm -v $PWD:/mnt ectyper:2.0.0 ectyper -i /mnt/assembly.fasta -o /mnt/temp/ --pathotype |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Bootstrap: docker | ||
From: ubuntu:22.04 | ||
|
||
%environment | ||
DEBIAN_FRONTEND="noninteractive" TZ="America/New_York" | ||
|
||
%post | ||
apt update && apt install git python3-pip -y | ||
apt install libcurl4-openssl-dev libssl-dev -y | ||
pip3 install Cython numpy | ||
apt install mash ncbi-blast+ bowtie2 seqtk samtools bcftools -y | ||
git clone https://github.com/phac-nml/ecoli_serotyping.git | ||
cd ecoli_serotyping && git checkout v2.0.0 && pip3 install . | ||
ectyper_init | ||
# To build an image run the following. Might use --remote flag if no sudo/admin priv. | ||
# singularity build ectyper_v2.0.0_22032024.sif Singularity.def |
5,876 changes: 5,876 additions & 0 deletions
5,876
ectyper/Data/ectyper_patho_stx_toxin_typing_database.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "1.0.0" | ||
__version__ = "2.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.