-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
28 lines (19 loc) · 1.34 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
SHELL := /bin/bash
# Targets
TARGETS = .mamba .tools .rstats .pcks .check
PBASE=$(shell pwd)
all: ${TARGETS}
.mamba:
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(shell uname)-$(shell uname -m).sh" && bash Miniforge3-$(shell uname)-$(shell uname -m).sh -b -p mamba && rm "Miniforge3-$(shell uname)-$(shell uname -m).sh" && touch .mamba
.tools: .mamba
export PATH="${PBASE}/mamba/bin:${PATH}" && mamba install -y --override-channels -c conda-forge -c bioconda datamash samtools bcftools bedtools htslib bwa delly alfred freebayes igv wally minimap2 && touch .tools
.rstats: .mamba .tools
export PATH="${PBASE}/mamba/bin:${PATH}" && mamba install -y -c conda-forge -c bioconda bioconductor-genomicfeatures r-ggplot2 r-reshape2 r-gridextra r-cowplot bioconductor-dnacopy && touch .rstats
.pcks: .mamba .tools .rstats
export PATH="${PBASE}/mamba/bin:${PATH}" && mamba install -y -c conda-forge -c bioconda cyvcf2 numpy pysam && pip install gdown && touch .pcks
.check: .mamba .tools .rstats .pcks
export PATH="${PBASE}/mamba/bin:${PATH}" && delly --version && touch .check
download: .mamba .tools .rstats .pcks
export PATH="${PBASE}/mamba/bin:${PATH}" && cd data/ && gdown ${FILE} && tar -xzf sv.tar.gz && cp ${PBASE}/scripts/cnBafSV.R ${PBASE}/data/sv/ && rm sv.tar.gz
clean:
rm -rf $(TARGETS) $(TARGETS:=.o) mamba/