Skip to main content

normalize_organ_key

Function normalize_organ_key 

Source
pub fn normalize_organ_key(raw: &str) -> String
Expand description

Normalize a CCF/HRA organ key to a model-agnostic base token: strip the 3d-vh-m- / 3d-vh-f- asset prefix, the .glb suffix, and a trailing laterality (-l/-r/-left/-right), leaving the bare organ ("3d-vh-m-eye-l.glb" → "eye", "blood-vasculature" → "blood-vasculature").