Skip to content

Commit

Permalink
Merge branch 'bcftools' into 'dev'
Browse files Browse the repository at this point in the history
Add bcftools

See merge request research/pomoxis!35
  • Loading branch information
sry002 committed Apr 12, 2018
2 parents 7cac1dd + 9b817f0 commit 07e20e9
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ OS := $(shell uname)
CXX ?= g++

# Builds a cache of binaries which can just be copied for CI
BINARIES=minimap2 miniasm bwa racon samtools
BINARIES=minimap2 miniasm bwa racon samtools bcftools

BINCACHEDIR=bincache
$(BINCACHEDIR):
Expand All @@ -30,7 +30,6 @@ $(BINCACHEDIR)/racon: | $(BINCACHEDIR)
cd submodules/racon/build && make
cp submodules/racon/build/bin/racon $@


$(BINCACHEDIR)/bwa: | $(BINCACHEDIR)
@echo Making $(@F)
cd submodules/bwa && make
Expand All @@ -49,6 +48,17 @@ $(BINCACHEDIR)/samtools: | $(BINCACHEDIR)
cd submodules/samtools-${SAMVER} && make
cp submodules/samtools-${SAMVER}/samtools $@

BCFVER=1.7
$(BINCACHEDIR)/bcftools: | $(BINCACHEDIR)
@echo Making $(@F)
if [ ! -e submodules/bcftools-${BCFVER}.tar.bz2 ]; then \
cd submodules; \
wget https://github.com/samtools/bcftools/releases/download/${BCFVER}/bcftools-${BCFVER}.tar.bz2; \
fi
cd submodules && tar -xjf bcftools-${BCFVER}.tar.bz2
cd submodules/bcftools-${BCFVER} && make
cp submodules/bcftools-${BCFVER}/bcftools $@

venv: venv/bin/activate
IN_VENV=. ./venv/bin/activate

Expand Down

0 comments on commit 07e20e9

Please sign in to comment.