Skip to content

Commit

Permalink
Updated download/install helper scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Linder committed Oct 1, 2024
1 parent 970379f commit 23e49dd
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions env_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

# set these variables before running the script
LOCAL_BORZOI_PATH="/home/jlinder/borzoi"
LOCAL_BASKERVILLE_PATH="/home/jlinder/baskerville"
LOCAL_WESTMINSTER_PATH="/home/jlinder/westminster"
LOCAL_USER="jlinder"

# create env_vars sh scripts in local conda env
Expand All @@ -20,27 +18,17 @@ if ! [ -e $file_vars_deact ]; then
echo '#!/bin/sh' > $file_vars_deact
fi

# append borzoi (and baskerville/westminster) env variable exports to /activate.d/env_vars.sh
# append env variable exports to /activate.d/env_vars.sh
echo "export BORZOI_DIR=$LOCAL_BORZOI_PATH" >> $file_vars_act
echo 'export PATH=$BORZOI_DIR/src/scripts:$PATH' >> $file_vars_act
echo 'export PYTHONPATH=$BORZOI_DIR/src/scripts:$PYTHONPATH' >> $file_vars_act

echo "export BASKERVILLE_DIR=$LOCAL_BASKERVILLE_PATH" >> $file_vars_act
echo 'export PATH=$BASKERVILLE_DIR/src/baskerville/scripts:$PATH' >> $file_vars_act
echo 'export PYTHONPATH=$BASKERVILLE_DIR/src/baskerville/scripts:$PYTHONPATH' >> $file_vars_act

echo "export WESTMINSTER_DIR=$LOCAL_WESTMINSTER_PATH" >> $file_vars_act
echo 'export PATH=$WESTMINSTER_DIR/src/westminster/scripts:$PATH' >> $file_vars_act
echo 'export PYTHONPATH=$WESTMINSTER_DIR/src/westminster/scripts:$PYTHONPATH' >> $file_vars_act

echo 'export BORZOI_HG38=$BORZOI_DIR/examples/hg38' >> $file_vars_act
echo 'export BORZOI_MM10=$BORZOI_DIR/examples/mm10' >> $file_vars_act

echo "export BORZOI_CONDA=/home/$LOCAL_USER/anaconda3/etc/profile.d/conda.sh" >> $file_vars_act

# append borzoi env variable unsets to /deactivate.d/env_vars.sh
echo 'unset BASKERVILLE_DIR' >> $file_vars_deact
echo 'unset WESTMINSTER_DIR' >> $file_vars_deact
# append env variable unsets to /deactivate.d/env_vars.sh
echo 'unset BORZOI_DIR' >> $file_vars_deact
echo 'unset BORZOI_HG38' >> $file_vars_deact
echo 'unset BORZOI_MM10' >> $file_vars_deact
Expand Down

0 comments on commit 23e49dd

Please sign in to comment.