-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start integration Singularity * Singularity implementation * Singularity test * Singularity artifacts * Singularity tests * Singularity TOKEN * Singularity TOKEN * Singularity TOKEN * Singularity TOKEN * Singularity fix paths * Singularity PATH * Singularity workdir * Fix workdir singularity * Singularity fix chdir * Fastqwiper folder * Pipeline folder copy from host to guest * Singularity data folder * Snakemake test * Snakemake elif * Snakemake help * Singularity bash * Singularity test * Singularity token * Singularity push test * Singularity login test * Singularity push test * Singularity token test * Singularity ENV * Singularity ENV * Singularity TOKENFILE * Singularity TOKEN file * Update Singularity.def * Fixing Singularity build * Try Singularity remote login * Improved save of fastqwiper wipe in pipeline files * SIF signature * Adding fingerprint * Adding fingerprint * Deployment keys * Fixed pipeline wildcards references * Fixed pipeline syntax * Fixed snakemake pipeline files * Editing README.md * Singularity integrated
- Loading branch information
Showing
10 changed files
with
150 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Test code | ||
|
||
on: [push, pull_request] | ||
on: [pull_request] # , push | ||
|
||
jobs: | ||
test: | ||
|
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,38 @@ | ||
name: Singularity | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
package_version: | ||
required: true | ||
type: string | ||
secrets: | ||
sylabs_token: | ||
required: true | ||
|
||
jobs: | ||
docker_build_publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: eWaterCycle/setup-singularity@v7 | ||
with: | ||
singularity-version: 3.8.3 | ||
- name: Build a singularity container | ||
run: singularity build --fakeroot fastqwiper.sif Singularity.def | ||
- name: Test the singularity container | ||
run: singularity run fastqwiper.sif help | ||
- uses: "finnp/create-file-action@master" | ||
env: | ||
FILE_NAME: "token.txt" | ||
FILE_DATA: "${{ secrets.sylabs_token }}" | ||
# - uses: actions/upload-artifact@v3 | ||
# with: | ||
# name: token.txt | ||
# path: token.txt | ||
- name: Push artifacts to Library | ||
run: | | ||
singularity remote login --tokenfile token.txt | ||
singularity key newpair --password= --name="Tommaso Mazza" --comment="Deployment keys" --email=t.mazza@css-mendel.it --push=false | ||
singularity sign fastqwiper.sif | ||
singularity push fastqwiper.sif library://mazzalab/fastqwiper/fastqwiper.sif:${{ inputs.package_version }} |
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,47 @@ | ||
## Install Singularity: https://github.com/apptainer/singularity/blob/master/INSTALL.md | ||
## singularity run --bind /scratch/tom/fastqwiper_singularity/data/:/fastqwiper/data --bind /scratch/tom/fastqwiper_singularity/.snakemake:/fastqwiper/.snakemake --bind /scratch/tom/fastqwiper_singularity/logs:/fastqwiper/logs --writable-tmpfs fqw.sif paired 8 sample 50000000 | ||
|
||
Bootstrap: docker | ||
From: condaforge/mambaforge | ||
|
||
%files | ||
pipeline/* /fastqwiper/pipeline/ | ||
data/* /fastqwiper/data/ | ||
run_wiping.sh /fastqwiper/run_wiping.sh | ||
|
||
%environment | ||
PATH=$PATH:/tmp/jre1.8.0_161/bin/ | ||
|
||
%post | ||
mamba config --set channel_priority strict | ||
mamba install python=3.10 | ||
mamba install -c conda-forge -c bioconda snakemake=7.32.3 -y | ||
mamba install -c conda-forge colorama click -y | ||
mamba install -c bioconda trimmomatic -y | ||
|
||
mamba install -y -c bfxcss -c conda-forge fastqwiper | ||
|
||
apt-get update -y | ||
apt-get install gzrt -y | ||
|
||
# Software versions | ||
BBMAP_VER="39.01" | ||
|
||
wget -c https://sourceforge.net/projects/bbmap/files/BBMap_$BBMAP_VER.tar.gz/download -O /fastqwiper/BBMap_$BBMAP_VER.tar.gz | ||
cd fastqwiper | ||
tar -xvzf BBMap_${BBMAP_VER}.tar.gz | ||
rm BBMap_${BBMAP_VER}.tar.gz | ||
|
||
wget -c http://javadl.oracle.com/webapps/download/AutoDL?BundleId=230532_2f38c3b165be4555a1fa6e98c45e0808 -O /tmp/java.tar.gz | ||
cd /tmp/ | ||
tar xvzf java.tar.gz | ||
|
||
chmod 777 /fastqwiper/run_wiping.sh | ||
|
||
%runscript | ||
if [ $# -eq 4 ] || [ $# -eq 1 ]; then | ||
exec /fastqwiper/run_wiping.sh $@ | ||
else | ||
echo "You must provide four arguments [mode (paired, single), # of cores (int), sample name (string), chunk size (int))" | ||
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
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
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