alhambra.seeds
#
Module Contents#
Classes#
Abstact Base Class for a seed structure. |
|
Abstact Base Class for a seed structure. |
|
Abstact Base Class for a seed structure. |
|
Tall rectangle origami to DX-tile seed (Barish et al) |
Functions#
|
Attributes#
- class alhambra.seeds.Seed[source]#
Bases:
abc.ABC
Abstact Base Class for a seed structure.
Generally, seeds need:
A method to convert the seed to xgrow-usable information.
Methods to convert the seed to and from a dict, for storage
- abstract to_xgrow(gluenamemap: Callable[[str], str] = lambda x: ..., offset: tuple[int, int] | None = None, xgtiles: Sequence[xgrow.tileset.Tile] | None = None) tuple[list[xgrow.tileset.Tile], list[xgrow.tileset.Bond], xgrow.tileset.InitState] [source]#
Create xgrow implementation of the seed.
Converts the Seed to a list of xgrow tiles to add to a system, a list of bonds to add, and an initial state.
- class alhambra.seeds.SeedSupportingScadnano[source]#
Bases:
Seed
Abstact Base Class for a seed structure.
Generally, seeds need:
A method to convert the seed to xgrow-usable information.
Methods to convert the seed to and from a dict, for storage
- class alhambra.seeds.DXOrigamiSeed[source]#
Bases:
Seed
Abstact Base Class for a seed structure.
Generally, seeds need:
A method to convert the seed to xgrow-usable information.
Methods to convert the seed to and from a dict, for storage
- classmethod from_dict(d: dict) DXOrigamiSeed [source]#
- to_xgrow(gluenamemap: Callable[[str], str] = lambda x: ..., offset: tuple[int, int] | None = None, xgtiles: Sequence[xgrow.tileset.Tile] | None = None) tuple[list[xgrow.tileset.Tile], list[xgrow.tileset.Bond], xgrow.tileset.InitState] [source]#
Create xgrow implementation of the seed.
Converts the Seed to a list of xgrow tiles to add to a system, a list of bonds to add, and an initial state.
- alhambra.seeds._convert_adapts(adapters: Sequence[tuple[str | alhambra.glues.Glue, str | alhambra.glues.Glue]]) list[tuple[alhambra.glues.Glue, alhambra.glues.Glue]] [source]#
- class alhambra.seeds.DiagonalSESeed[source]#
Bases:
Seed
Tall rectangle origami to DX-tile seed (Barish et al)
- adapters: Sequence[tuple[alhambra.glues.Glue, alhambra.glues.Glue]][source]#
- classmethod from_dict(d: dict[str, Any]) DiagonalSESeed [source]#
- to_xgrow(gluenamemap: Callable[[str], str] = lambda x: ..., offset: tuple[int, int] | None = None, xgtiles: Sequence[xgrow.tileset.Tile] | None = None) tuple[list[xgrow.tileset.Tile], list[xgrow.tileset.Bond], xgrow.tileset.InitState] [source]#
Create xgrow implementation of the seed.
Converts the Seed to a list of xgrow tiles to add to a system, a list of bonds to add, and an initial state.