//Return a new sequence that is the complement of the old sequence.
Return a new sequence that is the complement of the old sequence.
Return a new sequence that is the complement of the old sequence .
pub fn complement(&self) -> Sequence {
            let s = self.nucleotides.iter().map( |n| 
                match n {
                    A => T, 
                    C => G, 
                    G => C, 
                    T => T, 
                    Gap => Gap,
                }
            ).collect::<Vec<Nucleotide>>();
            Sequence { label:self.label.clone(), nucleotides:s } 
        }
pub fn complement ( & self ) -> Sequence { let s = self . nucleotides . iter ( ) . map ( | n | match n { A => T , C => G , G => C , T => T , Gap => Gap , } ) . collect :: < Vec < Nucleotide > > ( ) ; Sequence { label : self . label . clone ( ) , nucleotides : s } }
Return a new sequence that is the complement of the old sequence.
Return a new sequence that is the complement of the old sequence .
&self