Skip to main content

split_id_name

Function split_id_name 

Source
pub fn split_id_name(composite: &str) -> (&str, &str)
Expand description

Inverse of compose_id_name: split a composite id{ROW_SEP}name display name back into (id, name) on the first ROW_SEP. When there is no separator (a bare symbol, or an id-only composite where name was empty or equalled id) both parts are the whole string, so a 10x features.tsv still gets a non-empty gene name.