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

how to deal with the seq position of reference genome? #63

Closed
zzzseeu opened this issue Apr 26, 2024 · 1 comment
Closed

how to deal with the seq position of reference genome? #63

zzzseeu opened this issue Apr 26, 2024 · 1 comment

Comments

@zzzseeu
Copy link

zzzseeu commented Apr 26, 2024

Hi dallatt,

Thanks for your work and providing such a great tool.

I would like to know how you process the sequence position information of the reference genome. I saw in the article that during the data preparation stage, the mutation sequence in the individual from corresponding position was used to replace the tokens of the reference seq. I don't know how this step is implemented because I don't see the input related to position information in your codes.

image

Looking forward to your reply, thanks!

@dallatt
Copy link
Contributor

dallatt commented May 14, 2024

Hello @zzzseeu ,

This replacement of the tokens is done offline, outside of the model. During the training, a given sequence is sampled from the reference genome and we modify it with the given mutation before tokenizing, and the resulting tokens are fed to the model.

Hope this helps!
Hugo

@dallatt dallatt closed this as completed May 14, 2024
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