Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ To learn more about the docker pull rate limits and the open source software pro
| [ngmaster](https://hub.docker.com/r/staphb/ngmaster) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/ngmaster)](https://hub.docker.com/r/staphb/ngmaster) | <details><summary>Click to see all versions</summary> <ul><li>[0.5.8](./build-files/ngmaster/0.5.8/)</li><li>[1.0.0](./build-files/ngmaster/1.0.0/)</li></ul> </details> | https://github.com/MDU-PHL/ngmaster |
| [NCBI Datasets](https://hub.docker.com/r/staphb/ncbi-datasets) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/ncbi-datasets)](https://hub.docker.com/r/staphb/ncbi-datasets) | <details><summary> Click to see all versions </summary> <ul><li>[13.31.0](./build-files/ncbi-datasets/13.31.0/)</li><li>[13.35.0](./build-files/ncbi-datasets/13.35.0/)</li><li>[13.43.2](./build-files/ncbi-datasets/13.43.2/)</li><li>[14.0.0](./build-files/ncbi-datasets/14.0.0/)</li><li>[14.3.0](./build-files/ncbi-datasets/14.3.0/)</li><li>[14.7.0](./build-files/ncbi-datasets/14.7.0/)</li><li>[14.13.2](./build-files/ncbi-datasets/14.13.2/)</li><li>[14.20.0](./build-files/ncbi-datasets/14.20.0/)</li><li>[14.27.0](./build-files/ncbi-datasets/14.27.0/)</li><li>[15.1.0](./build-files/ncbi-datasets/15.1.0/)</li><li>[15.2.0](./build-files/ncbi-datasets/15.2.0/)</li><li>[15.11.0](./build-files/ncbi-datasets/15.11.0/)</li><li>[15.27.1](./build-files/ncbi-datasets/15.27.1/)</li><li>[15.31.0](./build-files/ncbi-datasets/15.31.1/)</li><li>[16.2.0](./build-files/ncbi-datasets/16.2.0/)</li><li>[16.8.1](./build-files/ncbi-datasets/16.8.1/)</li><li>[16.10.3](./build-files/ncbi-datasets/16.10.3/)</li><li>[16.15.0](./build-files/ncbi-datasets/16.15.0/)</li><li>[16.22.1](./build-files/ncbi-datasets/16.22.1/)</li><li>[16.30.0](./build-files/ncbi-datasets/16.30.0/)</li><li>[16.35.0](./build-files/ncbi-datasets/16.35.0/)</li><li>[16.38.1](./build-files/ncbi-datasets/16.38.1/)</li><li>[16.41.0](./build-files/ncbi-datasets/16.41.0/)</li><li>[18.0.2](./build-files/ncbi-datasets/18.0.2/)</li><li>[18.5.0](./build-files/ncbi-datasets/18.5.0/)</li><li>[18.7.0](./build-files/ncbi-datasets/18.7.0/)</li><li>[18.9.0](./build-files/ncbi-datasets/18.9.0/)</li></ul></details> | [https://github.com/ncbi/datasets](https://github.com/ncbi/datasets) <br/>[https://www.ncbi.nlm.nih.gov/datasets/docs/v2/](https://www.ncbi.nlm.nih.gov/datasets/docs/v2/) |
| [NCBI AMRFinderPlus](https://hub.docker.com/r/staphb/ncbi-amrfinderplus) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/ncbi-amrfinderplus)](https://hub.docker.com/r/staphb/ncbi-amrfinderplus) | <details><summary> Click to see all versions </summary> <ul><li>[3.1.1b](./build-files/ncbi-amrfinderplus/3.1.1b/)</li><li>[3.8.4](./build-files/ncbi-amrfinderplus/3.8.4/)</li><li>[3.8.28](./build-files/ncbi-amrfinderplus/3.8.28/)</li><li>[3.9.3](./build-files/ncbi-amrfinderplus/3.9.3/)</li><li>[3.9.8](./build-files/ncbi-amrfinderplus/3.9.8/)</li><li>[3.10.1](./build-files/ncbi-amrfinderplus/3.10.1/)</li><li>[3.10.5](./build-files/ncbi-amrfinderplus/3.10.5/)</li><li>[3.10.16](./build-files/ncbi-amrfinderplus/3.10.16/)</li><li>[3.10.20](./build-files/ncbi-amrfinderplus/3.10.20/)</li><li>[3.10.24](./build-files/ncbi-amrfinderplus/3.10.24/)</li><li>[3.10.30](./build-files/ncbi-amrfinderplus/3.10.30/)</li><li>[3.10.36](./build-files/ncbi-amrfinderplus/3.10.36)</li><li>[3.10.42](./build-files/ncbi-amrfinderplus/3.10.42/)</li><li>[3.11.2 & 2022-12-19.1](./build-files/ncbi-amrfinderplus/3.11.2/)</li><li>[3.11.2 & 2023-02-23.1](./build-file/ncbi-amrfinderplus/3.11.2-2023-02-23.1/)</li><li>[3.11.4 & 2023-02-23.1](./build-file/ncbi-amrfinderplus/3.11.4-2023-02-23.1/)</li></ul><ul><li>[3.11.8 & 2023-02-23.1](./build-files/ncbi-amrfinderplus/3.11.8-2023-02-23.1/)</li><li>[3.11.11 & 2023-04-17.1](./build-files/ncbi-amrfinderplus/3.11.11-2023-04-17.1)</li><li>[3.11.14 & 2023-04-17.1](./build-files/ncbi-amrfinderplus/3.11.14-2023-04-17.1/)</li><li>[3.11.17 & 2023-07-13.2](./build-files/ncbi-amrfinderplus/3.11.17-2023-07-13.2/)</li><li>[3.11.18 & 2023-08-08.2](./build-files/ncbi-amrfinderplus/3.11.18-2023-08-08.2/)</li><li>[3.11.20 & 2023-09-26.1](./build-files/ncbi-amrfinderplus/3.11.20-2023-09-26.1/)</li><li>[3.11.26 & 2023-11-15.1](./build-files/ncbi-amrfinderplus/3.11.26-2023-11-15.1/)</li><li>[3.12.8 & 2024-01-31.1](./build-files/ncbi-amrfinderplus/3.12.8-2024-01-31.1/)</li><li>[3.12.8 & 2024-05-02.2](./build-files/ncbi-amrfinderplus/3.12.8-2024-05-02.2/)</li><li>[3.12.8 & 2024-07-22.1](./build-files/ncbi-amrfinderplus/3.12.8-2024-07-22.1/)</li><li>[4.0.3 & 2024-10-22.1 (stxtyper now included)](./build-files/ncbi-amrfinderplus/4.0.3-2024-10-22.1/)</li><li>[4.0.3 & 2024-12-18.1](./build-files/ncbi-amrfinderplus/4.0.3-2024-12-18.1/)</li><li>[4.0.15 & 2024-12-18.1](./build-files/ncbi-amrfinderplus/4.0.15-2024-12-18.1/)</li><li>[4.0.19 & 2024-12-18.1](./build-files/ncbi-amrfinderplus/4.0.19-2024-12-18.1/)</li><li>[4.0.22 & 2025-03-25.1](./build-files/ncbi-amrfinderplus/4.0.22-2025-03-25.1/)</li><li>[4.0.23-2025-06-03.1](./build-files/ncbi-amrfinderplus/4.0.23-2025-06-03.1/)</li><li>[4.0.23-2025-07-16.1](./build-files/ncbi-amrfinderplus/4.0.23-2025-07-16.1/)</li><li>[4.2.5-2025-12-03.1](./build-files/ncbi-amrfinderplus/4.2.5-2025-12-03.1/)</li></ul> </details> | [https://github.com/ncbi/amr](https://github.com/ncbi/amr) |
| [NCBI table2asn](https://hub.docker.com/r/staphb/ncbi-table2asn) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/ncbi-table2asn)](https://hub.docker.com/r/staphb/ncbi-table2asn) | <details><summary>Click to see all versions</summary> <ul><li>[1.26.678](./build-files/ncbi-table2asn/1.26.678/)</li><li>[1.28.943](./build-files/ncbi-table2asn/1.28.943/)</li><li>[1.28.1021](./build-files/ncbi-table2asn/1.28.1021/)</li><li>[1.28.1094](./build-files/ncbi-table2asn/1.28.1094/)</li><li>[1.29.1151](./build-files/ncbi-table2asn/1.29.1151/)</li></ul> </details> | [https://www.ncbi.nlm.nih.gov/genbank/table2asn/](https://www.ncbi.nlm.nih.gov/genbank/table2asn/) <br/>[https://ftp.ncbi.nlm.nih.gov/asn1-converters/versions/2022-06-14/by_program/table2asn/](https://ftp.ncbi.nlm.nih.gov/asn1-converters/versions/2022-06-14/by_program/table2asn/) |
| [NCBI table2asn](https://hub.docker.com/r/staphb/ncbi-table2asn) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/ncbi-table2asn)](https://hub.docker.com/r/staphb/ncbi-table2asn) | <details><summary>Click to see all versions</summary> <ul><li>[1.26.678](./build-files/ncbi-table2asn/1.26.678/)</li><li>[1.28.943](./build-files/ncbi-table2asn/1.28.943/)</li><li>[1.28.1021](./build-files/ncbi-table2asn/1.28.1021/)</li><li>[1.28.1094](./build-files/ncbi-table2asn/1.28.1094/)</li><li>[1.29.1151](./build-files/ncbi-table2asn/1.29.1151/)</li><li>[1.29.324](./build-files/ncbi-table2asn/1.29.324/)</li></ul> </details> | [https://www.ncbi.nlm.nih.gov/genbank/table2asn/](https://www.ncbi.nlm.nih.gov/genbank/table2asn/) <br/>[https://ftp.ncbi.nlm.nih.gov/asn1-converters/versions/2022-06-14/by_program/table2asn/](https://ftp.ncbi.nlm.nih.gov/asn1-converters/versions/2022-06-14/by_program/table2asn/) |
| [ONTime](https://hub.docker.com/r/staphb/ontime) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/ontime)](https://hub.docker.com/r/staphb/ontime) | <details><summary>Click to see all versions</summary> <ul><li>[0.2.3](./build-files/ontime/0.2.3/)</li><li>[0.3.1](./build-files/ontime/0.3.1/)</li></ul> </details> | https://github.com/mbhall88/ontime |
| [OrthoFinder](https://hub.docker.com/r/staphb/orthofinder) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/orthofinder)](https://hub.docker.com/r/staphb/orthofinder) | <details><summary>Click to see all versions</summary> <ul><li>[2.17](./build-files/orthofinder/2.17/)</li><li>[2.5.5](./build-files/orthofinder/2.5.5/)</li><li>[3.0.1b1](./build-files/orthofinder/3.0.1b1/)</li></ul> </details> | https://github.com/davidemms/OrthoFinder |
| [Panaroo](https://hub.docker.com/r/staphb/panaroo) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/panaroo)](https://hub.docker.com/r/staphb/panaroo) | <details><summary>Click to see all versions</summary> <ul><li>[1.2.10](./build-files/panaroo/1.2.10/)</li><li>[1.3.4](./build-files/panaroo/1.3.4/)</li><li>[1.5.0](./build-files/panaroo/1.5.0/)</li><li>[1.5.1](./build-files/panaroo/1.5.1/)</li><li>[1.5.2](./build-files/panaroo/1.5.2/)</li></ul>| https://github.com/gtonkinhill/panaroo |
Expand Down
78 changes: 78 additions & 0 deletions build-files/ncbi-table2asn/1.29.324/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
ARG RELEASE_DATE="2025-09-16"

FROM ubuntu:jammy AS app

# The directory structure is by date as opposed to version.
# A list of software versions should be found at a location similar to https://ftp.ncbi.nlm.nih.gov/asn1-converters/versions/CURRENT/documentation/VERSIONS
ARG TABLE2ASN_VER="1.29.324"
ARG RELEASE_DATE

LABEL base.image="ubuntu:jammy"
LABEL dockerfile.version="1"
LABEL software="NCBI's table2asn"
LABEL software.version="${TABLE2ASN_VER}"
LABEL description="Converts files of various formats to ASN.1"
LABEL website="https://www.ncbi.nlm.nih.gov/genbank/table2asn/"
LABEL license="unknown"
LABEL maintainer="Sage Wright"
LABEL maintainer.email="[email protected]"

RUN apt-get update && apt-get install -y --no-install-recommends \
wget \
ca-certificates \
gzip \
libidn12 \
libsqlite3-0 && \
apt-get autoclean && rm -rf /var/lib/apt/lists/* && \
ln -s /usr/lib/x86_64-linux-gnu/libidn.so.12 /usr/lib/x86_64-linux-gnu/libidn.so.11

WORKDIR /usr/local/bin

ENV STAPHB_TOOLS="agp_validate \
asn2all \
asn2asn \
asn2fasta \
asn2flat \
asn2fsa \
asn2gb \
asn2idx \
asn2xml \
asndisc \
asnmacro \
asnval \
asnvalidate \
gap_stats \
gene2xml \
insdseqget \
sbtedit \
sqn2agp \
srcchk \
table2asn "

RUN for tool in ${STAPHB_TOOLS} ; do \
echo "Downloading ${tool}" && \
wget -q https://ftp.ncbi.nlm.nih.gov/asn1-converters/versions/${RELEASE_DATE}/by_program/${tool}/linux64.${tool}.gz && \
gunzip linux64.${tool}.gz && \
mv linux64.${tool} ${tool} && \
chmod +x ${tool} ; done

ENV LC_ALL=C

CMD ["table2asn", "-help"]

WORKDIR /data

FROM app AS test

ARG RELEASE_DATE

# NOTE: Not all of these tools support the '-help' or '-version flag'
# This ensures that all tools are in $PATH and executable
RUN for tool in ${STAPHB_TOOLS} ; do echo "Checking ${tool}" && ${tool} -help && ${tool} -version ; done

WORKDIR /test

RUN wget https://ftp.ncbi.nlm.nih.gov/asn1-converters/versions/${RELEASE_DATE}/documentation/short.fsa && \
wget https://ftp.ncbi.nlm.nih.gov/asn1-converters/versions/${RELEASE_DATE}/documentation/SubmissionTemplate.sbt && \
table2asn -i short.fsa && \
table2asn -t SubmissionTemplate.sbt -i short.fsa -o helicase.sqn
47 changes: 47 additions & 0 deletions build-files/ncbi-table2asn/1.29.324/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# NCBI table2asn

Main tool : [table2asn](https://www.ncbi.nlm.nih.gov/genbank/table2asn/)

Full documentation: [README](https://ftp.ncbi.nlm.nih.gov/asn1-converters/by_program/table2asn/DOCUMENTATION/table2asn_readme.txt)

> table2asn is a command-line program that creates sequence records for submission to GenBank

There are also a collection of related tools that are included in the image

```
agp_validate: 2.29.324
asn2all 14.7
asn2asn: 1.29.324
asn2fasta: 1.29.324
asn2flat: 6.29.324
asn2fsa 6.1
asn2gb 18.7
asn2idx 1.1
asn2xml 1.0
asndisc 2.3
asnmacro 1.8
asnval 15.7
asnvalidate: 3.29.324
gap_stats: 4.2.324 (MSS tools matrix (auto-generated))
gene2xml 1.6
insdseqget 1.1
sqn2agp 1.9
srcchk: 1.29.324
table2asn: 1.29.324
```

## Example Usage

```bash
# Single non-genome submission: a particular .fsa file, and only 1 sequence in the .fsa file and the source information is in the definition line of the .fsa file:
table2asn -t template.sbt -i x.fsa -V v

# Batch non-genome submission: a directory that contains .fsa files, and multiple sequences per file, and the source information is in the definition line of the .fsa files:
table2asn -t template.sbt -indir path_to_files -a s -V v

# Genome submission: a directory that contains multiple .fsa files of a single genome, and one or more sequences per file and the source information is in the definition line of the .fsa files:
table2asn -t template.sbt -indir path_to_files -M n -Z

# Genome submission for the most common gapped situation (= runs of 10 or more Ns represent a gap, and there are no gaps of completely unknown size, and the evidence for linkage across the gaps is "paired-ends"), and the source information is in the definition line of the .fsa files:
table2asn -t template -indir path_to_files -M n -Z -gaps-min 10 -l paired-ends
```