Skip to main content

tokenize_sasa

Function tokenize_sasa 

Source
pub fn tokenize_sasa(sasa_values: &[f32]) -> Vec<u32>
Expand description

Discretize a slice of per-residue SASA values into token IDs.

Each value is placed in the leftmost bin where value < boundary. Values above all boundaries fall into the highest bin.