skbio.metadata.IntervalMetadata.add#

IntervalMetadata.add(bounds, fuzzy=None, metadata=None)[source]#

Create and add an Interval to this IntervalMetadata.

This method creates an Interval object and inserts it into the IntervalMetadata object.

Parameters:
boundsiterable of tuple of ints

Tuples representing start and end coordinates. It is zero-based numbering. It is always inclusive on start bound and exclusive on end bound.

fuzzyiterable of tuple of bool, optional

Tuples representing the fuzziness of each bound coordinates.

metadatadict, optional

A dictionary of key-value pairs associated with the Interval object.

Returns:
Interval

The Interval object added.