#!/usr/bin/env bash

# Download the raw data for the single drug response benchmark
# Usage: ./get-benchmarks <destination>
# Example: ./get-benchmarks /path/to/destination
# The destination is the directory where the data will be downloaded
# Creates the splits, x_data and y_data directories in the destination

DESTINATION=$1
data_dir="csa_data"
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
benchmark_download_script=download_csa.sh

if [ -z "$DESTINATION" ]; then
    echo "Usage: $0 <destination>"
    exit 1
fi
if [ ! -d $DESTINATION/$data_dir/ ]; then
    mkdir -p $DESTINATION
    cd $DESTINATION
    source $SCRIPT_DIR/$benchmark_download_script
else
    echo "CSA data folder already exists"
fi

