/// Make a new cleanable sequence object
Make a new cleanable sequence object
Make a new cleanable sequence object
fn new (id: &String, seq: &String, qual: &String) -> Seq{
        let id_copy = Self::sanitize_id(&id);
        let mut thresholds = HashMap::new();
        thresholds.insert("min_avg_qual".to_string(),20.0);
        thresholds.insert("min_length".to_string(),100.0);
        thresholds.insert("min_trim_qual".to_string(),20.0);
        return Seq{
            id:     id_copy,
            seq:    seq.clone(),
            qual:   qual.clone(),
            pairid: String::new(),
            thresholds: thresholds,
        };
    }
fn new ( id : & String , seq : & String , qual : & String ) -> Seq { let id_copy = Self :: sanitize_id ( & id ) ; let mut thresholds = HashMap :: new ( ) ; thresholds . insert ( " " . to_string ( ) , 20.0 ) ; thresholds . insert ( " " . to_string ( ) , 100.0 ) ; thresholds . insert ( " " . to_string ( ) , 20.0 ) ; return Seq { id : id_copy , seq : seq . clone ( ) , qual : qual . clone ( ) , pairid : String :: new ( ) , thresholds : thresholds , } ; }
Make a new cleanable sequence object
Make a new cleanable sequence object
id
&String
seq
&String
qual
&String