-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Hello,
I'm following the tutorial to load MERSCOPE data from here:
https://elihei2.github.io/segger_dev/user_guide/data_creation/#merscope-data
In the first step:
Set up the file paths
raw_data_dir = Path("ROOT_PATH")
processed_data_dir = Path("processed_files")
sample_tag = Path("region_X")
Create a MerscopeSample instance for spatial transcriptomics processing
merscope_sample = MerscopeSample()
Load transcripts from a parquet file
merscope_sample.load_transcripts(
base_path=raw_data_dir,
sample=sample_tag,
transcripts_filename="detected_transcripts.parquet",
file_format="parquet",
)
I encountered the following error:
AttributeError: 'MerscopeSample' object has no attribute 'x_min'
Full traceback:
File /segger/src/segger/data/io.py:141, in SpatialTranscriptomicsSample.load_transcripts()
...
x_min = x_min or self.x_min
AttributeError: 'MerscopeSample' object has no attribute 'x_min'
Should I set up the metadata (e.g., call set_metadata()) before calling load_transcripts()?
Or is there something missing in the tutorial example?
Thank you for your help!