From f51ab78ecef56631bc349d9c250ab89d98b6d925 Mon Sep 17 00:00:00 2001 From: shawn rynearson Date: Thu, 15 Nov 2018 14:30:11 -0700 Subject: [PATCH 1/2] updated VCFReader and added dockerfile --- Dockerfile | 19 +++++++++++++++++++ core/vcf/VCFReader.h | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..b9a6d4ad --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM ubuntu:latest +MAINTAINER dillonl https://github.com/dillonl + +LABEL vender="dillonl" + +RUN apt-get update && apt-get -y install \ + cmake \ + git \ + gcc \ + build-essential \ + python-dev \ + libpng-dev + +## Pull repo +RUN git clone https://github.com/dillonl/graphite.git +RUN mkdir graphite/bin +RUN cd graphite/bin && cmake ../ +RUN cd graphite/bin && make + diff --git a/core/vcf/VCFReader.h b/core/vcf/VCFReader.h index ab3c60c3..f97e452e 100644 --- a/core/vcf/VCFReader.h +++ b/core/vcf/VCFReader.h @@ -34,7 +34,7 @@ namespace graphite inline bool getNextLine(std::string& line) { - return std::getline(*this->m_file_stream_ptr, line); + return (bool)std::getline(*this->m_file_stream_ptr, line); } Variant::SharedPtr m_preloaded_variant; From e37aa8803ea15f0473ab368b4bae3e3347451229 Mon Sep 17 00:00:00 2001 From: shawn rynearson Date: Thu, 15 Nov 2018 14:39:00 -0700 Subject: [PATCH 2/2] updated dockerfile --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b9a6d4ad..3ae5bfdb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,10 @@ RUN apt-get update && apt-get -y install \ libpng-dev ## Pull repo -RUN git clone https://github.com/dillonl/graphite.git +RUN git clone https://github.com/srynobio/graphite.git RUN mkdir graphite/bin RUN cd graphite/bin && cmake ../ RUN cd graphite/bin && make +RUN cp graphite/bin/graphite /usr/bin/ +RUN graphite -h