Skip to content

Commit 85a2386

Browse files
move downstream functions to downstream
1 parent c9e6372 commit 85a2386

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/netmap/utils/data_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,10 @@ def retrieve_top_edges(grn_adata, output_dir, percentage=0.1):
128128

129129
def retrieve_edges_by_index(grn_adata, output_dir, index_list):
130130

131-
parquet_files = list(output_dir.glob("*.parquet"))
131+
if not isinstance(output_dir, Path):
132+
output_dir = Path(output_dir)
132133

134+
parquet_files = list(output_dir.glob("*.parquet"))
133135
sorted_indices = np.sort(index_list)
134136

135137
index_set = set(grn_adata.var.index[sorted_indices])

0 commit comments

Comments
 (0)