/// Converts relative position inside a feature (e.g. gene) to absolute position in the alignment
Converts relative position inside a feature  to absolute position in the alignment
Converts relative position inside a feature to absolute position in the alignment
pub fn feature_ref_to_aln_position(&self, feature: &Gene, ref_pos_rel: usize) -> usize {
    let ref_pos = if feature.strand == GeneStrand::Reverse {
      feature.end - 1 - ref_pos_rel // the feature end is one past the last character, hence -1
    } else {
      feature.start + ref_pos_rel
    };
    self.ref_to_aln_position(ref_pos)
  }
pub fn feature_ref_to_aln_position ( & self , feature : & Gene , ref_pos_rel : usize ) -> usize { let ref_pos = if feature . strand == GeneStrand :: Reverse { feature . end - 1 - ref_pos_rel // the feature end is one past the last character, hence -1 } else { feature . start + ref_pos_rel } ; self . ref_to_aln_position ( ref_pos ) }
Converts relative position inside a feature (e.g.
Converts relative position inside a feature ( e . g .
&self
feature
&Gene
ref_pos_rel
usize