Skip to content

Commit 7f40735

Browse files
committed
Update h5ad_functions.py
1 parent 675a61d commit 7f40735

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/smftools/informatics/h5ad_functions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515

1616
logger = get_logger(__name__)
1717

18-
p5 = require("pod5", extra="ont", purpose="POD5 metadata")
19-
Reader = p5.Reader
20-
2118

2219
def add_demux_type_annotation(
2320
adata,
@@ -233,6 +230,9 @@ def _collect_read_origins_from_pod5(pod5_path: str, target_ids: set[str]) -> dic
233230
Worker function: scan one POD5 file and return a mapping
234231
{read_id: pod5_basename} only for read_ids in `target_ids`.
235232
"""
233+
p5 = require("pod5", extra="ont", purpose="POD5 metadata")
234+
Reader = p5.Reader
235+
236236
basename = os.path.basename(pod5_path)
237237
mapping: dict[str, str] = {}
238238

0 commit comments

Comments
 (0)