#!/usr/bin/env bash

# DAS Tool for genome-resolved metagenomics
# by Christian MK Sieber (cmksieber@gmail.com)
#
#
# DAS Tool Copyright (c) 2017, The Regents of the University of California, through Lawrence
# Berkeley National Laboratory (subject to receipt of any required approvals from the U.S.
# Dept. of Energy).  All rights reserved.
#
# If you have questions about your rights to use or distribute this software, please contact
# Berkeley Lab's Innovation and Partnerships department at IPO@lbl.gov referring to
# "DAS Tool (2017-024)".
#
# NOTICE.  This software was developed under funding from the U.S. Department of Energy.  As
# such, the U.S. Government has been granted for itself and others acting on its behalf a
# paid-up, nonexclusive, irrevocable, worldwide license in the Software to reproduce,
# prepare derivative works, and perform publicly and display publicly. The U.S. Government
# is granted for itself and others acting on its behalf a paid-up, nonexclusive,
# irrevocable, worldwide license in the Software to reproduce, prepare derivative works,
# distribute copies to the public, perform publicly and display publicly, and to permit
# others to do so.
#

SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do
  DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
  SOURCE="$(readlink "$SOURCE")"
  [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"


Rscript --vanilla ${DIR}/src/DAS_Tool.R $@
