-
Notifications
You must be signed in to change notification settings - Fork 126
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
90 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,53 @@ | ||
FROM ubuntu:jammy as app | ||
|
||
# ARG sets environment variables during the build stage | ||
ARG SEQKIT_VER="2.8.2" | ||
|
||
# LABEL instructions tag the image with metadata that might be important to the user | ||
# Optional, but highly recommended | ||
LABEL base.image="ubuntu:jammy" | ||
LABEL dockerfile.version="1" | ||
LABEL software="SeqKit" | ||
LABEL software.version=${SEQKIT_VER} | ||
LABEL description="SeqKit - a cross-platform and ultrafast toolkit for FASTA/Q file manipulation" | ||
LABEL website="https://github.com/shenwei356/seqkit" | ||
LABEL license="https://github.com/shenwei356/seqkit/blob/master/LICENSE" | ||
LABEL maintainer="Henry Kunerth" | ||
LABEL maintainer.email="[email protected]" | ||
LABEL maintainer2="Erin Young" | ||
LABEL maintainer2.email="[email protected]" | ||
|
||
# Install dependences (update as needed) | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
wget \ | ||
ca-certificates \ | ||
procps \ | ||
unzip && \ | ||
apt-get autoclean && rm -rf /var/lib/apt/lists/* | ||
|
||
# download SEQKIT and organize directories | ||
RUN wget -q https://github.com/shenwei356/seqkit/releases/download/v${SEQKIT_VER}/seqkit_linux_amd64.tar.gz && \ | ||
tar -xzf seqkit_linux_amd64.tar.gz && \ | ||
mv seqkit /usr/local/bin/. && \ | ||
rm seqkit_linux_amd64.tar.gz && \ | ||
mkdir /data | ||
|
||
# singularity compatibility | ||
ENV LC_ALL=C | ||
|
||
CMD seqkit --help | ||
|
||
# WORKDIR sets working directory | ||
WORKDIR /data | ||
|
||
# A second FROM insruction creates a new stage | ||
# We use `test` for the test image | ||
FROM app as test | ||
|
||
WORKDIR /test | ||
|
||
RUN seqkit --help | ||
|
||
#download test .fasta and check that SEQKIT can run to generate stats | ||
RUN wget -q https://raw.githubusercontent.com/StaPH-B/docker-builds/master/tests/SARS-CoV-2/SRR13957123.consensus.fa && \ | ||
seqkit stat * |
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,36 @@ | ||
# SeqKit container | ||
|
||
Main tool : [SeqKit](https://github.com/shenwei356/seqkit) | ||
|
||
SeqKit is a cross-platform and ultrafast toolkit for FASTA/Q file manipulation. | ||
|
||
Citation: | ||
|
||
W Shen, S Le, Y Li*, F Hu*. SeqKit: a cross-platform and ultrafast toolkit for FASTA/Q file manipulation. PLOS ONE. doi:10.1371/journal.pone.0163962. | ||
|
||
|
||
- **Documents:** [http://bioinf.shenwei.me/seqkit](http://bioinf.shenwei.me/seqkit) | ||
([**Usage**](http://bioinf.shenwei.me/seqkit/usage/), | ||
[**FAQ**](http://bioinf.shenwei.me/seqkit/faq/), | ||
[**Tutorial**](http://bioinf.shenwei.me/seqkit/tutorial/), | ||
and | ||
[**Benchmark**](http://bioinf.shenwei.me/seqkit/benchmark/)) | ||
|
||
## Example Usage | ||
|
||
```bash | ||
# get simple statistics from FASTA/Q files | ||
|
||
seqkit stats <file name(s)> | ||
|
||
# or with flags | ||
|
||
seqkit stats --all --tabular <file name(s)> | ||
|
||
# conversion from FASTA to FASTQ | ||
|
||
seqkit fa2fq <file name(s)> | ||
|
||
|
||
|
||
``` |