-
Notifications
You must be signed in to change notification settings - Fork 128
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 busco-prok with bacteria_odb #854
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,76 @@ | ||
ARG BUSCO_VER="5.6.1" | ||
|
||
FROM ubuntu:focal as app | ||
|
||
ARG BUSCO_VER | ||
ARG BBMAP_VER="39.01" | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
LABEL base.image="ubuntu:focal" | ||
LABEL dockerfile.version="1" | ||
LABEL software="BUSCO" | ||
LABEL software.version="${BUSCO_VER}" | ||
LABEL description="Slim version of BUSCO for prokaryotes only" | ||
LABEL website="https://busco.ezlab.org/" | ||
LABEL license="https://gitlab.com/ezlab/busco/-/raw/master/LICENSE" | ||
LABEL maintainer="Kutluhan Incekara" | ||
LABEL maintainer.email="[email protected]" | ||
|
||
# install dependencies | ||
RUN apt-get update && apt-get install --no-install-recommends -y \ | ||
wget \ | ||
python3-pip \ | ||
python3-setuptools \ | ||
python3-requests \ | ||
python3-pandas \ | ||
hmmer \ | ||
prodigal \ | ||
lbzip2 \ | ||
openjdk-8-jre-headless \ | ||
&& rm -rf /var/lib/apt/lists/* && apt-get autoclean \ | ||
&& ln -s /usr/bin/python3 /usr/bin/python | ||
|
||
# BioPython (python3-biopython installs 1.73. It causes python error in this version) | ||
RUN pip install --no-cache-dir biopython | ||
|
||
# bbtools | ||
RUN wget https://sourceforge.net/projects/bbmap/files/BBMap_${BBMAP_VER}.tar.gz &&\ | ||
tar -xvf BBMap_${BBMAP_VER}.tar.gz && rm BBMap_${BBMAP_VER}.tar.gz &&\ | ||
mv /bbmap/* /usr/local/bin/ | ||
|
||
# sepp (greengenes version) | ||
RUN wget https://raw.githubusercontent.com/smirarab/sepp-refs/54415e8905c5fa26cdd631c526b21f2bcdba95b5/gg/sepp-package.tar.bz &&\ | ||
tar xvfj sepp-package.tar.bz && rm sepp-package.tar.bz &&\ | ||
cd sepp-package/sepp &&\ | ||
python setup.py config -c && chmod 755 run_* | ||
|
||
# busco | ||
RUN wget https://gitlab.com/ezlab/busco/-/archive/${BUSCO_VER}/busco-${BUSCO_VER}.tar.gz &&\ | ||
tar -xvf busco-${BUSCO_VER}.tar.gz && \ | ||
rm busco-${BUSCO_VER}.tar.gz &&\ | ||
cd busco-${BUSCO_VER} && \ | ||
python3 setup.py install | ||
|
||
# download bacteria_odb10 | ||
RUN mkdir data && cd data &&\ | ||
busco --download bacteria_odb10 | ||
|
||
ENV PATH="${PATH}:/sepp-package/sepp" | ||
ENV LC_ALL=C | ||
|
||
WORKDIR /data | ||
|
||
CMD busco -h | ||
|
||
## Tests ## | ||
FROM app as test | ||
|
||
# offline test | ||
RUN wget -q https://ftp.ncbi.nlm.nih.gov/genomes/all/GCA/010/941/835/GCA_010941835.1_PDT000052640.3/GCA_010941835.1_PDT000052640.3_genomic.fna.gz && \ | ||
gzip -d GCA_010941835.1_PDT000052640.3_genomic.fna.gz && \ | ||
busco --offline -l bacteria_odb10 -m genome -i GCA_010941835.1_PDT000052640.3_genomic.fna -o offline --cpu 4 && \ | ||
head offline/short_summary*.txt | ||
|
||
# auto-lineage-prok | ||
RUN busco -m genome -i GCA_010941835.1_PDT000052640.3_genomic.fna -o auto --cpu 4 --auto-lineage-prok && \ | ||
head auto/short_summary*.txt |
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,24 @@ | ||
# Assessing genome assembly and annotation completeness with Benchmarking Universal Single-Copy Orthologs (BUSCO) container | ||
|
||
Main tool : [BUSCO](https://gitlab.com/ezlab/busco/) | ||
|
||
Additional tools: | ||
- BBTools 39.01 | ||
- HMMER 3.3 | ||
- Prodigal 2.6.3 | ||
- SEPP 4.5.1 | ||
- Python 3.8.10 | ||
- BioPython 1.83 | ||
- Perl 5.30.0 | ||
- OpenJDK 1.8.0_392 | ||
|
||
Full documentation: https://busco.ezlab.org/busco_userguide.html | ||
|
||
This is a BUSCO docker image which has basic functions for prokaryotes only. This image contains bacteria_odb10 lineage dataset for offline use. | ||
## Example Usage | ||
```bash | ||
# offline usage with bacteria lineage | ||
busco --offline -i assembly.fasta -l bacteria_odb10 -o output -m genome | ||
# auto lineage selection | ||
busco -i assembly.fasta -o output -m genome --auto-lineage-prok | ||
``` |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that you include an offline test to make sure that it's working