Residue.remove_trailing_gaps() — remove gap(s) after this residue

remove_trailing_gaps(ngap=1)
This removes ngap gaps from the alignment, immediately after this residue. (This usually has no effect if called for gaps after the last residue in a sequence, since those gaps are necessary in order to line up with other sequences in the alignment.) Not available for model sequences.