anchor.diff:  # Data configuration
   WORKDIR /root
   RUN wget http://www.repeatmasker.org/libraries/RepeatMaskerMetaData-20170127.tar.gz
  -RUN tar zxf RepeatMaskerMetaData-20170127.tar.gz
  +RUN tar zxf RepeatMaskerMetaData-20170127.tar.gz && rm -rf RepeatMaskerMetaData-20170127.tar.gz
   
   RUN cp Tools/Cwl/repeatmasker/initReps.sh . && cp Tools/Cwl/repeatmasker/repeatMasker.sh .
   RUN chmod uog+x initReps.sh && chmod uog+x repeatMasker.sh
  
positive.code: RUN mv recon.pl.new recon.pl && chmod uog+x recon.pl
  
  # Install nseg
  WORKDIR /root/nseg
  RUN make && mv nseg /usr/local/bin && mv nmerge /usr/local/bin
  
  # Install RepeatScout
  WORKDIR /root
  RUN tar zxf RepeatScout-1.0.5.tar.gz
  WORKDIR RepeatScout-1
  RUN make && mv build_lmer_table /usr/local/bin && mv RepeatScout /usr/local/bin
  
  # Install TRF
  RUN wget https://tandem.bu.edu/cgi-bin/trf/trf.download.pl?fileselect=30
  
negative.code: FROM ubuntu:16.04
  RUN apt-get update && apt-get install -y wget perl build-essential cpio less git
  
  # Install NCBI rmblast
  WORKDIR /root
  RUN wget ftp://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.6.0/ncbi-blast-2.6.0+-src.tar.gz
  RUN wget http://www.repeatmasker.org/isb-2.6.0+-changes-vers2.patch.gz
  RUN tar xvfz ncbi-blast-2.6.0+-src.tar.gz && gunzip isb-2.6.0+-changes-vers2.patch.gz
  WORKDIR ncbi-blast-2.6.0+-src
  RUN patch -p1 < /root/isb-2.6.0+-changes-vers2.patch
  WORKDIR c++
  RUN ./configure --with-mt --prefix=/usr/local/rmblast --without-debug
  RUN sed '54,55d' Makefile > Makefile.new && mv Makefile.new Makefile
  RUN make -j 4 && make install
  WORKDIR /root
  RUN rm -rf ncbi-blast-2.6.0+-src* isb-2.6.0+-changes-vers2.patch
  
  # Install HMMER
  #WORKDIR /root
  #RUN wget http://eddylab.org/software/hmmer3/3.1b2/hmmer-3.1b2-linux-intel-x86_64.tar.gz
  #RUN tar zxf hmmer-3.1b2-linux-intel-x86_64.tar.gz
  #WORKDIR hmmer-3.1b2-linux-intel-x86_64
  #RUN ./configure && make && make install
  #WORKDIR /root
  #RUN rm -rf hmmer-3.1b2-linux-intel-x86_64*
  RUN wget http://eddylab.org/software/hmmer3/3.1b2/hmmer-3.1b2-linux-intel-x86_64.tar.gz
  RUN tar zxf hmmer-3.1b2-linux-intel-x86_64.tar.gz && cp hmmer-3.1b2-linux-intel-x86_64/binaries/* /usr/local/bin
  RUN rm -rf hmmer-3.1b2-linux-intel-x86_64*
  
  # Install RECON
  RUN wget http://www.repeatmasker.org/RepeatModeler/RECON-1.08.tar.gz
  RUN tar zxf RECON-1.08.tar.gz && rm RECON-1.08.tar.gz
  WORKDIR RECON-1.08/src
  RUN make && make install
  WORKDIR /root/RECON-1.08/scripts
  