nf-core_modules/software/snpeff/build.sh
Maxime U. Garcia e0d820f9f4
Add snpeff (#546)
* feat: add snpeff

* fix: linting

* fix: tests

* fix: add csv output

* fix: add params information

* fix: improve script

* Update software/snpeff/environment.yml

* Update software/snpeff/environment.yml

Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>

* Apply suggestions from code review

* fix test

Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
2021-07-06 13:40:55 +01:00

24 lines
578 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
# Build and push all containers
build_push() {
GENOME=$1
SNPEFF_CACHE_VERSION=$2
SNPEFF_TAG=$3
docker build \
-t nfcore/snpeff:${SNPEFF_TAG}.${GENOME} \
software/snpeff/. \
--build-arg GENOME=${GENOME} \
--build-arg SNPEFF_CACHE_VERSION=${SNPEFF_CACHE_VERSION}
docker push nfcore/snpeff:${SNPEFF_TAG}.${GENOME}
}
build_push "GRCh37" "75" "5.0"
build_push "GRCh38" "99" "5.0"
build_push "GRCm38" "99" "5.0"
build_push "CanFam3.1" "99" "5.0"
build_push "WBcel235" "99" "5.0"