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
On line 117 of connect_all_patients.py, I end up with an empty list for direct_hit_list because the byte objects in node_list (line 28) have not been decoded to get strings. Therefore, the list in line 116 ends up with all False values. I fixed this by adding the following line right after node_list is read from file on line 28:
node_list = np.array([node.decode() for node in node_list])
This fixed the issue, giving me a list of 3183 items for direct_hit_list (on line 117). This, then, gave me the expected output:
On line 117 of connect_all_patients.py, I end up with an empty list for direct_hit_list because the byte objects in node_list (line 28) have not been decoded to get strings. Therefore, the list in line 116 ends up with all False values. I fixed this by adding the following line right after node_list is read from file on line 28:
node_list = np.array([node.decode() for node in node_list])
This fixed the issue, giving me a list of 3183 items for direct_hit_list (on line 117). This, then, gave me the expected output:
SEP STATS: (3183,) Counter({'SideEffect': 1851, 'Compound': 922, 'Symptom': 257, 'Disease': 137, 'Gene': 16})
The text was updated successfully, but these errors were encountered: