Views
No views yet
1from gentropy.method.l2g.model import LocusToGeneModel
2from gentropy.common.session import Session
3
4# Load model from Hugging Face Hub
5session = Session()
6model = LocusToGeneModel.load_from_hub(
7 session=session,
8 hf_model_id="opentargets/locus_to_gene"
9)
10
11# Make predictions on your L2G feature matrix
12predictions = model.predict(your_feature_matrix, session)1@article{ghoussaini2021open,
2title={Open Targets Genetics: systematic identification of trait-associated genes using large-scale genetics and functional genomics},
3author={Ghoussaini, Maya and Mountjoy, Edward and Carmona, Maria and others},
4journal={Nature Genetics},
5volume={53},
6pages={1527--1533},
7year={2021},
8doi={10.1038/s41588-021-00945-5}
9}