-
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.
Merge pull request #969 from dhatribadri/dhatri-docker-builds
Adding samclip tool version 0.4.0
- Loading branch information
Showing
4 changed files
with
74 additions
and
0 deletions.
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
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,50 @@ | ||
ARG SAMCLIP_VER="0.4.0" | ||
|
||
FROM ubuntu:jammy as app | ||
|
||
ARG SAMCLIP_VER | ||
|
||
LABEL base.image="ubuntu:jammy" | ||
LABEL dockerfile.version="1" | ||
LABEL software="samclip" | ||
LABEL software.version="${SAMCLIP_VER}" | ||
LABEL description="Samclip: filter SAM file for soft and hard clipped alignments" | ||
LABEL website="https://github.com/tseemann/samclip" | ||
LABEL license="https://github.com/tseemann/samclip/blob/master/LICENSE" | ||
LABEL maintainer="Dhatri Badri" | ||
LABEL maintainer.email="[email protected]" | ||
|
||
# install dependencies | ||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
wget \ | ||
software-properties-common \ | ||
perl && \ | ||
apt-get autoclean && rm -rf /var/lib/apt/lists/* | ||
|
||
# install samclip | ||
RUN wget https://github.com/tseemann/samclip/archive/refs/tags/v${SAMCLIP_VER}.tar.gz && \ | ||
tar -xvf v${SAMCLIP_VER}.tar.gz && \ | ||
rm v${SAMCLIP_VER}.tar.gz && \ | ||
chmod +x /samclip-${SAMCLIP_VER}/samclip && \ | ||
mkdir /data | ||
|
||
ENV PATH="${PATH}:/samclip-${SAMCLIP_VER}/" \ | ||
LC_ALL=C | ||
|
||
CMD [ "samclip", "--help" ] | ||
|
||
WORKDIR /data | ||
|
||
FROM app as test | ||
|
||
RUN samclip --help && \ | ||
samclip --version | ||
|
||
WORKDIR /test | ||
|
||
# Run test using samclip executable | ||
RUN wget https://raw.githubusercontent.com/tseemann/samclip/master/test.fna && \ | ||
wget https://raw.githubusercontent.com/tseemann/samclip/master/test.sam && \ | ||
wget https://raw.githubusercontent.com/tseemann/samclip/master/test.fna.fai && \ | ||
samclip --ref test.fna < test.sam > out.sam |
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,22 @@ | ||
# Samclip container | ||
|
||
Main tool: [samclip](https://github.com/tseemann/samclip) | ||
|
||
Basic information on how to use this tool: | ||
- executable: ./samclip | ||
- help: -h, --help | ||
- version: -V, --version | ||
- description: Filter SAM file for soft and hard clipped alignments | ||
|
||
## Example Usage | ||
|
||
Basic command to clip ends of reads | ||
```bash | ||
samclip --ref ref.fa < in.sam > out.sam | ||
``` | ||
|
||
Integrate samclip with other tools like bwa and samtools | ||
```bash | ||
bwa mem ref.fa R1.fq R2.fq | samclip --ref ref.fa | samtools sort > out.bam | ||
``` | ||
|