benchling_api_client.models.feature module

class Feature

Bases: object

A feature from a feature library

__init__(id: Union[benchling_api_client.types.Unset, str] = attr_dict['_id'].default, match_type: Union[benchling_api_client.types.Unset, FeatureMatchType] = attr_dict['_match_type'].default, color: Union[benchling_api_client.types.Unset, str] = attr_dict['_color'].default, feature_library_id: Union[benchling_api_client.types.Unset, str] = attr_dict['_feature_library_id'].default, feature_type: Union[benchling_api_client.types.Unset, None, str] = attr_dict['_feature_type'].default, name: Union[benchling_api_client.types.Unset, str] = attr_dict['_name'].default, pattern: Union[benchling_api_client.types.Unset, str] = attr_dict['_pattern'].default) None

Method generated by attrs for class Feature.

property additional_keys: List[str]
additional_properties: Dict[str, Any]
property color: str

The color of the annotations generated by the feature. Must be a valid hex string

property feature_library_id: str

The id of the feature library the feature belongs to

property feature_type: Optional[str]

The type of feature, like gene, promoter, etc. Note: This is an arbitrary string, not an enum

classmethod from_dict(src_dict: Dict[str, Any]) benchling_api_client.models.feature.T
get(key, default=None) Optional[Any]
property id: str

The id of the feature

property match_type: FeatureMatchType

The match type of the feature. Used to determine how auto-annotate matches are made.

property name: str

The name of the feature

property pattern: str

The pattern used for matching during auto-annotation.

to_dict() Dict[str, Any]