################################################################
## This file is a template : please adapt the path [RSAT_PARENT_PATH]
## to your local configuration (should be the directory in which the
## rsat folder is installed.

################################################################ 
## Configuration for Regulatory Sequence Analysis Tools (RSAT)
export RSAT=/var/www/html/rsat
export RSAT_SITE=rsat
export RSAT_WWW=https://rsat.eead.csic.es/plants
export RSAT_WS=https://rsat.eead.csic.es/plants
export PATH=${RSAT}/bin:${PATH}
export PATH=${RSAT}/perl-scripts:${PATH}
export PATH=${RSAT}/perl-scripts/parsers:${PATH}
export PATH=${RSAT}/python-scripts:${PATH}

################################################################
## Make sure R libs are accessible to the apache user.
##
## Note by JvH: installing R libraries in the RSAT package creates problems 
## because some libraries are installed both at the system-level and in the RSAT folder. 
## I thus comment this line, I will have to find a better solution. 
#
# if  [ ${R_LIBS_USER} ]; then
#   export R_LIBS_USER=${R_LIBS_USER}:${RSAT}/R-scripts/Rpackages/
#e lse
#  export R_LIBS_USER=${RSAT}/R-scripts/Rpackages/
# fi

################################################################
## Add RSAT python libraries to PYTHONPATH
if  [ ${PYTHONPATH} ]; then
export PYTHONPATH=${PYTHONPATH}:${RSAT}/ext_lib/python2.7/site-packages/
else
export PYTHONPATH=${RSAT}/ext_lib/python2.7/site-packages/
fi

################################################################
## Use ssh as remote shell for CVS (required to install Ensembl API)
export CVS_RSH=ssh

################################################################
## Default path for the Ensembl Perl modules and sofwtare tools
export ENSEMBL_RELEASE=97
export ENSEMBLGENOMES_RELEASE=44
export BIOPERL_VERSION=1-2-3
export PATH=${RSAT}/ext_lib/ensemblgenomes-${ENSEMBLGENOMES_RELEASE}-${ENSEMBL_RELEASE}/ensembl-git-tools/bin:${PATH}
export PERL5LIB=${RSAT}/ext_lib/bioperl-release-${BIOPERL_VERSION}/bioperl-live::${PERL5LIB}
export PERL5LIB=${RSAT}/ext_lib/ensemblgenomes-${ENSEMBLGENOMES_RELEASE}-${ENSEMBL_RELEASE}/ensembl/modules::${PERL5LIB}
export PERL5LIB=${RSAT}/ext_lib/ensemblgenomes-${ENSEMBLGENOMES_RELEASE}-${ENSEMBL_RELEASE}/ensembl-compara/modules::${PERL5LIB}
export PERL5LIB=${RSAT}/ext_lib/ensemblgenomes-${ENSEMBLGENOMES_RELEASE}-${ENSEMBL_RELEASE}/ensembl-external/modules::${PERL5LIB}
export PERL5LIB=${RSAT}/ext_lib/ensemblgenomes-${ENSEMBLGENOMES_RELEASE}-${ENSEMBL_RELEASE}/ensembl-functgenomics/modules::${PERL5LIB}
export PERL5LIB=${RSAT}/ext_lib/ensemblgenomes-${ENSEMBLGENOMES_RELEASE}-${ENSEMBL_RELEASE}/ensembl-tools/modules::${PERL5LIB}
export PERL5LIB=${RSAT}/ext_lib/ensemblgenomes-${ENSEMBLGENOMES_RELEASE}-${ENSEMBL_RELEASE}/ensembl-variation/modules::${PERL5LIB}
export PERL5LIB=${RSAT}/ext_lib/ensemblgenomes-${ENSEMBLGENOMES_RELEASE}-${ENSEMBL_RELEASE}/ensemblgenomes-api/modules::${PERL5LIB}
export PERL5LIB=${RSAT}/ext_lib/biomart-perl/lib/::${PERL5LIB}

export GOOGLE_ANALYTICS=""
