Nodes/Parametric Studio/PSN ScRNA to Latent
ComfyUI Node

PSN ScRNA to Latent

Converts single-cell clustering results into a latent space representation for diffusion model visualization. Takes cluster data as JSON text (since we cannot use AnnData directly), extracts the gene expression profile for the selected cluster, encodes it into a fixed-size vector, and maps it to the latent space using deterministic random projection. Input format for adata_clustered (JSON text): {

By parametricparadigm·Created 4 days ago·Updated about 3 hours ago· 1
PSN ScRNA to Latent
    • bio_latent
    • metadata
    ◄adata_clustered{"clusters": {"0": {"genes": [1.0, 2.0, 3.0]}}}►
    ◄cluster_id0►
    ◄latent_dim4►
    ◄seed42►
    CategoryParametric/Data

    Inputs (4)

    NameTypeDefaultDescription
    adata_clusteredSTRING{"clusters": {"0": {"genes": [1.0, 2.0, 3.0]}}}JSON text representing AnnData with clustering results
    cluster_idINT00–100000Specific cluster to visualize
    latent_dimINT41–1024Dimensionality of the target latent space
    seedoptINT420–2147483647Seed for deterministic random projection

    Outputs (2)

    NameTypeDescription
    bio_latentFLOAT—
    metadataSTRING—