treams.util.AnnotationSequence.__getitem__

AnnotationSequence.__getitem__(key)

Get an item or subsequence.

Indexing works with integers and slices like regular tuples. Additionally, it is possible to get a copy of the object with (), or a new sequence of mappings in a list (or other iterable) of integers.

Parameters:

key (iterable, slice, int)

Returns:

mapping