Skip to content

Commit 9981863

Browse files
authored
adding lima version 2.12.0 (#1147)
* adding lima version 2.12.0 * Update README.md * Rename lima/2.12.0-Rscripts/Dockerfile to build-files/lima/2.12.0-Rscripts/Dockerfile * Rename lima/2.12.0-Rscripts/README.md to build-files/lima/2.12.0-Rscripts/README.md * Rename lima/2.12.0/Dockerfile to build-files/lima/2.12.0/Dockerfile * Rename lima/2.12.0/README.md to build-files/lima/2.12.0/README.md
1 parent 1420679 commit 9981863

File tree

5 files changed

+169
-1
lines changed

5 files changed

+169
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ To learn more about the docker pull rate limits and the open source software pro
210210
| [label](https://hub.docker.com/r/staphb/label/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/label)](https://hub.docker.com/r/staphb/label)| <ul><li>[0.6.4](./label/0.6.4/)</li></ul> | https://wonder.cdc.gov/amd/flu/label |
211211
| [legsta](https://hub.docker.com/r/staphb/legsta/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/legsta)](https://hub.docker.com/r/staphb/legsta)| <ul><li>0.3.7</li><li>0.5.1</li></ul> | https://github.com/tseemann/legsta |
212212
| [liftoff](https://hub.docker.com/r/staphb/liftoff/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/liftoff)](https://hub.docker.com/r/staphb/liftoff)| <ul><li>1.6.3</li></ul> | https://github.com/agshumate/Liftoff |
213-
| [lima](https://hub.docker.com/r/staphb/lima/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/lima)](https://hub.docker.com/r/staphb/lima)| <ul><li>[2.9.0](./lima/2.9.0/)</li><li>[2.9.0+Rscripts](./lima/2.9.0+Rscripts/)</li></ul> | https://github.com/PacificBiosciences/barcoding |
213+
| [lima](https://hub.docker.com/r/staphb/lima/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/lima)](https://hub.docker.com/r/staphb/lima)| <ul><li>[2.9.0](./build-files/lima/2.9.0/)</li><li>[2.9.0-Rscripts](./build-files/lima/2.9.0-Rscripts/)</li><li>[2.12.0](./build-files/lima/2.12.0/)</li><li>[2.12.0-Rscripts](./build-files/lima/2.12.0-Rscripts/)</li></ul> | https://github.com/PacificBiosciences/barcoding |
214214
| [longshot](https://hub.docker.com/r/staphb/longshot/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/longshot)](https://hub.docker.com/r/staphb/longshot)| <ul><li>[0.4.5](longshot/0.4.5)</li><li>[1.0.0](longshot/1.0.0/)</li></ul> | https://github.com/pjedge/longshot |
215215
| [lrge](https://hub.docker.com/r/staphb/lrge/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/lrge)](https://hub.docker.com/r/staphb/lrge)| <ul><li>[0.1.3](./lrge/0.1.3/)</li></ul> | https://github.com/mbhall88/lrge |
216216
| [Lyve-SET (includes CG-Pipeline scripts and raxml)](https://hub.docker.com/r/staphb/lyveset/) <br/> [![docker pulls](https://badgen.net/docker/pulls/staphb/lyveset)](https://hub.docker.com/r/staphb/lyveset) | <ul><li>1.1.4f</li><li>2.0.1</li></ul> | https://github.com/lskatz/lyve-SET https://github.com/lskatz/CG-Pipeline |
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
ARG LIMA_VER="2.12.0"
2+
3+
## Builder ##
4+
FROM ubuntu:jammy AS builder
5+
6+
ARG LIMA_VER
7+
ARG DEBIAN_FRONTEND=noninteractive
8+
9+
RUN apt-get update && apt-get install -y \
10+
wget \
11+
build-essential \
12+
gfortran \
13+
r-base
14+
15+
# build required R packages
16+
RUN R -e "install.packages(c('ggplot2', 'dplyr', 'tidyr' ,'viridis', 'scales', 'data.table', 'hexbin'), quietly = TRUE, warn.conflicts = FALSE, repos = 'http://cran.us.r-project.org')"
17+
18+
# Rscripts
19+
RUN wget -P /usr/local/bin/ https://github.com/PacificBiosciences/barcoding/raw/master/scripts/r/report_summary.R \
20+
https://github.com/PacificBiosciences/barcoding/raw/master/scripts/r/report_detail.R &&\
21+
chmod +x /usr/local/bin/report_summary.R /usr/local/bin/report_detail.R
22+
23+
## App ##
24+
FROM ubuntu:jammy AS app
25+
26+
ARG LIMA_VER
27+
28+
LABEL base.image="ubuntu:jammy"
29+
LABEL dockerfile.version="1"
30+
LABEL software="Lima"
31+
LABEL software.version="${LIMA_VER}"
32+
LABEL description="The PacBio Barcode Demultiplixer & Primer Remover"
33+
LABEL website="https://github.com/PacificBiosciences/barcoding"
34+
LABEL license="https://github.com/PacificBiosciences/barcoding/blob/master/LICENSE"
35+
LABEL maintainer="Kutluhan Incekara"
36+
LABEL maintainer.email="kutluhan.incekara@ct.gov"
37+
38+
RUN apt-get update && apt-get install --no-install-recommends -y \
39+
wget \
40+
r-base &&\
41+
apt-get autoclean && rm -rf /var/lib/apt/lists/*
42+
43+
COPY --from=builder /usr/local/lib/R/site-library/ /usr/local/lib/R/site-library/
44+
COPY --from=builder /usr/local/bin/ /usr/local/bin/
45+
46+
RUN wget https://github.com/PacificBiosciences/barcoding/releases/download/v${LIMA_VER}/lima.tar.gz &&\
47+
tar -C /usr/local/bin -xvf lima.tar.gz &&\
48+
rm lima.tar.gz
49+
50+
ENV LC_ALL=C
51+
52+
CMD lima -h && lima-undo -h
53+
54+
WORKDIR /data
55+
56+
FROM app AS test
57+
58+
RUN lima -h && lima-undo -h
59+
60+
# download test files
61+
RUN wget -q https://downloads.pacbcloud.com/public/dataset/HiFiViral/Jan_2022/HiFiViral_Barcoded_M13_Primer_Plate.fasta \
62+
https://downloads.pacbcloud.com/public/dataset/HiFiViral/Jan_2022/InqabaOmicronSamples_Barcoded_Sample.csv \
63+
https://downloads.pacbcloud.com/public/dataset/HiFiViral/Jan_2022/m64187e_211217_130958.hifi_reads.bam
64+
# run test
65+
RUN lima m64187e_211217_130958.hifi_reads.bam HiFiViral_Barcoded_M13_Primer_Plate.fasta demux.hifi.bam --biosample-csv InqabaOmicronSamples_Barcoded_Sample.csv --hifi-preset ASYMMETRIC &&\
66+
cat demux.hifi.lima.summary
67+
68+
RUN report_summary.R demux.hifi.lima.report &&\
69+
ls | grep png
70+
71+
72+
73+
74+
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Lima container with Rscripts
2+
3+
Main tool: [lima](https://lima.how/)
4+
5+
Code repository: https://github.com/PacificBiosciences/barcoding
6+
7+
Additional tools:
8+
- report_detail.R
9+
- report_summary.R
10+
11+
Basic information on how to use this tool:
12+
- executables: lima, lima-undo
13+
- help: -h
14+
- version: --version
15+
- description: lima is the standard tool to identify barcode and primer sequences in PacBio single-molecule sequencing data.
16+
17+
Additional information:
18+
19+
This container includes two Rscripts that can visualize various metrics from the lima report.
20+
21+
Full documentation: https://lima.how/
22+
23+
## Example Usage
24+
```bash
25+
lima [options] <INPUT.bam|xml|fa|fq|gz> <BARCODES.fa> <OUTPUT.bam|xml|fa|fq|gz>
26+
27+
report_summry.R lima.report
28+
29+
report_detail.R lima.report [pdf|png] [barcode_pair_names]
30+
```
31+

build-files/lima/2.12.0/Dockerfile

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
FROM ubuntu:jammy AS app
2+
3+
ARG LIMA_VER="2.12.0"
4+
5+
LABEL base.image="ubuntu:jammy"
6+
LABEL dockerfile.version="1"
7+
LABEL software="Lima"
8+
LABEL software.version="${LIMA_VER}"
9+
LABEL description="The PacBio Barcode Demultiplixer & Primer Remover"
10+
LABEL website="https://github.com/PacificBiosciences/barcoding"
11+
LABEL license="https://github.com/PacificBiosciences/barcoding/blob/master/LICENSE"
12+
LABEL maintainer="Kutluhan Incekara"
13+
LABEL maintainer.email="kutluhan.incekara@ct.gov"
14+
15+
RUN apt-get update && apt-get install --no-install-recommends -y \
16+
wget &&\
17+
apt-get autoclean && rm -rf /var/lib/apt/lists/*
18+
19+
RUN wget --no-check-certificate https://github.com/PacificBiosciences/barcoding/releases/download/v${LIMA_VER}/lima.tar.gz &&\
20+
tar -C /usr/local/bin -xvf lima.tar.gz &&\
21+
rm lima.tar.gz
22+
23+
ENV LC_ALL=C
24+
25+
CMD lima -h && lima-undo -h
26+
27+
WORKDIR /data
28+
29+
FROM app AS test
30+
31+
RUN lima -h && lima-undo -h
32+
33+
# download test files
34+
RUN wget -q --no-check-certificate https://downloads.pacbcloud.com/public/dataset/HiFiViral/Jan_2022/HiFiViral_Barcoded_M13_Primer_Plate.fasta \
35+
https://downloads.pacbcloud.com/public/dataset/HiFiViral/Jan_2022/InqabaOmicronSamples_Barcoded_Sample.csv \
36+
https://downloads.pacbcloud.com/public/dataset/HiFiViral/Jan_2022/m64187e_211217_130958.hifi_reads.bam
37+
38+
# run test
39+
RUN lima m64187e_211217_130958.hifi_reads.bam HiFiViral_Barcoded_M13_Primer_Plate.fasta demux.hifi.bam --biosample-csv InqabaOmicronSamples_Barcoded_Sample.csv --hifi-preset ASYMMETRIC &&\
40+
cat demux.hifi.lima.summary
41+
42+
43+
44+
45+

build-files/lima/2.12.0/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Lima container
2+
3+
Main tool: [lima](https://lima.how/)
4+
5+
Code repository: https://github.com/PacificBiosciences/barcoding
6+
7+
Basic information on how to use this tool:
8+
- executables: lima, lima-undo
9+
- help: -h
10+
- version: --version
11+
- description: lima is the standard tool to identify barcode and primer sequences in PacBio single-molecule sequencing data.
12+
13+
Full documentation: https://lima.how/
14+
15+
## Example Usage
16+
```bash
17+
lima [options] <INPUT.bam|xml|fa|fq|gz> <BARCODES.fa> <OUTPUT.bam|xml|fa|fq|gz>
18+
```

0 commit comments

Comments
 (0)