-
Notifications
You must be signed in to change notification settings - Fork 11
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
Set tau=0 when running TCA? #21
Comments
|
Thanks for your prompt reply! |
yes, there is one additional key difference: we model the covariance of variation in expression/methylation between cell types |
I see, thanks! |
I have a follow-up question regarding the weights input |
Hi again! I tried running I got another question about |
What do you mean by W that contains zero elements? An empty matrix? This should return an error. re the tau problem -- you can open a new issue and I will look into it. However, why would you want to set a fixed tau instead of estimating it? |
No I mean some elements of the weight matrix W are exactly 0, which means that some samples do not contain any of a particular cell type. That could happen in real data. Re the tau problem, for my explorative analyses of data using TCA, I would like to minimize tau and let the hidden source-specific error term (sigma_{hj}^2) explain the variation observed in the data as much as I can. I think that should be doable with current TCA implementation, based on the documentation? |
The code is not expected to throw an error in that case. The Z_hat estimates of a cell type with fraction 0 in a certain sample are expected to be tiny (but not necessarily exactly zero). Decreasing tau too much is expected to compromise the quality of the model and the accuracy of estimates so this is not advisable. |
Thanks for your reply! I see. But is it still doable to fix tau at some small value, instead of having to have TCA estimate it? |
Thanks for developing this great package! I have two quick questions.
tca
withtau=0
? Does that still give sensible results? I'm asking this because it seems that the way you calculate the posterior for Z_ijh (described in equation 5-9 in the methods section in the paper) will no longer hold if tau is exactly 0?tca
function to estimate cell type-specific expression values as well, if I setX
to be the gene expression data matrix? That is, in your algorithm the values ofX
do not have to be beta values that range from 0 and 1, is that right?Thanks very much!
The text was updated successfully, but these errors were encountered: