You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
16
16
-[#237](https://github.com/nf-core/funcscan/pull/237) Reactivate DeepARG automatic database downloading and CI tests as server is now back up. (by @jfy133)
17
17
-[#235](https://github.com/nf-core/funcscan/pull/235) Improved annotation speed by switching off pipeline-irrelevant Bakta annotation steps by default. (by @jasmezz)
18
18
-[#235](https://github.com/nf-core/funcscan/pull/235) Renamed parameter `annotation_bakta_db` to `annotation_bakta_db_localpath`. (by @jasmezz)
19
+
-[#248](https://github.com/nf-core/funcscan/pull/248) Applied best-practice `error("message")` to all (sub)workflow files. (by @jasmezz)
if ( fargene_classes_missing.size() >0 ) exit 1, "[nf-core/funcscan] ERROR: invalid class present in --arg_fargene_hmmodel. Please check input. Invalid class: ${fargene_classes_missing.join(', ')}"
37
+
if ( fargene_classes_missing.size() >0 ) error("[nf-core/funcscan] ERROR: invalid class present in --arg_fargene_hmmodel. Please check input. Invalid class: ${fargene_classes_missing.join(', ')}")
38
38
39
39
// Validate antiSMASH inputs
40
40
// 1. Make sure that either both or none of the antiSMASH directories are supplied
41
-
if ( ( params.run_bgc_screening &&!params.bgc_antismash_databases && params.bgc_antismash_installationdirectory &&!params.bgc_skip_antismash) || ( params.run_bgc_screening && params.bgc_antismash_databases &&!params.bgc_antismash_installationdirectory &&!params.bgc_skip_antismash ) ) exit 1, "[nf-core/funcscan] ERROR: You supplied either the antiSMASH database or its installation directory, but not both. Please either supply both directories or none (letting the pipeline download them instead)."
41
+
if ( ( params.run_bgc_screening &&!params.bgc_antismash_databases && params.bgc_antismash_installationdirectory &&!params.bgc_skip_antismash) || ( params.run_bgc_screening && params.bgc_antismash_databases &&!params.bgc_antismash_installationdirectory &&!params.bgc_skip_antismash ) ) error("[nf-core/funcscan] ERROR: You supplied either the antiSMASH database or its installation directory, but not both. Please either supply both directories or none (letting the pipeline download them instead).")
42
42
43
43
// 2. If both are supplied: Exit if we have a name collision error
if ( antismash_database_dir.name == antismash_install_dir.name ) exit 1, "[nf-core/funcscan] ERROR: Your supplied antiSMASH database and installation directories have identical names: \""+ antismash_install_dir.name +"\".\nPlease make sure to name them differently, for example:\n - Database directory: "+ antismash_database_dir.parent +"/antismash_db\n - Installation directory: "+ antismash_install_dir.parent +"/antismash_dir"
47
+
if ( antismash_database_dir.name == antismash_install_dir.name ) error("[nf-core/funcscan] ERROR: Your supplied antiSMASH database and installation directories have identical names: \""+ antismash_install_dir.name +"\".\nPlease make sure to name them differently, for example:\n - Database directory: "+ antismash_database_dir.parent +"/antismash_db\n - Installation directory: "+ antismash_install_dir.parent +"/antismash_dir")
48
48
}
49
49
50
50
// 3. Give warning if not using container system assuming conda
0 commit comments