Skip to main content

parse_norm_method

Function parse_norm_method 

Source
pub fn parse_norm_method(s: &str) -> Option<NormMethod>
Expand description

Parses edgeR’s method string.

Case-insensitive. TMMwzp is accepted as the old spelling of TMMwsp, as in edgeR.

§Params

  • s - Method name, e.g. "TMM" or "upperquartile"

§Returns

The variant, or None. NormMethod::try_from returns the error instead.