dasi.design.DesignResult

class dasi.design.DesignResult(container, graph, query_key)[source]

Bases: collections.abc.Iterable, typing.Generic

DesignResult container.

Maintains a list of top assemblies.

Methods

add_assemblies(paths[, ignore_invalid, …])

Adds a list of assemblies.

add_assembly(path[, ignore_invalid, …])

Add an assembly from a list of nodes.

Attributes

assemblies

Return a tuple of all assemblies.

__init__(container, graph, query_key)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(container, graph, query_key)

Initialize self.

add_assemblies(paths[, ignore_invalid, …])

Adds a list of assemblies.

add_assembly(path[, ignore_invalid, …])

Add an assembly from a list of nodes.

Attributes

assemblies

Return a tuple of all assemblies.

seqdb

add_assemblies(paths, ignore_invalid=False, allow_invalid=False)[source]

Adds a list of assemblies.

Parameters

paths (List[List[AssemblyNode]]) – list of list of paths

Returns

None

add_assembly(path, ignore_invalid=False, allow_invalid=False)[source]

Add an assembly from a list of nodes.

Parameters

path (List[AssemblyNode]) – list of nodes

Returns

None

property assemblies

Return a tuple of all assemblies.

Return type

Tuple[Assembly, …]

Returns

tuple of all assemblies.