I have a question regarding the Python TileDB SOMA package. Is there a method or function available to search metadata?
For instance, let’s say I have registered a SOMA Experiment with the metadata {“analyst”: “Johnny Bravo”}. I’m looking for a method such as: ‘search_in_soma_experiments_metadata(query=“analyst == ‘Johnny Bravo’”)’.
tiledbsoma.Experiment
objects are abstractions of tiledb.Group
s, so you can use tiledb-py
to open up the experiment as a group object and look at its metadata:
import tiledb
with tiledb.Group(soma_uri) as grp:
print(grp.meta)
In tiledbsoma
you follow a similar pattern:
with tiledbsoma.open(soma_uri) as soma_exp:
print(soma_exp.metadata)
For users of our cloud platform, you can query all asset metadata ultra-fast using our python REST api:
import tiledb.cloud
response = tiledb.cloud.client.list_groups(
namespace,
group_type="soma",
per_page=500,
search="T cell",
with_metadata=True,
)