-
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.
Merge pull request #806 from Kincekara/ispcr
adds isPcr
- Loading branch information
Showing
4 changed files
with
88 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,57 @@ | ||
ARG ISPCR_VER="33" | ||
|
||
## Builder ## | ||
FROM ubuntu:jammy as builder | ||
|
||
ARG ISPCR_VER | ||
ARG MACHTYPE="x86_64-pc-linux-gnu" | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
wget \ | ||
unzip | ||
|
||
RUN wget https://hgwdev.gi.ucsc.edu/~kent/src/isPcr${ISPCR_VER}.zip &&\ | ||
unzip isPcr${ISPCR_VER}.zip &&\ | ||
cd isPcrSrc &&\ | ||
sed -i 's/-Werror//g' inc/common.mk &&\ | ||
mkdir -p bin/$MACHTYPE &&\ | ||
mkdir -p lib/$MACHTYPE &&\ | ||
make HOME=$PWD MACHTYPE=${MACHTYPE} C_INCLUDE_PATH=/usr/include LIBRARY_PATH=/usr/lib CFLAGS="-fcommon" &&\ | ||
mv bin/$MACHTYPE/* /usr/local/bin/ | ||
|
||
## App ## | ||
FROM ubuntu:jammy as app | ||
|
||
ARG ISPCR_VER | ||
|
||
LABEL base.image="ubuntu:jammy" | ||
LABEL dockerfile.version="1" | ||
LABEL software="isPcr" | ||
LABEL software.version="${ISPCR_VER}" | ||
LABEL description="In-Slico PCR" | ||
LABEL website="https://users.soe.ucsc.edu/~kent/" | ||
LABEL license="All modules are copyright 2000-2004 by Jim Kent. License is hereby granted for personal, academic, and non-profit use." | ||
LABEL maintainer="Kutluhan Incekara" | ||
LABEL maintainer.email="[email protected]" | ||
|
||
COPY --from=builder /usr/local/bin/* /usr/local/bin/ | ||
|
||
ENV LC_ALL=C | ||
|
||
CMD [ "isPcr" ] | ||
|
||
WORKDIR /data | ||
|
||
## Test ## | ||
FROM app as test | ||
|
||
# prepare inputs | ||
RUN apt-get update && apt-get install -y wget &&\ | ||
wget https://hgdownload.soe.ucsc.edu/goldenPath/wuhCor1/bigZips/wuhCor1.fa.gz &&\ | ||
gunzip wuhCor1.fa.gz &&\ | ||
echo "orf1a CTAGGACCTCTTTCTGCTCA ACACTCTCCTAGCACCATCA" > primers | ||
|
||
# run a test | ||
RUN isPcr wuhCor1.fa primers stdout | ||
|
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,29 @@ | ||
# isPcr container | ||
|
||
Main tool: [isPcr](https://users.soe.ucsc.edu/~kent/) | ||
|
||
Code repository: https://hgwdev.gi.ucsc.edu/~kent/src/ | ||
|
||
Basic information on how to use this tool: | ||
- executable: isPcr | ||
- help: | ||
- version: | ||
- description: In-Slico PCR | ||
|
||
Additional information: | ||
|
||
``` | ||
usage: | ||
isPcr database query output | ||
where database is a fasta, nib, or twoBit file or a text file containing | ||
a list of these files, query is a text file file containing three columns: name, | ||
forward primer, and reverse primer, and output is where the results go. | ||
The names 'stdin' and 'stdout' can be used as file names to make using the | ||
program in pipes easier. | ||
``` | ||
|
||
## Example Usage | ||
|
||
```bash | ||
isPcr template.fa primers.txt output | ||
``` |