Meta

class regions.Meta(seq=None, **kwargs)[source]

Bases: dict

A base class for region metadata.

Parameters:
seqdict-like, optional

A dictionary or other mapping object to initialize the metadata.

**kwargs

Additional keyword arguments to initialize the metadata.

Attributes Summary

key_mapping

valid_keys

Methods Summary

copy()

Make a deep copy of this object.

setdefault(key[, value])

Insert key with a value of default if key is not in the dictionary.

update(*args, **kwargs)

Update the metadata with the input dictionary.

Attributes Documentation

key_mapping = {}
valid_keys = []

Methods Documentation

copy()[source]

Make a deep copy of this object.

setdefault(key, value=None)[source]

Insert key with a value of default if key is not in the dictionary.

Return the value for key if key is in the dictionary, else default.

update(*args, **kwargs)[source]

Update the metadata with the input dictionary.

Parameters:
*argsdict-like

A dictionary or other mapping object to update the metadata.

**kwargsdict-like

Additional keyword arguments to update the metadata.