Skip to content

Commit 775f24e

Browse files
authored
adding table2asn version 1.29.324 (#1511)
* adding table2asn version 1.29.324 * Revise comments in Dockerfile for clarity Updated comments to clarify versioning and directory structure. * Update README.md
1 parent a10d56c commit 775f24e

File tree

3 files changed

+126
-1
lines changed

3 files changed

+126
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ To learn more about the docker pull rate limits and the open source software pro
244244
| [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 |
245245
| [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><li>[18.13.0](./build-files/ncbi-datasets/18.13.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/) |
246246
| [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) |
247-
| [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/) |
247+
| [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/) |
248248
| [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 |
249249
| [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 |
250250
| [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 |
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
ARG RELEASE_DATE="2025-09-16"
2+
3+
FROM ubuntu:jammy AS app
4+
5+
# The directory structure is by date as opposed to version.
6+
# 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
7+
ARG TABLE2ASN_VER="1.29.324"
8+
ARG RELEASE_DATE
9+
10+
LABEL base.image="ubuntu:jammy"
11+
LABEL dockerfile.version="1"
12+
LABEL software="NCBI's table2asn"
13+
LABEL software.version="${TABLE2ASN_VER}"
14+
LABEL description="Converts files of various formats to ASN.1"
15+
LABEL website="https://www.ncbi.nlm.nih.gov/genbank/table2asn/"
16+
LABEL license="unknown"
17+
LABEL maintainer="Sage Wright"
18+
LABEL maintainer.email="[email protected]"
19+
20+
RUN apt-get update && apt-get install -y --no-install-recommends \
21+
wget \
22+
ca-certificates \
23+
gzip \
24+
libidn12 \
25+
libsqlite3-0 && \
26+
apt-get autoclean && rm -rf /var/lib/apt/lists/* && \
27+
ln -s /usr/lib/x86_64-linux-gnu/libidn.so.12 /usr/lib/x86_64-linux-gnu/libidn.so.11
28+
29+
WORKDIR /usr/local/bin
30+
31+
ENV STAPHB_TOOLS="agp_validate \
32+
asn2all \
33+
asn2asn \
34+
asn2fasta \
35+
asn2flat \
36+
asn2fsa \
37+
asn2gb \
38+
asn2idx \
39+
asn2xml \
40+
asndisc \
41+
asnmacro \
42+
asnval \
43+
asnvalidate \
44+
gap_stats \
45+
gene2xml \
46+
insdseqget \
47+
sbtedit \
48+
sqn2agp \
49+
srcchk \
50+
table2asn "
51+
52+
RUN for tool in ${STAPHB_TOOLS} ; do \
53+
echo "Downloading ${tool}" && \
54+
wget -q https://ftp.ncbi.nlm.nih.gov/asn1-converters/versions/${RELEASE_DATE}/by_program/${tool}/linux64.${tool}.gz && \
55+
gunzip linux64.${tool}.gz && \
56+
mv linux64.${tool} ${tool} && \
57+
chmod +x ${tool} ; done
58+
59+
ENV LC_ALL=C
60+
61+
CMD ["table2asn", "-help"]
62+
63+
WORKDIR /data
64+
65+
FROM app AS test
66+
67+
ARG RELEASE_DATE
68+
69+
# NOTE: Not all of these tools support the '-help' or '-version flag'
70+
# This ensures that all tools are in $PATH and executable
71+
RUN for tool in ${STAPHB_TOOLS} ; do echo "Checking ${tool}" && ${tool} -help && ${tool} -version ; done
72+
73+
WORKDIR /test
74+
75+
RUN wget https://ftp.ncbi.nlm.nih.gov/asn1-converters/versions/${RELEASE_DATE}/documentation/short.fsa && \
76+
wget https://ftp.ncbi.nlm.nih.gov/asn1-converters/versions/${RELEASE_DATE}/documentation/SubmissionTemplate.sbt && \
77+
table2asn -i short.fsa && \
78+
table2asn -t SubmissionTemplate.sbt -i short.fsa -o helicase.sqn
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# NCBI table2asn
2+
3+
Main tool : [table2asn](https://www.ncbi.nlm.nih.gov/genbank/table2asn/)
4+
5+
Full documentation: [README](https://ftp.ncbi.nlm.nih.gov/asn1-converters/by_program/table2asn/DOCUMENTATION/table2asn_readme.txt)
6+
7+
> table2asn is a command-line program that creates sequence records for submission to GenBank
8+
9+
There are also a collection of related tools that are included in the image
10+
11+
```
12+
agp_validate: 2.29.324
13+
asn2all 14.7
14+
asn2asn: 1.29.324
15+
asn2fasta: 1.29.324
16+
asn2flat: 6.29.324
17+
asn2fsa 6.1
18+
asn2gb 18.7
19+
asn2idx 1.1
20+
asn2xml 1.0
21+
asndisc 2.3
22+
asnmacro 1.8
23+
asnval 15.7
24+
asnvalidate: 3.29.324
25+
gap_stats: 4.2.324 (MSS tools matrix (auto-generated))
26+
gene2xml 1.6
27+
insdseqget 1.1
28+
sqn2agp 1.9
29+
srcchk: 1.29.324
30+
table2asn: 1.29.324
31+
```
32+
33+
## Example Usage
34+
35+
```bash
36+
# 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:
37+
table2asn -t template.sbt -i x.fsa -V v
38+
39+
# 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:
40+
table2asn -t template.sbt -indir path_to_files -a s -V v
41+
42+
# 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:
43+
table2asn -t template.sbt -indir path_to_files -M n -Z
44+
45+
# 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:
46+
table2asn -t template -indir path_to_files -M n -Z -gaps-min 10 -l paired-ends
47+
```

0 commit comments

Comments
 (0)