refactoring code to make it take command line args

This commit is contained in:
Tanushree Tunstall 2020-04-06 19:03:41 +01:00
parent b5aa524914
commit cc9cdbcad5
42 changed files with 456 additions and 7206 deletions

View file

@ -4,9 +4,6 @@
## Structure:
#
# $DATA_DIR/$DRUG/input
# |- original
# |- processed
# |- structure
#
# $DATA_DIR/$DRUG/output
# |- plots
@ -15,18 +12,17 @@
DATA_DIR=~/git/Data
if [[ $1 == '' ]]; then
echo "Error"
echo "usage: mk-drug-dirs.sh <drug name>";
exit;
else
DRUG=$1
echo Creating structure for: $DRUG
echo Creating directory structure for: $DRUG
if [ -d $DATA_DIR ]
then
echo Doing creation in $DATA_DIR
mkdir -p $DATA_DIR/$DRUG/input/original
mkdir -p $DATA_DIR/$DRUG/input/processed
mkdir -p $DATA_DIR/$DRUG/input/structure
mkdir -p $DATA_DIR/$DRUG/input
mkdir -p $DATA_DIR/$DRUG/output/plots
mkdir -p $DATA_DIR/$DRUG/output/structure