-
Notifications
You must be signed in to change notification settings - Fork 0
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
9 changed files
with
173 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM quay.io/biocontainers/fastqc:0.12.1--0 | ||
|
||
LABEL "MAINTAINER"="icaoberg" | ||
LABEL "EMAIL"="icaoberg@psc.edu" | ||
LABEL "SUPPORT"="help@psc.edu" | ||
LABEL "REPOSITORY"="http://github.com/pscedu/singularity-fastqc" | ||
LABEL "COPYRIGHT"="Copyright © 2021-2023 Pittsburgh Supercomputing Center. All Rights Reserved." | ||
LABEL "VERSION"="0.12.1" | ||
|
||
ENV LC_ALL C.UTF-8 | ||
RUN locale |
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,32 @@ | ||
# README | ||
## About | ||
Source code repository can be found [here](https://www.bioinformatics.babraham.ac.uk/projects/fastqc/). | ||
|
||
## Building the container for Bridges (or similar) | ||
There is no need to build a container, because an image is already available from the Galaxy project, hence all you need to do is run | ||
|
||
``` | ||
bash ./pull.sh | ||
``` | ||
|
||
## Installing the container on Bridges (or similar) | ||
Copy the | ||
|
||
* `SIF` file | ||
* and the `fastqc` script | ||
|
||
to `/opt/packages/fastqc/0.12.1`. | ||
|
||
Copy the file `modulefile` to `/opt/modules/fastqc` as `0.12.1`. | ||
|
||
## Test | ||
To run the available tests, run the command | ||
|
||
``` | ||
bash ./test.sh | ||
``` | ||
|
||
--- | ||
[![PSC](http://www.andrew.cmu.edu/user/icaoberg/images/logos/psc.png)](http://www.psc.edu) | ||
|
||
[icaoberg](http://www.andrew.cmu.edu/~icaoberg) at the [Pittsburgh Supercomputing Center](http://www.psc.edu) in the [Mellon College of Science](https://www.cmu.edu/mcs/) at [Carnegie Mellon University](http://www.cmu.edu). |
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,16 @@ | ||
Bootstrap: docker | ||
From: quay.io/biocontainers/fastqc:0.12.1--hdfd78af_0 | ||
|
||
%labels | ||
MAINTAINER icaoberg | ||
EMAIL icaoberg@psc.edu | ||
SUPPORT help@psc.edu | ||
REPOSITORY http://gitub.com/pscedu/singularity-fastqc | ||
COPYRIGHT Copyright © 2021 Pittsburgh Supercomputing Center. All Rights Reserved. | ||
VERSION 0.12.1 | ||
|
||
%environment | ||
export LC_ALL=C.UTF-8 | ||
|
||
%post | ||
locale |
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,19 @@ | ||
#!/bin/bash | ||
|
||
# Copyright © 2021 Pittsburgh Supercomputing Center. | ||
# All Rights Reserved. | ||
|
||
IMAGE=singularity-FastQC-0.12.1.sif | ||
DEFINITION=Singularity | ||
|
||
if [ -f $IMAGE ]; then | ||
rm -fv $IMAGE | ||
fi | ||
|
||
sudo singularity build $IMAGE $DEFINITION | ||
|
||
if [ -f $IMAGE ]; then | ||
exit 0 | ||
else | ||
exit 1 | ||
fi |
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,6 @@ | ||
#!/bin/bash | ||
|
||
# Copyright © 2021 Pittsburgh Supercomputing Center. | ||
# All Rights Reserved. | ||
|
||
docker build -t icaoberg/fastqc:0.12.1 . |
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,21 @@ | ||
#!/bin/bash | ||
|
||
if [ ! $(command -v singularity) ]; then | ||
module load singularity | ||
fi | ||
|
||
VERSION=0.12.1 | ||
PACKAGE=FastQC | ||
TOOL=fastqc | ||
DIRECTORY=$(dirname $0) | ||
|
||
PERSISTENT_FILE_STORAGE=/ocean | ||
if [ -d $PERSISTENT_FILE_STORAGE ]; then | ||
OPTIONS="-B $PERSISTENT_FILE_STORAGE" | ||
fi | ||
|
||
if [ -d /local ]; then | ||
OPTIONS=$OPTIONS" -B /local" | ||
fi | ||
|
||
singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@" |
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,46 @@ | ||
-- | ||
-- FastQC 0.12.1 modulefile | ||
-- | ||
-- "URL: https://www.psc.edu/resources/software" | ||
-- "Category: Biological Sciences" | ||
-- "Description: FastQC aims to provide a simple way to do some quality control checks on raw sequence data coming from high throughput sequencing pipelines." | ||
-- "Keywords: singularity bioinformatics" | ||
|
||
whatis("Name: FastQC") | ||
whatis("Version: 0.12.1") | ||
whatis("Category: Biological Sciences") | ||
whatis("URL: https://www.psc.edu/resources/software") | ||
whatis("Description: FastQC aims to provide a simple way to do some quality control checks on raw sequence data coming from high throughput sequencing pipelines.") | ||
|
||
help([[ | ||
FastQC aims to provide a simple way to do some quality control checks on raw sequence data coming from high throughput sequencing pipelines. | ||
To load the module, type | ||
> module load FastQC/0.12.1 | ||
To unload the module, type | ||
> module unload FastQC/0.12.1 | ||
Documentation | ||
------------- | ||
https://www.bioinformatics.babraham.ac.uk/projects/fastqc/ | ||
For help, type | ||
> fastqc --help | ||
Repository | ||
---------- | ||
https://github.com/s-andrews/FastQC | ||
Tools included in this module are | ||
* fastqc | ||
]]) | ||
|
||
local package = "FastQC" | ||
local version = "0.12.1" | ||
local base = pathJoin("/opt/packages",package,version) | ||
prepend_path("PATH", base) |
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,19 @@ | ||
#!/bin/bash | ||
|
||
# Copyright © 2021 Pittsburgh Supercomputing Center. | ||
# All Rights Reserved. | ||
|
||
IMAGE=singularity-FastQC-0.12.1.sif | ||
DEFINITION=Singularity | ||
|
||
if [ -f $IMAGE ]; then | ||
rm -fv $IMAGE | ||
fi | ||
|
||
singularity build --remote $IMAGE $DEFINITION | ||
|
||
if [ -f $IMAGE ]; then | ||
exit 0 | ||
else | ||
exit 1 | ||
fi |
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,3 @@ | ||
#!/bin/bash | ||
|
||
tree . |