sidhomj / DeepTCR

Deep Learning Methods for Parsing T-Cell Receptor Sequencing (TCRSeq) Data
https://sidhomj.github.io/DeepTCR/
MIT License
113 stars 40 forks source link

ValueError when running "8 - VAE Inference" in unsupervised tutorials #30

Closed marrojwala closed 4 years ago

marrojwala commented 4 years ago

when I am running the inference, I am getting an error when running the following line:

features,_ = DTCRU.Sequence_Inference(beta_sequences=beta_sequences,v_beta=v_beta,j_beta=j_beta)

The error is the following

WARNING:tensorflow:From /home/ubuntu/.local/lib/python3.6/site-packages/DeepTCR/functions/utils_s.py:1005: The name tf.train.import_meta_graph is deprecated. Please use tf.compat.v1.train.import_meta_graph instead.

WARNING:tensorflow:From /home/ubuntu/.local/lib/python3.6/site-packages/DeepTCR/functions/utils_s.py:1006: The name tf.get_default_graph is deprecated. Please use tf.compat.v1.get_default_graph instead.

INFO:tensorflow:Restoring parameters from murine_antigens/models/model_0/model.ckpt
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-5-da530d2eb961> in <module>()
----> 1 features,_ = DTCRU.Sequence_Inference(beta_sequences=beta_sequences,v_beta=v_beta,j_beta=j_beta)

ValueError: too many values to unpack (expected 2)
sidhomj commented 4 years ago

Fixed the tutorial. Original behavior of that function output two values. Now, the second output is an optional output that needs to be requested. Thank you for the heads up!