Skip to content

Commit

Permalink
add more examples everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Zulkower committed Dec 16, 2024
1 parent 2e536be commit 9bcfb2c
Show file tree
Hide file tree
Showing 6 changed files with 8,241 additions and 1 deletion.
9 changes: 9 additions & 0 deletions docs/source/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,14 @@ AA0 model
~~~~~~~~~~~

.. literalinclude:: ../../examples/3utr_model.py
:language: python
:linenos:



Boltz structure inference
~~~~~~~~~~~~~~~~~~~~~~~~~

.. literalinclude:: ../../examples/boltz_structure_inference/gfp.py
:language: python
:linenos:
30 changes: 29 additions & 1 deletion docs/source/ref.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,40 @@ GinkgoAIClient
Mean embedding Queries
~~~~~~~~~~~~~~~~~~~~~~

Used to get embedding vectors for protein or nucleotide sequences, using models such as ESM, Ginkgo-AA0, etc.

.. autoclass:: ginkgo_ai_client.queries.MeanEmbeddingQuery
.. autoclass:: ginkgo_ai_client.queries.EmbeddingResponse

Masked inference queries
~~~~~~~~~~~~~~~~~~~~~~~~

Used to get maximum-likelihood predictions for masked protein or nucleotide sequences, using models such as ESM, Ginkgo-AA0, etc.

.. autoclass:: ginkgo_ai_client.queries.MaskedInferenceQuery
.. autoclass:: ginkgo_ai_client.queries.SequenceResponse
.. autoclass:: ginkgo_ai_client.queries.SequenceResponse


Promoter activity prediction queries
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Used to predict the activity of promoters in various human tissues, using Borzoi and Ginkgo's Promoter-0

.. autoclass:: ginkgo_ai_client.queries.PromoterActivityQuery
.. autoclass:: ginkgo_ai_client.queries.PromoterActivityResponse

Diffusion queries
~~~~~~~~~~~~~~~~~

Used to generate protein or nucleotide sequences using Ginkgo-devloped diffusion models LCDNA and AB-Diffusion.

.. autoclass:: ginkgo_ai_client.queries.DiffusionMaskedQuery
.. autoclass:: ginkgo_ai_client.queries.DiffusionMaskedResponse

Boltz structure inference queries
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Used to predict the 3D structure of a protein sequence using Boltz.

.. autoclass:: ginkgo_ai_client.queries.BoltzStructurePredictionQuery
.. autoclass:: ginkgo_ai_client.queries.BoltzStructurePredictionResponse
2 changes: 2 additions & 0 deletions examples/boltz_structure_inference/gfp.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Simple example where we predict the 3D structure of the GFP protein."""

from ginkgo_ai_client import GinkgoAIClient, BoltzStructurePredictionQuery

client = GinkgoAIClient()
Expand Down
Loading

0 comments on commit 9bcfb2c

Please sign in to comment.