Skip to content
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

Log-Likelihood Calculation in DiffAbXL #4

Closed
IrumHu opened this issue Oct 17, 2024 · 1 comment
Closed

Log-Likelihood Calculation in DiffAbXL #4

IrumHu opened this issue Oct 17, 2024 · 1 comment

Comments

@IrumHu
Copy link

IrumHu commented Oct 17, 2024

I have been exploring your DiffAbXL repository and found the section in the README about how to build an interface for benchmarking models. However, I couldn't find any specific code or reference for how DiffAbXL calculates these log-likelihood values. Could you please point me to the relevant part of the repository where this is handled?

@talipucar
Copy link
Collaborator

Hi @IrumHu

This repository was initially intended to contain only the model-related code, while our internal benchmarking pipeline is kept separate. However, I've added a script that demonstrates how to compute the log-likelihood as outlined in the paper (see below). Please note that the compute_loglikelihood method assumes that input variables such as sequence_tokens_list and posterior_list contain values for the specific positions where mutations occur. In other words, the sequences in sequence_tokens_list don’t need to be continuous segments of the entire sequence but should include tokens corresponding to the mutated positions. I will close this issue, but if you have any further questions about it, please feel free to re-open it.

https://github.com/AstraZeneca/DiffAbXL/blob/master/compute_loglikelihood.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants