remove_gaps#

biotite.sequence.align.remove_gaps(alignment)[source]#

Remove all gap columns from an alignment.

Parameters:
alignmentAlignment

The alignment to be modified.

Returns:
truncated_alignmentAlignment

The alignment without gap columns.

See also

remove_terminal_gaps

Remove only terminal gap columns.