Skip to content

Commit

Permalink
Update scene component names (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-dark committed May 13, 2024
1 parent a8e0940 commit 71d04da
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Expand Up @@ -15,7 +15,7 @@ repos:
- id: mypy
additional_dependencies:
- "pandas-stubs==1.5.3.230214"
- "somacore @ git+https://github.com/single-cell-data/SOMA.git@ee2aba7ec7f56996e" # DO NOT MERGE TO MAIN
- "somacore @ git+https://github.com/single-cell-data/SOMA.git@7702f52359e" # DO NOT MERGE TO MAIN
- "types-setuptools==67.4.0.3"
args: ["--config-file=apis/python/pyproject.toml", "apis/python/src", "apis/python/devtools"]
pass_filenames: false
20 changes: 10 additions & 10 deletions apis/python/src/tiledbsoma/experimental/ingest.py
Expand Up @@ -173,13 +173,13 @@ def from_visium(
scene, "images", images, use_relative_uri=use_relative_uri
)

obss_uri = f"{scene_uri}/obss"
obsl_uri = f"{scene_uri}/obsl"
with _create_or_open_collection(
Collection[AnyTileDBObject], obss_uri, **ingest_ctx
) as obss:
_maybe_set(scene, "obss", obss, use_relative_uri=use_relative_uri)
Collection[AnyTileDBObject], obsl_uri, **ingest_ctx
) as obsl:
_maybe_set(scene, "obsl", obsl, use_relative_uri=use_relative_uri)

obs_loc_uri = f"{obss_uri}/obs_locations"
obs_loc_uri = f"{obsl_uri}/loc"

# Write spot data and add to the scene.
with _write_visium_spot_dataframe(
Expand All @@ -191,14 +191,14 @@ def from_visium(
**ingest_ctx,
) as obs_loc:
_maybe_set(
obss, "loc", obs_loc, use_relative_uri=use_relative_uri
obsl, "loc", obs_loc, use_relative_uri=use_relative_uri
)

scene_ms_uri = f"{scene_uri}/vars"
varl_uri = f"{scene_uri}/varl"
with _create_or_open_collection(
Collection[Collection[AnyTileDBObject]], scene_ms_uri, **ingest_ctx
) as vars:
_maybe_set(scene, "vars", vars, use_relative_uri=use_relative_uri)
Collection[Collection[AnyTileDBObject]], varl_uri, **ingest_ctx
) as varl:
_maybe_set(scene, "varl", varl, use_relative_uri=use_relative_uri)
return uri


Expand Down

0 comments on commit 71d04da

Please sign in to comment.