Closed plantformatics closed 1 year ago
Hi! Just saw this thread. What is the version of keras you have in R? This could be because the model was trained on one version of Keras and loaded into another version of Keras. I have keras==2.4.0 in R
The Keras version I have installed is keras_2.11.1
. I can try rolling it back to 2.4.0 - I will update once I give this a go unless you have another recommendation.
Can you let me know which version of tensorflow the TFBS models were constructed with? Both keras and tensorflow versions need to match precisely according to this
Hi! So in my conda environment where I trained the model the tensorflow version was 2.6.2. It could be a bit confusing because when you try to load it into R, R might be using a different version. When I do library(tensorflow) and packageVersion("tensorflow") it says 2.5.0 and if I use tf_version() it says 2.10. I think one of these three should work. I think this is very useful feedback for us and in the future we will try to avoid this kind of interfacing between python and R and do all the coding in Python. Apologies for the inconvenience!
I am running into an error while loading the h5 TFBS model. The command giving the error is as follows:
h5Path <- "../../data/TFBSPrediction/TFBS_model.h5"
TFBindingModel(obj) <- loadTFBSModel(h5Path)
The error I received is:
Any advice on resolving this? I checked the
LoadTFBSModel
function and I don't see anything related to MPI so I am a bit confused why this error is coming up. Thank you!