Skip to content

Commit

Permalink
Update N_JOBS
Browse files Browse the repository at this point in the history
  • Loading branch information
jolespin committed Aug 30, 2024
1 parent e273b65 commit 494ee56
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion install/download_databases-annotate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ REALPATH_DATABASE_DIRECTORY=$(realpath $DATABASE_DIRECTORY)
SCRIPT_DIRECTORY=$(dirname "$0")

MAXIMUM_NUMBER_OF_CPU=$(python -c "from multiprocessing import cpu_count; print(cpu_count())")
N_JOBS=$(2:-${MAXIMUM_NUMBER_OF_CPU})
N_JOBS=${3:-${MAXIMUM_NUMBER_OF_CPU}}

# Database structure
echo ". .. ... ..... ........ ............."
Expand Down
2 changes: 1 addition & 1 deletion install/download_databases-classify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ REALPATH_DATABASE_DIRECTORY=$(realpath $DATABASE_DIRECTORY)
SCRIPT_DIRECTORY=$(dirname "$0")

MAXIMUM_NUMBER_OF_CPU=$(python -c "from multiprocessing import cpu_count; print(cpu_count())")
N_JOBS=$(2:-${MAXIMUM_NUMBER_OF_CPU})
N_JOBS=${3:-${MAXIMUM_NUMBER_OF_CPU}}

# Database structure
echo ". .. ... ..... ........ ............."
Expand Down
2 changes: 1 addition & 1 deletion install/download_databases-contamination.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ REALPATH_DATABASE_DIRECTORY=$(realpath $DATABASE_DIRECTORY)
SCRIPT_DIRECTORY=$(dirname "$0")

MAXIMUM_NUMBER_OF_CPU=$(python -c "from multiprocessing import cpu_count; print(cpu_count())")
N_JOBS=$(2:-${MAXIMUM_NUMBER_OF_CPU})
N_JOBS=${3:-${MAXIMUM_NUMBER_OF_CPU}}

# Database structure
echo ". .. ... ..... ........ ............."
Expand Down
2 changes: 1 addition & 1 deletion install/download_databases-markers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ REALPATH_DATABASE_DIRECTORY=$(realpath $DATABASE_DIRECTORY)
SCRIPT_DIRECTORY=$(dirname "$0")

MAXIMUM_NUMBER_OF_CPU=$(python -c "from multiprocessing import cpu_count; print(cpu_count())")
N_JOBS=$(2:-${MAXIMUM_NUMBER_OF_CPU})
N_JOBS=${3:-${MAXIMUM_NUMBER_OF_CPU}}

# Database structure
echo ". .. ... ..... ........ ............."
Expand Down
8 changes: 6 additions & 2 deletions install/download_databases.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
# __version__ = "2024.8.30"
# MICROEUKAYROTIC_DATABASE_VERSION = "MicroEuk_v3"
# usage: bash veba/download_databases.sh /path/to/veba_database_destination/ [optional positional argument: /path/to/conda_environments/]
# usage: bash veba/download_databases.sh /path/to/veba_database_destination/ [optional positional argument: /path/to/conda_environments/ number_of_threads]
# Version
VEBA_DATABASE_VERSION="VDB_v7"

Expand All @@ -13,7 +13,11 @@ SCRIPT_DIRECTORY=$(dirname "$0")
CONDA_ENVS_PATH=${2:-"$(conda info --base)/envs/"}

MAXIMUM_NUMBER_OF_CPU=$(python -c "from multiprocessing import cpu_count; print(cpu_count())")
N_JOBS=$(3:-${MAXIMUM_NUMBER_OF_CPU})
N_JOBS=${3:-${MAXIMUM_NUMBER_OF_CPU}}
echo ". .. ... ..... ........ ............."
echo "Detected ${MAXIMUM_NUMBER_OF_CPU} available threads"
echo "Using ${N_JOBS} threads"
echo ". .. ... ..... ........ ............."

# Database structure
echo ". .. ... ..... ........ ............."
Expand Down

0 comments on commit 494ee56

Please sign in to comment.