Skip to content

Commit 9b79149

Browse files
committed
Changed default database location
1 parent d119d4c commit 9b79149

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Metagenomics/Illumina/Workflow_Documentation/SW_MGIllumina/workflow_code/main.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ if (params.help) {
9797
println()
9898
println("Paths to existing databases and database links.")
9999
println(" --DB_ROOT [PATH] FULL PATH to root directory where the databases will be downloaded if they don't exist.")
100-
println(" Relative paths such as '~/' and '../' will fail, please don't use them. Default: ./Reference_DBs/ ")
100+
println(" Relative paths such as '~/' and '../' will fail, please don't use them. Default: ../Reference_DBs/ ")
101101
println("CAT database directory strings:")
102102
println(" The strings below will be added to the end of the --database.cat_db path arguement provided below.")
103103
println(" --cat_taxonomy_dir [PATH] CAT taxonomy database directory. Default: 2021-01-07_taxonomy/.")

Metagenomics/Illumina/Workflow_Documentation/SW_MGIllumina/workflow_code/nextflow.config

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,7 @@ params {
4646
logs_dir = "../Logs/"
4747
metadata_dir = "../Metadata/"
4848

49-
//************************* Database creation **********************************//
50-
/* Root directory where the databases will be downloaded if they don't exist.
51-
This should be provided as a full path (starting with '/').
52-
Note that relative paths such as '~/' and '../' are not expanded
53-
by nextflow's evaluation of files, so don't use that.
54-
*/
55-
DB_ROOT = "${baseDir}/Reference_DBs"
49+
//************************* Databases **********************************//
5650
database {
5751
CAT_DB_LINK = "https://tbb.bio.uu.nl/bastiaan/CAT_prepare/CAT_prepare_20210107.tar.gz"
5852
// Old link - https://data.gtdb.ecogenomic.org/releases/release202/202.0/auxillary_files/gtdbtk_r202_data.tar.gz
@@ -169,7 +163,13 @@ profiles {
169163
// Maximum number of jobs to submit in parallel
170164
executor.queueSize = 20
171165

172-
166+
/*
167+
Root directory where the databases will be downloaded if they don't exist.
168+
This should be provided as a full path (starting with '/').
169+
Note that relative paths such as '~/' and '../' are not expanded
170+
by nextflow's evaluation of files, so don't use that.
171+
*/
172+
params.DB_ROOT = ("${baseDir}".split("/")[0..-2]).join('/') + "/Reference_DBs"
173173

174174
// Mount Humann databases to their predefined locations in the Biobakery container being used
175175
if(params.database.chocophlan_dir == null ||

0 commit comments

Comments
 (0)