/// Converts relative position inside an aligned feature (e.g. gene) to absolute position in the reference
Converts relative position inside an aligned feature  to absolute position in the reference
Converts relative position inside an aligned feature to absolute position in the reference
pub fn feature_aln_to_ref_position(&self, feature: &Gene, aln_pos_rel: usize) -> usize {
    let aln_pos = if feature.strand == GeneStrand::Reverse {
      self.ref_to_aln_position(feature.end - 1) - aln_pos_rel //feature.end points to the nuc after the feature, hence - 1
    } else {
      self.ref_to_aln_position(feature.start) + aln_pos_rel
    };
    self.aln_to_ref_position(aln_pos)
  }
pub fn feature_aln_to_ref_position ( & self , feature : & Gene , aln_pos_rel : usize ) -> usize { let aln_pos = if feature . strand == GeneStrand :: Reverse { self . ref_to_aln_position ( feature . end - 1 ) - aln_pos_rel //feature.end points to the nuc after the feature, hence - 1 } else { self . ref_to_aln_position ( feature . start ) + aln_pos_rel } ; self . aln_to_ref_position ( aln_pos ) }
Converts relative position inside an aligned feature (e.g.
Converts relative position inside an aligned feature ( e . g .
&self
feature
&Gene
aln_pos_rel
usize