Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Installing Pindel keeps failing because of htslib #115

@claudiadast

Description

@claudiadast

I have made the following Dockerfile to install pindel

# Use Python base image from DockerHub
FROM python:2.7

RUN apt-get update && apt-get install -y \
  bzip2 \
  wget \
  make \
  ncurses-dev \
  zlib1g-dev \
  g++ \
  python-pip \
  git \
  gcc \
  liblzma-dev

RUN pip install awscli boto3

# Install htslib
WORKDIR /tools
RUN wget https://github.com/samtools/htslib/releases/download/1.9/htslib-1.9.tar.bz2 \
	&& tar -vxjf htslib-1.9.tar.bz2 \
	&& cd htslib-1.9 \
	&& make

# Install pindel
WORKDIR /tools
RUN git clone git://github.com/genome/pindel.git \
	&& cd pindel \
	&& ./INSTALL /tools/htslib-1.9/

ENV PATH="/tools/pindel/:$PATH"

However, when I try building, it keeps failing because of

Cloning into 'pindel'...
Checking out files: 100% (174/174), done.
path is now: /usr/bin/htslib-1.9/
make: *** No rule to make target 'Makefile.local', needed by 'pindel'.  Stop.
.
.
.

make[1]: *** [Makefile:47: pindel.o] Error 1
make[1]: Leaving directory '/usr/bin/pindel/src'
make: *** [Makefile:12: pindel] Error 2
  
INSTALL failed
Possible reasons: 
1. 'cannot cd to [path]
->the htslib path provided was incorrect
 
2. 'cannot find -lbam'
->htslib was not properly compiled/made, in that case, go to the htslib directory and follow the htslib installation instructions
and run 'make'.

I'm really stumped and have tried different variations of installing htslib or samtools and pointing to those paths in the ./INSTALL... command, but nothing seems to be working. How do I resolve this?

I also tried walking through these download steps manually, but when I do the ./INSTALL .. command, I get:

mv: cannot stat ‘src/pindel’: No such file or directory
mv: cannot stat ‘src/pindel2vcf’: No such file or directory
mv: cannot stat ‘src/sam2pindel’: No such file or directory
mv: cannot stat ‘src/pindel2vcf4tcga’: No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions