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: MoleculesArchiveReason) → MoleculesArchivalChange¶

Archive molecules.

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

bulk_create(molecules: Iterable[MoleculeCreate]) → AsyncTaskLink¶

Bulk create molecules.

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

bulk_update(molecules: Iterable[MoleculeBulkUpdate]) → AsyncTaskLink¶

Bulk update molecules.

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

bulk_upsert(body: MoleculesBulkUpsertRequest, returning: Optional[Iterable[str]] = None) → AsyncTaskLink¶

Bulk create or update Molecules.

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

create(molecule: 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, 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]) → MoleculesArchivalChange¶

Unarchive molecules.

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

update(molecule_id: str, molecule: MoleculeUpdate) → Molecule¶

Update a molecule.

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

upsert(entity_registry_id: str, molecule: MoleculeUpsertRequest) → Molecule¶

Create or modify a Molecule.

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