Skip to content

Commit 56c62d0

Browse files
Allow ecs with a single transcript ID (for real this time)
1 parent 412c0e8 commit 56c62d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kb_python/extract.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def get_mm_ecs(t2g_path, txnames, temp_dir):
138138
ecs_mm = []
139139
for index, row in ec_df.iterrows():
140140
# Get transcript IDs that mapped to this ec
141-
if isinstance(row[1], int):
141+
if isinstance(row[1], np.int64) or isinstance(row[1], int):
142142
mapped_txs = np.array(txs)[row[1]]
143143
else:
144144
mapped_txs = np.array(txs)[np.array(row[1].split(",")).astype(int)]

0 commit comments

Comments
 (0)