Skip to content

Commit

Permalink
Added version 0.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
icaoberg committed Oct 5, 2023
1 parent 2a76370 commit 3106f2e
Show file tree
Hide file tree
Showing 9 changed files with 173 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 0.12.1/Dockerfile
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
32 changes: 32 additions & 0 deletions 0.12.1/README.md
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).
16 changes: 16 additions & 0 deletions 0.12.1/Singularity
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
19 changes: 19 additions & 0 deletions 0.12.1/build.sh
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
6 changes: 6 additions & 0 deletions 0.12.1/dbuild.sh
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 .
21 changes: 21 additions & 0 deletions 0.12.1/fastqc
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 "$@"
46 changes: 46 additions & 0 deletions 0.12.1/modulefile.lua
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)
19 changes: 19 additions & 0 deletions 0.12.1/rbuild.sh
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
3 changes: 3 additions & 0 deletions 0.12.1/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

tree .

0 comments on commit 3106f2e

Please sign in to comment.