Keywords: manual

Next: model.get_deletions() return Up: The model class: handling Previous: model.residue_range() return Contents Index

## model.get_insertions() -- return a list of all insertions

`get_insertions(aln, minlength, maxlength, extension)`

> This returns a list of all insertions (i.e., residue ranges in which the model sequence, which must be the last in the alignment aln, is aligned only with gaps in the other sequences). Each residue range is extended by extension residues either side of the insertion, and is only returned if it is at least minlength residues long, but not longer than maxlength.

> See also model.get_deletions(), model.loops().

Example: See selection() command.