pub fn mask_peptide_frame_shifts_in_place(seq: &mut [Aa], frame_shifts: &[FrameShift]) {
  for frame_shift in frame_shifts {
    fill_range_inplace(seq, &frame_shift.gaps_leading.codon, Aa::Gap);
    fill_range_inplace(seq, &frame_shift.codon, Aa::X);
    fill_range_inplace(seq, &frame_shift.gaps_trailing.codon, Aa::Gap);
  }
}
/// Masks gaps in frame-shifted regions of the peptide.
/// The frame-shifted region is likely misaligned, so the gaps added during peptide alignment don't make sense
/// and we cover them with `X`.
Masks gaps in frame-shifted regions of the peptide.
The frame-shifted region is likely misaligned, so the gaps added during peptide alignment don't make sense
and we cover them with `X`.
Masks gaps in frame - shifted regions of the peptide . The frame - shifted region is likely misaligned so the gaps added during peptide alignment don ' t make sense and we cover them with ` X ` .
pub fn mask_peptide_frame_shifts_in_place(seq: &mut [Aa], frame_shifts: &[FrameShift]) {
  for frame_shift in frame_shifts {
    fill_range_inplace(seq, &frame_shift.gaps_leading.codon, Aa::Gap);
    fill_range_inplace(seq, &frame_shift.codon, Aa::X);
    fill_range_inplace(seq, &frame_shift.gaps_trailing.codon, Aa::Gap);
  }
}
pub fn mask_peptide_frame_shifts_in_place ( seq : & mut [ Aa ] , frame_shifts : & [ FrameShift ] ) { for frame_shift in frame_shifts { fill_range_inplace ( seq , & frame_shift . gaps_leading . codon , Aa :: Gap ) ; fill_range_inplace ( seq , & frame_shift . codon , Aa :: X ) ; fill_range_inplace ( seq , & frame_shift . gaps_trailing . codon , Aa :: Gap ) ; } }
Masks gaps in frame-shifted regions of the peptide.
Masks gaps in frame - shifted regions of the peptide .
seq
&mut [Aa]
frame_shifts
&[FrameShift]
seq
&mut [Aa]
frame_shifts
&[FrameShift]