/// Returns a Motif representing the sequences provided.
/// # Arguments
/// * `seqs` - sequences incorporated into motif
/// * `pseudos` - array slice with a pseudocount for each monomer;
///    defaults to pssm::DEF_PSEUDO for all if None is supplied
///
/// FIXME: pseudos should be an array of size MONO_CT, but that
/// is currently impossible - see
/// https://github.com/rust-lang/rust/issues/42863
Returns a Motif representing the sequences provided.
Returns a Motif representing the sequences provided .
pub fn from_seqs(seqs: &[Vec<u8>], pseudos: Option<&[f32]>) -> Result<Self> {
        let w = Self::seqs_to_weights(seqs, pseudos)?;
        let mut m = ProtMotif {
            scores: w,
            min_score: 0.0,
            max_score: 0.0,
        };
        m.normalize();
        m.calc_minmax();
        Ok(m)
    }
pub fn from_seqs ( seqs : & [ Vec < u8 > ] , pseudos : Option < & [ f32 ] > ) -> Result < Self > { let w = Self :: seqs_to_weights ( seqs , pseudos ) ? ; let mut m = ProtMotif { scores : w , min_score : 0.0 , max_score : 0.0 , } ; m . normalize ( ) ; m . calc_minmax ( ) ; Ok ( m ) }
Returns a Motif representing the sequences provided.
Returns a Motif representing the sequences provided .
seqs
&[Vec<u8>]
pseudos
Option<&[f32]>