-
Notifications
You must be signed in to change notification settings - Fork 7
[PLA-13752] Address documentation generation warnings. #910
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
anoto-moniz
merged 2 commits into
release/v3.0
from
feature/pla-13752-correct-warnings-in-docs-build
Jan 9, 2024
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| .. generative_design_execution: | ||
|
|
||
| [ALPHA] Generative Design Execution | ||
| =================================== | ||
| The Citrine Platform offers a Generative Design Execution tool that allows the creation of new molecules by applying mutations to a set of given seed molecules. | ||
| To use this feature, you need to provide a set of starting molecules and filtering parameters using the :class:`~citrine.informatics.generative_design.GenerativeDesignInput` class. | ||
|
|
||
| The class requires you to define the seed molecules for generating mutations, the fingerprint type used to calculate the `fingerprint similarity <https://www.rdkit.org/docs/GettingStartedInPython.html#fingerprinting-and-molecular-similarity>`_, the minimum fingerprint similarity between the seed and mutated molecule, the number of initial mutations attempted per seed, and the minimum substructure counts for each mutated molecule. | ||
|
|
||
| Various fingerprint types are available on the Citrine Platform, including Atom Pairs (AP), Path-Length Connectivity (PHCO), Binary Path (BPF), Paths of Atoms of Heteroatoms (PATH), Extended Connectivity Fingerprint with radius 4 (ECFP4) and radius 6 (ECFP6), and Focused Connectivity Fingerprint with radius 4 (FCFP4) and radius 6 (FCFP6). | ||
| Each fingerprint type captures different aspects of molecular structure and influences the generated mutations. | ||
| You can access these fingerprint types through the :class:`~citrine.informatics.generative_design.FingerprintType` enum, like `FingerprintType.ECFP4`. | ||
|
|
||
| The `structure_exclusions` parameter allows you to control the structural features of mutated molecules. | ||
| It is a sequence of exclusion types corresponding to the types of structural features or elements to exclude from the list of possible mutation steps during the generative design process. | ||
| If a type is present in the sequence, the mutation steps generated by the process will avoid using that feature or element. | ||
| The available structure exclusion options can be found in the :class:`~citrine.informatics.generative_design.StructureExclusion` class. | ||
|
|
||
| The `min_substructure_counts` parameter is a dictionary for constraining which substructures (represented by SMILES strings) must appear in each mutated molecule, along with integer values representing the minimum number of times each substructure must appear in a molecule to be considered a valid mutation. | ||
|
|
||
| After the generative design process is complete, the mutations are filtered based on their similarity to the starting seed molecules. | ||
| Mutations that do not meet the similarity threshold or are duplicates will be discarded. The remaining mutations are returned as a subset of the original mutations in the form of a list of :class:`~citrine.informatics.generative_design.GenerativeDesignResult` objects. | ||
| These results contain information about the seed molecule, the mutation, the similarity score, and the fingerprint type used during execution. | ||
|
|
||
| After triggering the execution and waiting for completion, the user can retrieve the results and utilize them in their work.' | ||
| The following example demonstrates how to run a generative design execution on the Citrine Platform using the Citrine Python client. | ||
|
|
||
| .. code-block:: python | ||
|
|
||
| import os | ||
| from citrine import Citrine | ||
| from citrine.jobs.waiting import wait_while_executing | ||
| from citrine.informatics.generative_design import GenerativeDesignInput, FingerprintType, StructureExclusion | ||
|
|
||
| session = Citrine( | ||
| api_key=os.environ.get("API_KEY"), | ||
| scheme="https", | ||
| host=os.environ.get("CITRINE_HOST"), | ||
| port="443", | ||
| ) | ||
|
|
||
| team_uid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
| project_uid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
| team = session.teams.get(team_uid) | ||
| project = team.projects.get(project_uid) | ||
|
|
||
| # Trigger a new generative design execution | ||
| generative_design_input = GenerativeDesignInput( | ||
| seeds=["CC(O)=O", "CCCCCCCCCCCC"], | ||
| fingerprint_type=FingerprintType.ECFP4, | ||
| min_fingerprint_similarity=0.1, | ||
| mutation_per_seed=1000, | ||
| structure_exclusions=[ | ||
| StructureExclusion.BROMINE, | ||
| StructureExclusion.CHLORINE, | ||
| ], | ||
| min_substructure_counts={"c1ccccc1": 1} | ||
| ) | ||
| generative_design_execution = project.generative_design_executions.trigger( | ||
| generative_design_input | ||
| ) | ||
| execution = wait_while_executing( | ||
| collection=project.generative_design_executions, execution=generative_design_execution | ||
| ) | ||
| generated = execution.results() | ||
| mutations = [(gen.seed, gen.mutated) for gen in generated] | ||
|
|
||
| # Or get a completed execution by ID | ||
| execution_uid = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" | ||
| execution = project.generative_design_executions.get(execution_uid) | ||
| generated = execution.results() | ||
| mutations = [(gen.seed, gen.mutated) for gen in generated] | ||
|
|
||
| To execute the code, replace the `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx` placeholders with valid UIDs from your Citrine environment. Ensure that the API key, scheme, host, and port are correctly specified in the `Citrine` initialization. | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| .. _getting-started: | ||
| .. _ai-engine-getting-started: | ||
|
|
||
| Getting Started | ||
| =============== | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.