Hi, I’m trying to use AlphaGenome according to Installation — AlphaGenome. I added API key to secrets as recommended, and tried to run the following scripts:
“from alphagenome.data import genome
from alphagenome.models import dna_client
from alphagenome.visualization import plot_components
import matplotlib.pyplot as pltAPI_KEY = ‘MyAPIKey’
model = dna_client.create(API_KEY)interval = genome.Interval(chromosome=‘chr22’, start=35677410, end=36725986)
variant = genome.Variant(
chromosome=‘chr22’,
position=36201698,
reference_bases=‘A’,
alternate_bases=‘C’,
)outputs = model.predict_variant(
interval=interval,
variant=variant,
ontology_terms=[‘UBERON:0001157’],
requested_outputs=[dna_client.OutputType.RNA_SEQ],
)
, which is an example in google-deepmind/alphagenome: This API provides programmatic access to the AlphaGenome model developed by Google DeepMind. However I got the error as follows:
“grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with:
status = StatusCode.PERMISSION_DENIED
details = “Requests to this API Problems in using API method google.gdm.gdmscience.alphagenome.v1main.DnaModelService.PredictVariant are blocked.”
debug_error_string = “UNKNOWN:Error received from peer ipv4:142.250.74.74:443 {grpc_message:“Requests to this API Problems in using API method google.gdm.gdmscience.alphagenome.v1main.DnaModelService.PredictVariant are blocked.”, grpc_status:7}”
, which I raised in predict_variant step. I also checked that “Google DeepMind Science API“ is enabled. Could you please give some suggestions on this?