How to get an AlphaGenome API key
Introduction
For the time being, Google requires a user to have an API key to access the AlphaGenome model. To get this key, follow the steps below.
Steps
1.
Create a google account (i.e. @gmail.com). You should be logged in to this account. Other domains e.g. @ucsf.edu will not work.
2.
Visit this website
You should be taken to a page that looks like this:
Your google account should be displayed in the top right corner.
3.
Click on the Get API Key
link. You should be taken to a page that looks like this:
Fill in the details and click on Create API Key
.
4.
You should receive an API Key that you can copy and paste for access to the model. You can always go back to find your key by clicking on the Get API Key
in step 1.
5.
To use the API key,
```{python}
#| echo: fenced
from alphagenome.models import dna_client
= "<<this is the API key that I created>>"
my_api_key = dna_client.create(my_api_key)
alphagenome_model ```
From here, you can make predictions as in :
```{python}
"...ACGTGAAATA...")
alphagenome_model.predict_sequence(```