Skip to content

Commit

Permalink
install precompiled k8 (needed to run paftools)
Browse files Browse the repository at this point in the history
  • Loading branch information
ftostevin-ont committed May 5, 2021
1 parent 7ec84d1 commit 6fae610
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PYTHON ?= python3
CONDA ?= ~/miniconda3/

# Builds a cache of binaries which can just be copied for CI
BINARIES=minimap2 miniasm racon samtools bcftools paftools.js seqkit bedtools bgzip tabix
BINARIES=minimap2 miniasm racon samtools bcftools k8 paftools.js seqkit bedtools bgzip tabix

BINCACHEDIR=bincache
$(BINCACHEDIR):
Expand Down Expand Up @@ -79,6 +79,17 @@ $(BINCACHEDIR)/tabix: | $(BINCACHEDIR)/samtools
$(BINCACHEDIR)/bgzip: | $(BINCACHEDIR)/samtools
cp ${BINBUILDDIR}/samtools-${SAMVER}/htslib-${SAMVER}/$(@F) $@

K8VER=0.2.5
$(BINCACHEDIR)/k8: | $(BINCACHEDIR) $(BINBUILDDIR)
@echo Making $(@F)
if [ ! -e ${BINBUILDDIR}/k8-${K8VER}.tar.bz2 ]; then \
cd ${BINBUILDDIR}; \
wget https://github.com/attractivechaos/k8/releases/download/${K8VER}/k8-${K8VER}.tar.bz2; \
tar -xjf k8-${K8VER}.tar.bz2; \
fi
cp ${BINBUILDDIR}/k8-${K8VER}/k8-Linux $@


$(BINCACHEDIR)/paftools.js: | $(BINCACHEDIR)/minimap2
cp ${BINBUILDDIR}/minimap2-${MAPVER}/misc/$(@F) $@

Expand Down

0 comments on commit 6fae610

Please sign in to comment.