sbol3.subcomponent
Module Contents
Classes
The SubComponent class can be used to specify structural |
Functions
|
Used by Document to construct a SubComponent when reading an SBOL file. |
- class SubComponent(instance_of: Identified | str, *, role_integration: str | None = None, locations: Location | List[Location] = None, source_locations: Location | List[Location] = None, roles: List[str] = None, orientation: str = None, name: str = None, description: str = None, derived_from: List[str] = None, generated_by: List[str] = None, measures: List[SBOLObject] = None, identity: str = None, type_uri: str = SBOL_SUBCOMPONENT)
Bases:
sbol3.feature.Feature
The SubComponent class can be used to specify structural hierarchy. For example, the Component of a gene might contain four SubComponent objects: a promoter, RBS, CDS, and terminator, each linked to a Component that provides the complete definition. In turn, the Component of the promoter SubComponent might itself contain SubComponent objects defining various operator sites, etc.
- accept(visitor: Any) Any
Invokes visit_sub_component on visitor with self as the only argument.
- Parameters:
visitor (Any) – The visitor instance
- Raises:
AttributeError – If visitor lacks a visit_sub_component method
- Returns:
Whatever visitor.visit_sub_component returns
- Return type:
Any
- build_subcomponent(identity: str, type_uri: str = SBOL_SUBCOMPONENT) Identified
Used by Document to construct a SubComponent when reading an SBOL file.