openvax / mhcflurry

Peptide-MHC I binding affinity prediction
http://openvax.github.io/mhcflurry/
Apache License 2.0
191 stars 57 forks source link

Illegal Hardware Instruction #183

Closed as1000 closed 3 years ago

as1000 commented 3 years ago

After installing the MHC flurry through pip and downloading the dataset/trained model. I attempted to run the example:

$ mhcflurry-predict \ --alleles HLA-A0201 HLA-A0301 \ --peptides SIINFEKL SIINFEKD SIINFEKQ \ --out /tmp/predictions.csv

The run fails with:

zsh: illegal hardware instruction

On Spyder, although I can import Class1PresentationPredictor fine:

from mhcflurry import Class1PresentationPredictor

When I attempt to load the Class1PresentationPredictor, the Kernel restarts with "WARNING | No such comm":

predictor = Class1PresentationPredictor.load()

timodonnell commented 3 years ago

I'm not sure what would be causing this, but it is likely a tensorflow issue. What version of tensorflow is installed? Are you able to import tensorflow and run a trivial test script like import tensorflow as tf ; print(tf.constant([5]) + tf.constant([3])) ? Does it work if you install mhcflurry in a clean conda environment?

as1000 commented 3 years ago

It seems to be a problem with Tensorflow.