benchling_sdk.services.v2.stable.molecule_service module¶

class MoleculeService¶

Bases: benchling_sdk.services.v2.base_service.BaseService

Molecules.

Molecules are groups of atoms held together by bonds, representing entities smaller than DNA Sequences and AA Sequences. Just like other entities, they support schemas, tags, and aliases.

See https://benchling.com/api/reference#/Molecules

archive(molecule_ids: Iterable[str], reason: benchling_api_client.v2.stable.models.molecules_archive_reason.MoleculesArchiveReason) → benchling_api_client.v2.stable.models.molecules_archival_change.MoleculesArchivalChange¶

Archive molecules.

See https://benchling.com/api/reference#/Molecules/archiveMolecules

bulk_create(molecules: Iterable[benchling_api_client.v2.stable.models.molecule_create.MoleculeCreate]) → AsyncTaskLink¶

Bulk create molecules.

See https://benchling.com/api/reference#/Molecules/bulkCreateMolecules

bulk_update(molecules: Iterable[benchling_api_client.v2.stable.models.molecule_bulk_update.MoleculeBulkUpdate]) → AsyncTaskLink¶

Bulk update molecules.

See https://benchling.com/api/reference#/Molecules/bulkUpdateMolecules

create(molecule: benchling_api_client.v2.stable.models.molecule_create.MoleculeCreate) → Molecule¶

Create a molecule.

See https://benchling.com/api/reference#/Molecules/createMolecule

get_by_id(molecule_id: str) → Molecule¶

Get a molecule.

See https://benchling.com/api/reference#/Molecules/getMolecule

list(modified_at: Optional[str] = None, name: Optional[str] = None, name_includes: Optional[str] = None, folder_id: Optional[str] = None, mentioned_in: Optional[List[str]] = None, project_id: Optional[str] = None, registry_id: Optional[str] = None, schema_id: Optional[str] = None, archive_reason: Optional[str] = None, mentions: Optional[List[str]] = None, sort: Optional[Union[str, benchling_api_client.v2.stable.models.list_molecules_sort.ListMoleculesSort]] = None, ids: Optional[Iterable[str]] = None, entity_registry_ids_any_of: Optional[Iterable[str]] = None, names_any_of: Optional[Iterable[str]] = None, schema_fields: Optional[Dict[str, Any]] = None, page_size: Optional[int] = None, author_idsany_of: Optional[Iterable[str]] = None, chemical_substructuremol: Optional[str] = None, chemical_substructuresmiles: Optional[str] = None) → PageIterator[Molecule]¶

List molecules.

See https://benchling.com/api/reference#/Molecules/listMolecules

unarchive(molecule_ids: Iterable[str]) → benchling_api_client.v2.stable.models.molecules_archival_change.MoleculesArchivalChange¶

Unarchive molecules.

See https://benchling.com/api/reference#/Molecules/unarchiveMolecules

update(molecule_id: str, molecule: benchling_api_client.v2.stable.models.molecule_update.MoleculeUpdate) → Molecule¶

Update a molecule.

See https://benchling.com/api/reference#/Molecules/updateMolecule