Closed sternp closed 2 years ago
Hi, thank you for your interest in CAMISIM!
Unfortunately, this is a known error in Nanosim, you probably have a newer version of scikit-learn
than the version with which the Nanosim error models were trained, you can find possible solutions for this problem here: https://github.com/bcgsc/NanoSim/issues/165
Thanks. It seems to get a bit further in the analysis now (albeit throwing many deprecation warnings). However now it's giving this:
FileNotFoundError: [Errno 2] No such file or directory: 'tools/nanosim_profile/ecoli_ht_length.pkl'
I can't track down this file anywhere. Is it generated by CAMISIM itself?
Oh, that actually might be due to an update that I pushed just Friday, did you update your repository since then?
Indeed, these files are internally - CAMISIM provides Nanosim models for two different versions of Nanosim (1 and 3). Nanosim3 uses the pkl
files while the old Nanosim1 has different files. Something went wrong for you, since ecoli
is the model we provide for Nanosim1, but the file ending (pkl
) suggests that you are using Nanosim3 and the model CAMISIM should use is training
, i.e. the file tools/nanosim_profile/training_ht_length.pkl
. If you updated your repository, you will need to add training
as the profile
in the config file, there is a new nanosim3_config.ini
in the defaults
folder for reference.
The deprecation warnings probably reference the sklearn.neighbors.kde
package? Unfortunately this cannot be avoided when reading the length pkl
file since it was created (by Nanosim) with an old scikit version.
Great - thanks for your help! Those fixes worked.
I'm trying to run a Nanopore simulation however I haven't been able to fix the following error regarding sklearn.neighbors.kde
Are you able to provide any insight into this?
Thanks!