Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update source data #118

Open
Buglakova opened this issue Dec 11, 2023 · 1 comment
Open

Update source data #118

Buglakova opened this issue Dec 11, 2023 · 1 comment

Comments

@Buglakova
Copy link

Hello,

I would like to add a few new volumes and spot sets to the platy browser. The registration procedure from my raw data to something registered with the volume in the platy browser is still work in progress, so I wonder if there's a way to update the source data without deleting and creating the source again?

@constantinpape
Copy link
Contributor

The registration procedure from my raw data to something registered with the volume in the platy browser is still work in progress, so I wonder if there's a way to update the source data without deleting and creating the source again?

If you know what you're doing you can just replace the corresponding image data or tabular data. You can read the corresponding information about a source from the metadata like this:

from mobie.metadata import read_dataset_metadata

dataset_folder = "/path/to/mobie/project/dataset"

ds_metadata = read_dataset_metadata(dataset_folder)
source_metadata = ["source_name"]

This will contain all info stored within MoBIE about the source (that is not part of the actual data), including the (relative) path to where the data is stored.

You could then replace the data directly instead of removing and adding the source again.

NOTE: if you do this for image data you need to take care to update all resolution levels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants