You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/Users/arahuja/anaconda/lib/python2.7/site-packages/epitopes-0.1-py2.7.egg/epitopes/iedb.py", line 204, in load_tcell
verbose = verbose)
File "/Users/arahuja/anaconda/lib/python2.7/site-packages/epitopes-0.1-py2.7.egg/epitopes/iedb.py", line 79, in _load_dataframe
epitopes = epitopes.map(make_alphabet_transformer(reduced_alphabet))
File "/Users/arahuja/anaconda/lib/python2.7/site-packages/pandas/core/series.py", line 1980, in map
mapped = map_f(values, arg)
File "inference.pyx", line 920, in pandas.lib.map_infer (pandas/lib.c:43334)
File "/Users/arahuja/anaconda/lib/python2.7/site-packages/epitopes-0.1-py2.7.egg/epitopes/features.py", line 26, in transform
return ''.join([chr(48 + reduced_alphabet[char]) for char in s])
TypeError: 'float' object is not iterable
One of the sequences is loaded in as nan
The text was updated successfully, but these errors were encountered:
Thanks. I was transforming the strings before filtering out the null entries. I moved reduced_alphabet to the bottom of _load_dataframe and now it seems to work fine. Obviously needs more unit tests for all these filtering/transform options.
File "/Users/arahuja/anaconda/lib/python2.7/site-packages/epitopes-0.1-py2.7.egg/epitopes/iedb.py", line 204, in load_tcell
verbose = verbose)
File "/Users/arahuja/anaconda/lib/python2.7/site-packages/epitopes-0.1-py2.7.egg/epitopes/iedb.py", line 79, in _load_dataframe
epitopes = epitopes.map(make_alphabet_transformer(reduced_alphabet))
File "/Users/arahuja/anaconda/lib/python2.7/site-packages/pandas/core/series.py", line 1980, in map
mapped = map_f(values, arg)
File "inference.pyx", line 920, in pandas.lib.map_infer (pandas/lib.c:43334)
File "/Users/arahuja/anaconda/lib/python2.7/site-packages/epitopes-0.1-py2.7.egg/epitopes/features.py", line 26, in transform
return ''.join([chr(48 + reduced_alphabet[char]) for char in s])
TypeError: 'float' object is not iterable
One of the sequences is loaded in as nan
The text was updated successfully, but these errors were encountered: