-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
81 additions
and
1 deletion.
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,52 @@ | ||
ARG IQTREE2_VER="2.3.4" | ||
|
||
FROM ubuntu:jammy as app | ||
|
||
# for easy upgrade later. ARG variables only persist during build time. | ||
ARG IQTREE2_VER | ||
|
||
# metadata | ||
LABEL base.image="ubuntu:jammy" | ||
LABEL dockerfile.version="1" | ||
LABEL software="IQ-Tree2" | ||
LABEL software.version="${IQTREE2_VER}" | ||
LABEL description="Efficient software for phylogenomic inference" | ||
LABEL website="http://www.iqtree.org/" | ||
LABEL source.code.website="https://github.com/iqtree/iqtree2" | ||
LABEL license="https://github.com/iqtree/iqtree2/blob/master/LICENSE" | ||
LABEL maintainer="Jade Wang" | ||
LABEL maintainer.email="[email protected]" | ||
LABEL maintainer2="Erin Young" | ||
LABEL maintainer2.email="[email protected]" | ||
|
||
#install dependencies | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
wget ca-certificates procps && \ | ||
apt-get autoclean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# download, uncompress iqtree2 tarball; make /data | ||
RUN wget -q https://github.com/iqtree/iqtree2/releases/download/v.${IQTREE2_VER}/iqtree-${IQTREE2_VER}-Linux-intel.tar.gz && \ | ||
tar -xvf iqtree-${IQTREE2_VER}-Linux-intel.tar.gz && \ | ||
rm -v iqtree-${IQTREE2_VER}-Linux-intel.tar.gz && \ | ||
mkdir /data | ||
|
||
# set PATH and locale settings for singularity compatibility | ||
ENV PATH="/iqtree-${IQTREE2_VER}-Linux-intel/bin:${PATH}"\ | ||
LC_ALL=C | ||
|
||
# final working directory is /data | ||
WORKDIR /data | ||
|
||
# default command is to pull up help options | ||
CMD [ "iqtree2", "--help" ] | ||
|
||
FROM app as test | ||
|
||
ARG IQTREE2_VER | ||
|
||
# print version and help | ||
RUN iqtree2 --version && iqtree2 --help | ||
|
||
###TEST TREE TOPOLOGY | ||
RUN iqtree2 -s /iqtree-${IQTREE2_VER}-Linux-intel/example.phy --rate |
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,28 @@ | ||
# IQ-TREE2 container | ||
|
||
Main tool : [iqtree2](https://github.com/iqtree/iqtree2) | ||
|
||
Full documentation: [https://github.com/rrwick/Polypolish/wiki](http://www.iqtree.org/doc/) | ||
|
||
| Efficient and versatile phylogenomic software by maximum likelihood | ||
|
||
## Example Usage | ||
|
||
An example phylip file (IQ-TREE2 also supports other file formats such as FASTA, NEXUS, CLUSTALW) | ||
|
||
``` | ||
7 28 | ||
Frog AAATTTGGTCCTGTGATTCAGCAGTGAT | ||
Turtle CTTCCACACCCCAGGACTCAGCAGTGAT | ||
Bird CTACCACACCCCAGGACTCAGCAGTAAT | ||
Human CTACCACACCCCAGGAAACAGCAGTGAT | ||
Cow CTACCACACCCCAGGAAACAGCAGTGAC | ||
Whale CTACCACGCCCCAGGACACAGCAGTGAT | ||
Mouse CTACCACACCCCAGGACTCAGCAGTGAT | ||
``` | ||
|
||
Can be aligned with the following command: | ||
|
||
```bash | ||
iqtree2 -s example.phy --redo | ||
``` |