Closed ialas closed 1 year ago
Looks like it's having a problem parsing the MiBIG JSON files from the mibig_json
folder. I can see from the screenshot you're using v1.4 which should be fine, that version has always been supported. The JSON structure changed between v1.x and v2.x and it should handle both, but what's happening according to the error message is it's not finding the expected JSON attribute for v1.x, so it tries v2.x and doesn't find that either.
If I download the current v1.4 database, it seems to have 1816 .json
files but your output shows 1817:
19:01:55 [INFO] genomics.py:538, Found 1817 MiBIG json files
Might be worth checking if there's a stray file in there from a different source? Or you could try deleting the folder and let NPLinker create it again.
If that doesn't help you should probably open a copy of this issue over in the core NPLinker repo as this isn't a problem with the webapp itself.
Thank you for the information! After tinkering around with it, it turns out that when using MIBIG version 1.4, the program requests BGC0002000 from MIBIG. After downloading it, it runs into the error seen above when trying to perform some function with that BGC.
Deleting the MIBIG 1.4.tar.gz file and/or the mibig_json folder didn't help, as it simply downloads that BGC again.
The only solution I've found so far is to download mibig_json_2.0.tar.gz, and extract the contents into the mibig_json folder (replacing the previous 1.4 mibig files entirely).
Thank you very much for your assistance!
Good to hear it's working now! To avoid having to do the manual renaming you should be able to tell NPLinker to use v2.0 by setting mibig_version
in your NPLinker config file:
[dataset]
root = "..."
mibig_version = "2.0"
(see here)
I think what's happening is:
BGC0002000
which doesn't appear in the v1.4 database NPLinker uses by defaultSo chances are the JSON format has been changed again in the v3.x database and the v3.x data in the downloaded file isn't recognised by NPLinker.
I'll create another issue in the NPLinker repo to note that this will need fixed at some point, thanks for reporting it!
I've observed the error "KeyError('cluster') when running the docker image of nplinker-webapp on a local dataset. I've replicated the error in both windows subsystem for linux and windows.
Specifics: Upon running
docker run --name webapp -p 5006:5006 -v your_shared_folder:/data:rw nlesc/nplinker
with a local data folder set up as following information written here, and "your_shared_folder" set up to match my specific shared folder pathway, I receive the error "Error in server loaded hook KeyError('cluster').Attached is the output of the run, including the bigscape run. Here is the output of specifically the error:
The full run output text can be seen here: nplinkerError.txt
Additional information: Windows version: 10.0, Build 19044, Windows Education Windows Subsystem for Linux:
Docker version 20.10.17, build 100c701 GNPS was run using METABOLOMICS-SNETS-v2 version_release_30 The setup of dataset_1 is seen here:
Antismash files were generated using a local installation (v6.0.0). The antiSMASH folder contains only the *.gbk files for every strain, with the prefix indicating the strain (ex:
a2056.tig0000001.region001.gbk
). The docker image pulled wassha256:4092f31590227942823b785627aa4d9488a546fe73fe6bc52f07dd22d0ef2fb6