Skip to content

Support spatial data in coldata_to_df() #77

@jashapiro

Description

@jashapiro

In , @allyhawkins created a function spatial_coldata_to_df() that adds some of the data from the spatialData slot of a SpatialExperiment to the main colData contents after merging.

For scpcaTools, I think it would make sense to wrap that functionality into coldata_to_df(), where the function would check whether we were working with a SpatialExperiment, and if so, merge all contents of the spatialData slot with the colData contents.

There is a small wrinkle in that we expect spatialData to go away in a future version of the SpatialExperiment package drighelli/SpatialExperiment#84. We should plan to deal with that case as we write this for futureproofing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions