-
Notifications
You must be signed in to change notification settings - Fork 42
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
scFoundation gene embeddings for GEARS #35
Comments
Hi, for the details of constructing gene co-expression graph, you may need to also read the original GEARS paper. https://www.nature.com/articles/s41587-023-01905-6 |
Thank you for the clarification! I now understand why |
Happy to know that you figure out the code. As for the contextual embeddings, I think that the contextual gene embeddings offer a more flexible input for the model. This variety of input data may make the model easier to learn the distribution of the input data and predict the results well. Also, the contextual embeddings contain more information about the gene expression level compared with the random initialized one, which is another gain for better prediction. |
I see, thank you for your insights. Did you try conditioning the GEARS model on your learnt, non-contextual gene embeddings? (i.e. the gene name embeddings). In other words, can the performance gain be explained by the quality of gene embeddings as opposed to the contextual aspect? I am still unsure why it is helpful to condition the model on random control cells. |
Hello, thank you for your work and the code. I am trying to understand how the scFoundation embeddings were used within the GEARS framework. In the paper, you mention:
How was the cell-specific gene co-expression graph constructed exactly? I was examining your code and I believe this happens here. Could you clarify what the variable
pre_in
represents? Am I correct in thinking that the GEARS data loader provides the expression of perturbed single-cells indata.x
? My understanding from your paper is that the scFoundation embeddings are extracted using control cells only.Your help would be greatly appreciated!
The text was updated successfully, but these errors were encountered: