From 9d8ab723402532ef0a1224fb0aa402444cbcdfdb Mon Sep 17 00:00:00 2001 From: Metehan Sever Date: Mon, 22 Jan 2024 11:53:07 +0100 Subject: [PATCH 01/40] remove submodule --- .gitmodules | 6 ------ anvio/data/interactive/lib/bootstrap-icons | 1 - anvio/data/interactive/lib/roboto | 1 - 3 files changed, 8 deletions(-) delete mode 160000 anvio/data/interactive/lib/bootstrap-icons delete mode 160000 anvio/data/interactive/lib/roboto diff --git a/.gitmodules b/.gitmodules index e46512375a..05f46a77aa 100644 --- a/.gitmodules +++ b/.gitmodules @@ -37,9 +37,3 @@ [submodule "anvio/data/interactive/lib/JavaScript-MD5"] path = anvio/data/interactive/lib/JavaScript-MD5 url = https://github.com/blueimp/JavaScript-MD5.git -[submodule "anvio/data/interactive/lib/bootstrap-icons"] - path = anvio/data/interactive/lib/bootstrap-icons - url = https://github.com/twbs/icons.git -[submodule "anvio/data/interactive/lib/roboto"] - path = anvio/data/interactive/lib/roboto - url = https://github.com/googlefonts/roboto.git diff --git a/anvio/data/interactive/lib/bootstrap-icons b/anvio/data/interactive/lib/bootstrap-icons deleted file mode 160000 index 9727a0d634..0000000000 --- a/anvio/data/interactive/lib/bootstrap-icons +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 9727a0d6343ab9595ab98c7c9c57ccc5de305c95 diff --git a/anvio/data/interactive/lib/roboto b/anvio/data/interactive/lib/roboto deleted file mode 160000 index cb3cde1a30..0000000000 --- a/anvio/data/interactive/lib/roboto +++ /dev/null @@ -1 +0,0 @@ -Subproject commit cb3cde1a3069f28b9a66f3d104f51fd6c0734be1 From 7a652d0a636a4dad532d9dab23b9128ece03d1a8 Mon Sep 17 00:00:00 2001 From: Metehan Sever Date: Mon, 22 Jan 2024 13:50:49 +0100 Subject: [PATCH 02/40] Bootstrap remove --- .gitmodules | 3 --- anvio/data/interactive/lib/bootstrap | 1 - 2 files changed, 4 deletions(-) delete mode 160000 anvio/data/interactive/lib/bootstrap diff --git a/.gitmodules b/.gitmodules index 05f46a77aa..96785e2d16 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,9 +13,6 @@ [submodule "anvio/data/interactive/lib/jquery"] path = anvio/data/interactive/lib/jquery url = https://github.com/jquery/jquery -[submodule "anvio/data/interactive/lib/bootstrap"] - path = anvio/data/interactive/lib/bootstrap - url = https://github.com/twbs/bootstrap [submodule "anvio/data/interactive/lib/jquery-ui"] path = anvio/data/interactive/lib/jquery-ui url = https://github.com/jquery/jquery-ui diff --git a/anvio/data/interactive/lib/bootstrap b/anvio/data/interactive/lib/bootstrap deleted file mode 160000 index 6ffb0b48e4..0000000000 --- a/anvio/data/interactive/lib/bootstrap +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6ffb0b48e455430f8a5359ed689ad64c1143fac2 From fc4df03592772bfb5930c0819194e0551b087e2e Mon Sep 17 00:00:00 2001 From: Metehan Sever Date: Mon, 22 Jan 2024 13:54:14 +0100 Subject: [PATCH 03/40] bootstrap-waitingfor remove --- .gitmodules | 3 --- anvio/data/interactive/lib/bootstrap-waitingfor | 1 - 2 files changed, 4 deletions(-) delete mode 160000 anvio/data/interactive/lib/bootstrap-waitingfor diff --git a/.gitmodules b/.gitmodules index 96785e2d16..9b6dbc5c4a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -19,9 +19,6 @@ [submodule "anvio/data/interactive/lib/randomColor"] path = anvio/data/interactive/lib/randomColor url = https://github.com/davidmerfield/randomColor -[submodule "anvio/data/interactive/lib/bootstrap-waitingfor"] - path = anvio/data/interactive/lib/bootstrap-waitingfor - url = https://github.com/ehpc/bootstrap-waitingfor.git [submodule "anvio/data/interactive/lib/toastr"] path = anvio/data/interactive/lib/toastr url = https://github.com/CodeSeven/toastr.git diff --git a/anvio/data/interactive/lib/bootstrap-waitingfor b/anvio/data/interactive/lib/bootstrap-waitingfor deleted file mode 160000 index 6ea6352324..0000000000 --- a/anvio/data/interactive/lib/bootstrap-waitingfor +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6ea63523247fe772bca0e633dc51a62e9dfbc9ce From 7184502c1e0f49ceca818d7bf3d484ac9e458398 Mon Sep 17 00:00:00 2001 From: Metehan Sever Date: Mon, 22 Jan 2024 13:59:59 +0100 Subject: [PATCH 04/40] bootstrap-markdown remove --- .gitmodules | 3 --- anvio/data/interactive/lib/bootstrap-markdown | 1 - 2 files changed, 4 deletions(-) delete mode 160000 anvio/data/interactive/lib/bootstrap-markdown diff --git a/.gitmodules b/.gitmodules index 9b6dbc5c4a..53fc781767 100644 --- a/.gitmodules +++ b/.gitmodules @@ -22,9 +22,6 @@ [submodule "anvio/data/interactive/lib/toastr"] path = anvio/data/interactive/lib/toastr url = https://github.com/CodeSeven/toastr.git -[submodule "anvio/data/interactive/lib/bootstrap-markdown"] - path = anvio/data/interactive/lib/bootstrap-markdown - url = https://github.com/toopay/bootstrap-markdown.git [submodule "anvio/data/interactive/lib/marked"] path = anvio/data/interactive/lib/marked url = https://github.com/chjj/marked.git diff --git a/anvio/data/interactive/lib/bootstrap-markdown b/anvio/data/interactive/lib/bootstrap-markdown deleted file mode 160000 index 0320bec0bd..0000000000 --- a/anvio/data/interactive/lib/bootstrap-markdown +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0320bec0bdb3fa49754d8fc26bfe2159c5fbe4d2 From 032ac4d2e3df37a1ca59bcd67869feda0fde9da6 Mon Sep 17 00:00:00 2001 From: Metehan Sever Date: Mon, 22 Jan 2024 14:22:24 +0100 Subject: [PATCH 05/40] jquery remove --- .gitmodules | 3 --- anvio/data/interactive/lib/jquery | 1 - 2 files changed, 4 deletions(-) delete mode 160000 anvio/data/interactive/lib/jquery diff --git a/.gitmodules b/.gitmodules index 53fc781767..c9af6c6c8d 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,9 +10,6 @@ [submodule "anvio/data/interactive/lib/d3.js"] path = anvio/data/interactive/lib/d3.js url = https://github.com/mbostock/d3 -[submodule "anvio/data/interactive/lib/jquery"] - path = anvio/data/interactive/lib/jquery - url = https://github.com/jquery/jquery [submodule "anvio/data/interactive/lib/jquery-ui"] path = anvio/data/interactive/lib/jquery-ui url = https://github.com/jquery/jquery-ui diff --git a/anvio/data/interactive/lib/jquery b/anvio/data/interactive/lib/jquery deleted file mode 160000 index 1472290917..0000000000 --- a/anvio/data/interactive/lib/jquery +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 1472290917f17af05e98007136096784f9051fab From 5304cb1eb49dbe0ba645837ba67e7dd31e5ec896 Mon Sep 17 00:00:00 2001 From: Metehan Sever Date: Mon, 22 Jan 2024 14:25:16 +0100 Subject: [PATCH 06/40] jquery-ui remove --- .gitmodules | 3 --- anvio/data/interactive/lib/jquery-ui | 1 - 2 files changed, 4 deletions(-) delete mode 160000 anvio/data/interactive/lib/jquery-ui diff --git a/.gitmodules b/.gitmodules index c9af6c6c8d..6dcafcb459 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,9 +10,6 @@ [submodule "anvio/data/interactive/lib/d3.js"] path = anvio/data/interactive/lib/d3.js url = https://github.com/mbostock/d3 -[submodule "anvio/data/interactive/lib/jquery-ui"] - path = anvio/data/interactive/lib/jquery-ui - url = https://github.com/jquery/jquery-ui [submodule "anvio/data/interactive/lib/randomColor"] path = anvio/data/interactive/lib/randomColor url = https://github.com/davidmerfield/randomColor diff --git a/anvio/data/interactive/lib/jquery-ui b/anvio/data/interactive/lib/jquery-ui deleted file mode 160000 index d6713024e1..0000000000 --- a/anvio/data/interactive/lib/jquery-ui +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d6713024e16de90ea71dc0544ba34e1df01b4d8a From de367beb203fa52a2b112dfd575c0a899f6d4495 Mon Sep 17 00:00:00 2001 From: Metehan Sever Date: Mon, 22 Jan 2024 17:09:50 +0100 Subject: [PATCH 07/40] marked removed --- .gitmodules | 3 --- anvio/data/interactive/lib/marked | 1 - 2 files changed, 4 deletions(-) delete mode 160000 anvio/data/interactive/lib/marked diff --git a/.gitmodules b/.gitmodules index 6dcafcb459..3319ad1256 100644 --- a/.gitmodules +++ b/.gitmodules @@ -16,9 +16,6 @@ [submodule "anvio/data/interactive/lib/toastr"] path = anvio/data/interactive/lib/toastr url = https://github.com/CodeSeven/toastr.git -[submodule "anvio/data/interactive/lib/marked"] - path = anvio/data/interactive/lib/marked - url = https://github.com/chjj/marked.git [submodule "anvio/data/interactive/lib/JavaScript-MD5"] path = anvio/data/interactive/lib/JavaScript-MD5 url = https://github.com/blueimp/JavaScript-MD5.git diff --git a/anvio/data/interactive/lib/marked b/anvio/data/interactive/lib/marked deleted file mode 160000 index 8f9d0b72f5..0000000000 --- a/anvio/data/interactive/lib/marked +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 8f9d0b72f5606ed32057049f387161dd41c36ade From 1a7d2ec483a418400ecf7d0cf980d08d768aac2e Mon Sep 17 00:00:00 2001 From: Metehan Sever Date: Mon, 22 Jan 2024 17:30:13 +0100 Subject: [PATCH 08/40] randomColor remove --- .gitmodules | 3 --- anvio/data/interactive/lib/randomColor | 1 - 2 files changed, 4 deletions(-) delete mode 160000 anvio/data/interactive/lib/randomColor diff --git a/.gitmodules b/.gitmodules index 3319ad1256..1c62aec932 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,9 +10,6 @@ [submodule "anvio/data/interactive/lib/d3.js"] path = anvio/data/interactive/lib/d3.js url = https://github.com/mbostock/d3 -[submodule "anvio/data/interactive/lib/randomColor"] - path = anvio/data/interactive/lib/randomColor - url = https://github.com/davidmerfield/randomColor [submodule "anvio/data/interactive/lib/toastr"] path = anvio/data/interactive/lib/toastr url = https://github.com/CodeSeven/toastr.git diff --git a/anvio/data/interactive/lib/randomColor b/anvio/data/interactive/lib/randomColor deleted file mode 160000 index 455f347ecd..0000000000 --- a/anvio/data/interactive/lib/randomColor +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 455f347ecde2f61f9d32d9d1dbe4f6f28e54fc9e From 242a4d42b88d7868a21af27495210ae9ca048a76 Mon Sep 17 00:00:00 2001 From: Metehan Sever Date: Mon, 22 Jan 2024 17:30:49 +0100 Subject: [PATCH 09/40] toastr remove --- .gitmodules | 3 --- anvio/data/interactive/lib/toastr | 1 - 2 files changed, 4 deletions(-) delete mode 160000 anvio/data/interactive/lib/toastr diff --git a/.gitmodules b/.gitmodules index 1c62aec932..77fcf45c4c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,9 +10,6 @@ [submodule "anvio/data/interactive/lib/d3.js"] path = anvio/data/interactive/lib/d3.js url = https://github.com/mbostock/d3 -[submodule "anvio/data/interactive/lib/toastr"] - path = anvio/data/interactive/lib/toastr - url = https://github.com/CodeSeven/toastr.git [submodule "anvio/data/interactive/lib/JavaScript-MD5"] path = anvio/data/interactive/lib/JavaScript-MD5 url = https://github.com/blueimp/JavaScript-MD5.git diff --git a/anvio/data/interactive/lib/toastr b/anvio/data/interactive/lib/toastr deleted file mode 160000 index b957ae9f38..0000000000 --- a/anvio/data/interactive/lib/toastr +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b957ae9f38e6856346a0200e83281b08ca717a7d From a883b47ceb50910856423d728b7ca24b947397fb Mon Sep 17 00:00:00 2001 From: Metehan Sever Date: Mon, 22 Jan 2024 17:32:56 +0100 Subject: [PATCH 10/40] Javascript-MD5 remove --- .gitmodules | 3 --- anvio/data/interactive/lib/JavaScript-MD5 | 1 - 2 files changed, 4 deletions(-) delete mode 160000 anvio/data/interactive/lib/JavaScript-MD5 diff --git a/.gitmodules b/.gitmodules index 77fcf45c4c..a2b5323e85 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,6 +10,3 @@ [submodule "anvio/data/interactive/lib/d3.js"] path = anvio/data/interactive/lib/d3.js url = https://github.com/mbostock/d3 -[submodule "anvio/data/interactive/lib/JavaScript-MD5"] - path = anvio/data/interactive/lib/JavaScript-MD5 - url = https://github.com/blueimp/JavaScript-MD5.git diff --git a/anvio/data/interactive/lib/JavaScript-MD5 b/anvio/data/interactive/lib/JavaScript-MD5 deleted file mode 160000 index 9756d82db7..0000000000 --- a/anvio/data/interactive/lib/JavaScript-MD5 +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 9756d82db70b0f678bc6cd055e7aa08f5c1a0390 From b437f5475a928f3c44b6fcd22db5a91bdd4166de Mon Sep 17 00:00:00 2001 From: Metehan Sever Date: Mon, 22 Jan 2024 17:36:47 +0100 Subject: [PATCH 11/40] d3.js remove --- .gitmodules | 4 +--- anvio/data/interactive/lib/d3.js | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 160000 anvio/data/interactive/lib/d3.js diff --git a/.gitmodules b/.gitmodules index a2b5323e85..baa5bf182e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,6 +7,4 @@ [submodule "anvio/data/interactive/lib/bootstrap-sortable"] path = anvio/data/interactive/lib/bootstrap-sortable url = https://github.com/drvic10k/bootstrap-sortable -[submodule "anvio/data/interactive/lib/d3.js"] - path = anvio/data/interactive/lib/d3.js - url = https://github.com/mbostock/d3 + diff --git a/anvio/data/interactive/lib/d3.js b/anvio/data/interactive/lib/d3.js deleted file mode 160000 index b48420930f..0000000000 --- a/anvio/data/interactive/lib/d3.js +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b48420930f3848b1498c034387fac2588903d7cf From 620aaa1086a638e74373e5951a5d0a06ebad977a Mon Sep 17 00:00:00 2001 From: Metehan Sever Date: Mon, 29 Jan 2024 14:15:44 +0100 Subject: [PATCH 12/40] Fix lib > node_modules --- .gitignore | 2 ++ anvio/data/interactive/charts.html | 17 +++++---- anvio/data/interactive/contigs.html | 8 ++--- anvio/data/interactive/geneclusters.html | 15 ++++---- anvio/data/interactive/index.html | 45 ++++++++++++------------ anvio/data/interactive/login.html | 10 +++--- anvio/data/interactive/metabolism.html | 8 ++--- anvio/data/interactive/package.json | 37 +++++++++++++++++++ 8 files changed, 89 insertions(+), 53 deletions(-) create mode 100644 anvio/data/interactive/package.json diff --git a/.gitignore b/.gitignore index 223e6f2abd..4ecb3b22ce 100755 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,8 @@ /build/ /dist/ test-output/ +node_modules/ +package-lock.json /*.egg-info/ anvio/__pycache__/ anvio/extensions/concoct/vbgmm.c diff --git a/anvio/data/interactive/charts.html b/anvio/data/interactive/charts.html index ac275cb34d..58b6a56b7c 100644 --- a/anvio/data/interactive/charts.html +++ b/anvio/data/interactive/charts.html @@ -10,9 +10,9 @@ - + - + @@ -20,17 +20,16 @@ - - - - + + + - - + + - + diff --git a/anvio/data/interactive/contigs.html b/anvio/data/interactive/contigs.html index 0ba90ec4d2..5b53a0e51d 100644 --- a/anvio/data/interactive/contigs.html +++ b/anvio/data/interactive/contigs.html @@ -3,12 +3,12 @@ Contigs DB Stats - + - + - - + + - - - - + + + - + diff --git a/anvio/data/interactive/index.html b/anvio/data/interactive/index.html index d5c3dca319..d28815edd7 100644 --- a/anvio/data/interactive/index.html +++ b/anvio/data/interactive/index.html @@ -11,37 +11,36 @@ - + - - + + + + - - - - + + + - - - - - - - - - - + + + + + + + + - - + + - + @@ -71,9 +70,9 @@ - - - + + + diff --git a/anvio/data/interactive/login.html b/anvio/data/interactive/login.html index 04192a4c3b..d38eaefa7e 100644 --- a/anvio/data/interactive/login.html +++ b/anvio/data/interactive/login.html @@ -1,10 +1,10 @@ - - - - - + + + + + From 3a1ed6ee02a401ee3ea9b1f96c9b1f893908917c Mon Sep 17 00:00:00 2001 From: Metehan Sever Date: Mon, 30 Sep 2024 10:35:09 +0200 Subject: [PATCH 36/40] Fix all bin deleting issue for pan-mode --- anvio/data/interactive/js/bin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anvio/data/interactive/js/bin.js b/anvio/data/interactive/js/bin.js index 42a0acf569..097dc13aeb 100644 --- a/anvio/data/interactive/js/bin.js +++ b/anvio/data/interactive/js/bin.js @@ -93,7 +93,7 @@ Bins.prototype.NewBin = function(id, binState) { `}
- ${ mode === 'full' || mode === 'refine' || mode === 'manual' ? ` + ${ mode === 'full' || mode === 'refine' || mode === 'manual' || mode === 'pan' ? `     From 3d7bb9a23227cb4b8e7f7caac55bc8145712f77b Mon Sep 17 00:00:00 2001 From: Metehan Sever Date: Mon, 30 Sep 2024 11:02:41 +0200 Subject: [PATCH 37/40] Add table responsive --- anvio/data/static/template/profile-index.tmpl | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/anvio/data/static/template/profile-index.tmpl b/anvio/data/static/template/profile-index.tmpl index fc8d82f451..53f6503ee1 100644 --- a/anvio/data/static/template/profile-index.tmpl +++ b/anvio/data/static/template/profile-index.tmpl @@ -99,7 +99,7 @@ Profile DB ({{ meta|lookup:"profile"|lookup:"sample_id"|humanize }} w/ {{ meta|lookup:"profile"|lookup:"samples"|length|pretty }} samples).
- +
@@ -126,7 +126,7 @@ Contigs DB ({{ meta|lookup:"contigs"|lookup:"project_name"|humanize }})
-
Key
+
@@ -183,7 +183,7 @@
-
Key
+
@@ -254,7 +254,7 @@
+
@@ -289,7 +289,7 @@
Taxon call
+
@@ -331,7 +331,7 @@
File
+
@@ -395,7 +395,7 @@
-
Source
+
@@ -461,7 +461,7 @@
-
+
@@ -520,7 +520,7 @@
-
Sample
+
@@ -588,7 +588,7 @@
-
+
@@ -636,7 +636,7 @@
-
+
From 337fc8cb8263aad99d76df5e44d1b27898032ec7 Mon Sep 17 00:00:00 2001 From: Metehan Sever Date: Mon, 30 Sep 2024 13:53:05 +0200 Subject: [PATCH 38/40] Remove treelib-js --- anvio/data/interactive/lib/treelib-js/LICENSE | 21 ------------------- 1 file changed, 21 deletions(-) delete mode 100644 anvio/data/interactive/lib/treelib-js/LICENSE diff --git a/anvio/data/interactive/lib/treelib-js/LICENSE b/anvio/data/interactive/lib/treelib-js/LICENSE deleted file mode 100644 index 8b75036018..0000000000 --- a/anvio/data/interactive/lib/treelib-js/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2013 Roderic D. M. Page - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file From f20d423a5c2764a92571f5de07b500cf27bfdbd3 Mon Sep 17 00:00:00 2001 From: Metehan Sever Date: Mon, 30 Sep 2024 15:47:30 +0200 Subject: [PATCH 39/40] Update package versions --- anvio/data/interactive/package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/anvio/data/interactive/package.json b/anvio/data/interactive/package.json index 0cc729b1de..55bba502fb 100644 --- a/anvio/data/interactive/package.json +++ b/anvio/data/interactive/package.json @@ -19,21 +19,21 @@ "npm": ">=9.0.0" }, "dependencies": { - "@fontsource/roboto": "^5.0.8", - "@popperjs/core": "^2.11.8", + "@fontsource/roboto": "5.0.8", + "@popperjs/core": "2.11.8", "blueimp-md5": "2.7.0", "bootstrap": "4.6.0", "bootstrap-icons": "1.11.3", "bootstrap-markdown": "2.10.0", "bootstrap-waitingfor": "1.2.7", "d3": "3.5.6", - "html5sortable": "^0.13.3", + "html5sortable": "0.13.3", "jquery": "1.12.4", "jquery-ui": "1.12.1", "marked": "0.3.6", "randomcolor": "0.6.2", - "sortable-tablesort": "^3.2.2", - "svg-pan-zoom": "^3.6.1", + "sortable-tablesort": "3.2.2", + "svg-pan-zoom": "3.6.1", "toastr": "2.1.2" } } From 9a99979b77ee09f8cd8fa75c684cbf0a725b2c6e Mon Sep 17 00:00:00 2001 From: Metehan Sever Date: Mon, 30 Sep 2024 16:24:54 +0200 Subject: [PATCH 40/40] Add nodejs package control --- anvio/utils.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/anvio/utils.py b/anvio/utils.py index 5b4b9afabe..c9a21db0f2 100644 --- a/anvio/utils.py +++ b/anvio/utils.py @@ -842,6 +842,12 @@ def is_all_npm_packages_installed(): raise ConfigError("The interactive directory does not exist in the anvi'o module. " "Please ensure the directory is present.") + # Check if Node.js is installed + if shutil.which("node") is None: + run.warning("Please install Node.js before proceeding.", header="⚠️ NODE.JS IS NOT INSTALLED ⚠️", overwrite_verbose=True, lc='yellow') + run.info_single("1) conda install -c conda-forge nodejs", level=0, overwrite_verbose=True) + raise ConfigError("Node.js is not installed. Please install it using conda and try again.") + # Check if node_modules exists and is not empty node_modules_path = os.path.join(interactive_dir_path, 'node_modules')