github.com/uhlerlab/spatialfusion/unimodal-embeddings-for-spatialfusion
Authors/Creators
Description
Unimodal Embeddings for SpatialFusion
These WDL workflows generate the unimodal embedding inputs used by SpatialFusion:
GenerateUnimodalEmbeddingsForSpatialFusiongenerates bothscGPT.parquetandUNI.parquetfrom one Terra submission.GenerateScgptEmbeddingsForSpatialFusiongeneratesscGPT.parquetfrom spatial transcriptomics data.GenerateUniEmbeddingsForSpatialFusiongeneratesUNI.parquetfrom H&E / whole-slide imaging data.
Use the combined workflow if you want both outputs from one Terra submission. Use the modality-specific workflows for scGPT-only or UNI-only runs.
Combined Inputs
adata: AnnData (.h5ad) file used for scGPT embeddings and for the spatial coordinates consumed by UNI. Spatial coordinates are expected inadata.obsm["spatial"].input_is_log_normalized: whether the AnnData expression values in the selected layer are already log-normalized.wsi: H&E / whole-slide image in TIFF / OME-TIFF format.uni_weights: UNI model weights file (pytorch_model.bin) from Mahmood Lab.
scGPT Inputs
adata: AnnData (.h5ad) file used for scGPT embeddings.input_is_log_normalized: whether the AnnData expression values in the selected layer are already log-normalized.
scGPT weights are bundled in the workflow Docker image at /app/scgpt_weights, so users do not need to provide a scGPT weights input.
UNI Inputs
adata: AnnData (.h5ad) file with spatial coordinates stored inadata.obsm["spatial"].wsi: H&E / whole-slide image in TIFF / OME-TIFF format.uni_weights: UNI model weights file (pytorch_model.bin) from Mahmood Lab.
UNI weights are not bundled with the workflow. Users must request access to the UNI2-h weights from Mahmood Lab at https://huggingface.co/MahmoodLab/UNI2-h, upload the weights file to an accessible gs:// bucket, and provide that path as the uni_weights input.
Files
github.com-uhlerlab-spatialfusion-unimodal-embeddings-for-spatialfusion_v0.2.0.zip
Files
(3.1 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:ba54c47fea3441588241fedde7ccf10c
|
3.1 kB | Preview Download |
Additional details
Related works
- Is identical to
- https://dockstore.org/aliases/workflow-versions/10.5281-zenodo.21364065 (URL)
- https://dockstore.org/workflows/github.com/uhlerlab/spatialfusion/unimodal-embeddings-for-spatialfusion:v0.2.0 (URL)
- https://dockstore.org/api/ga4gh/trs/v2/tools/%23workflow%2Fgithub.com%2Fuhlerlab%2Fspatialfusion%2Funimodal-embeddings-for-spatialfusion/versions/v0.2.0/PLAIN-WDL/descriptor/unimodal_embeddings_for_spatialfusion.wdl (URL)