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
Hi! I noticed that when building a matrix from alignment and providing the "counts" parameter with a list of non-zero-integers I get an error:
Traceback (most recent call last):
[...] File "/.../logomaker/src/error_handling.py", line 102, in wrapped_func result = func(*args, **kwargs) File "/---/logomaker/src/matrix.py", line 583, in alignment_to_matrix tmp_mat = (char_array == c).astype(float) * counts[:, np.newaxis] TypeError: list indices must be integers or slices, not tuple
When checking the source code I noticed this could be because I was providing a list and not an numpy.array object, and by doing changing that it all worked. I'm just letting you know because in the help it says input should be "None or list of numbers".
Thanks for the awesome work!
[EDIT] I'm using logomaker 0.8 in Python 3.8
The text was updated successfully, but these errors were encountered:
Hi! I noticed that when building a matrix from alignment and providing the "counts" parameter with a list of non-zero-integers I get an error:
Traceback (most recent call last):
[...]
File "/.../logomaker/src/error_handling.py", line 102, in wrapped_func
result = func(*args, **kwargs)
File "/---/logomaker/src/matrix.py", line 583, in alignment_to_matrix
tmp_mat = (char_array == c).astype(float) * counts[:, np.newaxis]
TypeError: list indices must be integers or slices, not tuple
When checking the source code I noticed this could be because I was providing a list and not an numpy.array object, and by doing changing that it all worked. I'm just letting you know because in the help it says input should be "None or list of numbers".
Thanks for the awesome work!
[EDIT] I'm using logomaker 0.8 in Python 3.8
The text was updated successfully, but these errors were encountered: