Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add serotyping of Ecoli as a module #155

Closed
LordRust opened this issue Jun 13, 2023 · 2 comments · Fixed by #268
Closed

add serotyping of Ecoli as a module #155

LordRust opened this issue Jun 13, 2023 · 2 comments · Fixed by #268
Assignees
Labels
medium Medium priority
Milestone

Comments

@LordRust
Copy link
Contributor

LordRust commented Jun 13, 2023

serotypefinder is a tool to mimic traditional serotyping in E. coli
The tool is a bit broken in the current state on bitbucket, so needs the following in order to use the committed settings. We could of course create a proper singularity recipe instead, but I tried this first.

serotypefinder build

BuildDB

cd /builddir/somewhere/
git clone https://bitbucket.org/genomicepidemiology/serotypefinder_db.git
cd serotypefinder_db
export STFinder_DB=$(pwd)
python3 INSTALL.py kma_index

Build tool

cd /builddir/somewhere/
git clone --depth 1 --branch 2.0.2 https://bitbucket.org/genomicepidemiology/serotypefinder.git
cd serotypefinder
sed -i -e 's/FROM debian:stretch/FROM python:3.7-slim/' Dockerfile
sed -i -e 's/python3-pip/gcc make/' Dockerfile
sed -i -e 's/ENV DEBIAN_FRONTEND Teletype/# ENV DEBIAN_FRONTEND Teletype/' Dockerfile
sed -i -e 's:rm -rf /var/cache/apt/:# rm -rf /var/cache/apt/:' Dockerfile
sed -i -e 's/apt-get/apt/' Dockerfile
sed -i -e 's/    ; \\/    ;/' Dockerfile

docker build -t serotypefinder:2.0.2 .
sudo singularity build serotypefinder202.sif docker-daemon://serotypefinder:2.0.2

Execute and bid proper places as usual. Output folders must be created first

mkdir testdir
singularity exec --no-home --bind /data --bind /builddir serotypefinder202.sif serotypefinder.py -i /data/ecoli/sample.fasta -o testdir -p /builddir/serotypefinder_db/
@ryanjameskennedy ryanjameskennedy self-assigned this Jun 15, 2023
@ryanjameskennedy ryanjameskennedy added the high High priority label Jun 15, 2023
@ryanjameskennedy ryanjameskennedy added this to the Release 2 milestone Aug 16, 2023
@ryanjameskennedy
Copy link
Collaborator

ryanjameskennedy commented Oct 24, 2023

Could we not just wget the singularity image from galaxyproject (serotypefinder v2.0.1) or does it have to v2.0.2 @LordRust?

@ryanjameskennedy
Copy link
Collaborator

The problem is that we want to provide JASEN as a singularity pipeline but here we're using docker...

@ryanjameskennedy ryanjameskennedy added medium Medium priority and removed high High priority labels Nov 30, 2023
@ryanjameskennedy ryanjameskennedy linked a pull request Feb 19, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium Medium priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants