Skip to content

Commit 49f2767

Browse files
committed
perf(mztab): lazy load proteomics+pandas
1 parent 5c1a613 commit 49f2767

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

src/modos/io.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import zarr
1414

1515
import modos.genomics.cram as cram
16-
import modos.metabolomics.mztab as mztab
1716
from modos.helpers.schema import dict_to_instance
1817

1918
ext2loader = {
@@ -74,6 +73,8 @@ def extract_metadata(instance, base_path: Path) -> ExtractedMetadata:
7473

7574
match str(instance.data_format):
7675
case "mzTab":
76+
import modos.metabolomics.mztab as mztab
77+
7778
elems = mztab.extract_metadata(instance, base_path)
7879
arrays = None
7980
case "CRAM":

uv.lock

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)