Skip to content

Commit

Permalink
Merge pull request #156 from DennisSchmitz/p1.0.1
Browse files Browse the repository at this point in the history
Patch 1.0.01
  • Loading branch information
florianzwagemaker committed Jul 3, 2020
2 parents b6fe4bf + 62167b5 commit b6cfbf1
Show file tree
Hide file tree
Showing 23 changed files with 18 additions and 14 deletions.
1 change: 1 addition & 0 deletions bin/envs/Jovian_master_environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ dependencies:
- seqkit==0.12.1
- pv==1.6.6
- pip==19.2.3
- bc
- pip:
- PyYAML==5.3.1
Empty file modified bin/includes/Archive
100644 → 100755
Empty file.
Empty file modified bin/includes/Clean
100644 → 100755
Empty file.
Empty file modified bin/includes/Config_jupyter
100644 → 100755
Empty file.
Empty file modified bin/includes/Databases
100644 → 100755
Empty file.
Empty file modified bin/includes/Databases_installer
100644 → 100755
Empty file.
Empty file modified bin/includes/Install_conda_envs
100644 → 100755
Empty file.
Empty file modified bin/includes/Install_jovian-master
100644 → 100755
Empty file.
Empty file modified bin/includes/Install_miniconda
100644 → 100755
Empty file.
Empty file modified bin/includes/Make_ncbirc
100644 → 100755
Empty file.
Empty file modified bin/includes/Make_samplesheet
100644 → 100755
Empty file.
Empty file modified bin/includes/Mode
100644 → 100755
Empty file.
Empty file modified bin/includes/Pre_install_checker
100644 → 100755
Empty file.
Empty file modified bin/includes/Preflight_check_databases
100644 → 100755
Empty file.
Empty file modified bin/includes/Preflight_readlength-counter
100644 → 100755
Empty file.
14 changes: 7 additions & 7 deletions bin/includes/Rebuild_archive
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ minispacer
line
minispacer

eval $(parse_yaml profile/variables.yaml "vars_")
eval $(parse_yaml config/variables.yaml "vars_")
oldhostname="$vars_Server_host_hostname"
newhostname="http://${HOSTNAME}"


###### Modifying the HTML index file for IGVjs
if [ -e results/IGVjs_index.html ]; then
if [ -e results/igv.html ]; then
echo -e "Modifying IGVjs index file..."
sed -i -e "s@${oldhostname}@${newhostname}@g" "results/IGVjs_index.html"
sed -i -e "s@${oldhostname}@${newhostname}@g" "results/igv.html"
fi


if [ -e profile/variables.yaml ]; then
if [ -e config/variables.yaml ]; then
echo -e "Resetting some of the variables..."
sed '3,4d' -i profile/variables.yaml
echo -e "Server_host:\n hostname: http://${HOSTNAME}" >> profile/variables.yaml
sed '3,4d' -i config/variables.yaml
echo -e "Server_host:\n hostname: http://${HOSTNAME}" >> config/variables.yaml
fi

minispacer
Expand All @@ -39,7 +39,7 @@ minispacer

if [ ! -h /tmp/etc/nginx/default-site/$vars_Jovian_run_identifier ]; then
echo -e "Setting symlink..."
bin/set_symlink.sh
bin/scripts/set_symlink.sh
else
echo "Symlink has already been set"
fi
Expand Down
Empty file modified bin/includes/Start_jupyter
100644 → 100755
Empty file.
Empty file modified bin/includes/Typingtool_check
100644 → 100755
Empty file.
Empty file modified bin/includes/Userconfig_CM
100644 → 100755
Empty file.
Empty file modified bin/includes/Userconfig_DB
100644 → 100755
Empty file.
Empty file modified bin/includes/Version
100644 → 100755
Empty file.
5 changes: 0 additions & 5 deletions bin/includes/functions
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ installer_intro() {
echo -e "Welcome to the interactive installation process of Jovian"
echo -e "You are seeing this because one or multiple dependencies of Jovian are missing on your system."
echo -e "You are using Jovian $VERSION"
spacer
echo -e "Please keep in mind that this pipeline is still a work-in-progress"
echo -e "It is expected that several portions are unstable until release 1.0.0"
line
spacer
}
Expand Down Expand Up @@ -73,8 +70,6 @@ ready_for_start() {
line
echo -e "All pre-flight checks of Jovian have been completed"
echo -e "You are using Jovian version ${VERSION}"
echo -e "Please keep in mind that this pipeline is still a work-in-progress"
echo -e "It is expected that several portions are unstable until release 1.0.0"
line
spacer
}
Expand Down
12 changes: 10 additions & 2 deletions bin/includes/selfupdate
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
# shellcheck disable=SC1091

conda deactivate

if [ "${1}" == "master" ]; then

echo -e "Updating Jovian will delete \e[1m all local changes\e[0m that you've made."
Expand Down Expand Up @@ -31,7 +33,10 @@ if [ "${1}" == "master" ]; then
git checkout master
git fetch origin --tags "${latestrelease}"
git reset --hard FETCH_HEAD
conda env update --file "${PATH_JOVIAN_MASTER_YAML}"
conda remove --name "${MASTER_NAME}" --all -y
conda remove --name "${HELPER_NAME}" --all -y
bash bin/includes/Install_jovian-master
conda env create -f ${PATH_JOVIAN_HELPER_YAML}

echo -e "DONE"

Expand Down Expand Up @@ -64,7 +69,10 @@ else
git checkout master
git fetch origin --tags "${1}"
git reset --hard FETCH_HEAD
conda env update --file "${PATH_JOVIAN_MASTER_YAML}"
conda remove --name "${MASTER_NAME}" --all -y
conda remove --name "${HELPER_NAME}" --all -y
bash bin/includes/Install_jovian-master
conda env create -f ${PATH_JOVIAN_HELPER_YAML}

echo -e "DONE"
fi

0 comments on commit b6cfbf1

Please sign in to comment.