Skip to content

Question about x_min, x_max in MerscopeSample().load_transcripts() #115

@Penguinayee

Description

@Penguinayee

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions