keller-mark / visium-dlpfc-processing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

visium-dlpfc

Sample 151673

Data obtained from:

Data conversion

RData to rds

load("Human_DLPFC_Visium_processedData_sce_scran_spatialLIBD.Rdata")
saveRDS(sce, file="Human_DLPFC_Visium_processedData_sce_scran_spatialLIBD.rds")

rds to AnnData with manual layer annotations

See Jupyter notebook convert_rds_to_adata.ipynb

All to SpatialData

See Jupyter notebook convert_all_to_spatialdata.ipynb

To obtain scale factors

> library(STexampleData)
> spe <- Visium_humanDLPFC()
> imgData(spe)
DataFrame with 2 rows and 4 columns
      sample_id    image_id   data scaleFactor
    <character> <character> <list>   <numeric>
1 sample_151673      lowres   ####   0.0450045
2 sample_151673       hires   ####   0.1500150

> imgData(spe)[1, 'data']
[[1]]
600 x 600 (width x height) LoadedSpatialImage

> imgData(spe)[2, 'data']
[[1]]
2000 x 2000 (width x height) LoadedSpatialImage

About


Languages

Language:Jupyter Notebook 100.0%