get_type

Function get_type 

Source
pub fn get_type(mut_type: &String) -> &str
Expand description

a one-liner function for generating the type of mutation from the consequence string.

ยงExample

 use ppgg_rust::functions::text_parser::get_type; 
 let test_case="*missense|ITPRID1|ENST00000409210|protein_coding|+|717C>717Y|31643796G>A".to_string(); 
 assert_eq!(*"*missense", *get_type(&test_case));