-
Notifications
You must be signed in to change notification settings - Fork 3
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
Error in svd when response_type="transient" #4
Comments
Hi Daniel, Thanks for catching this. The reason for this behaviour is that if all your genes were transient then PC1 wouldn't correspond to anything like "true" pseudotime, whereas PCA-ing only the switch-like genes will still approximate pseudotime. Ways to fix this I would envisage as
In any case, Stan with HMC is normally efficient enough that initialising randomly gets you back to the "truth", whereas Stan with ADVI is obviously sensitive to init. Open to suggestions, Thanks, Kieran |
1 similar comment
Hi Daniel, Thanks for catching this. The reason for this behaviour is that if all your genes were transient then PC1 wouldn't correspond to anything like "true" pseudotime, whereas PCA-ing only the switch-like genes will still approximate pseudotime. Ways to fix this I would envisage as
In any case, Stan with HMC is normally efficient enough that initialising randomly gets you back to the "truth", whereas Stan with ADVI is obviously sensitive to init. Open to suggestions, Thanks, Kieran |
Ah I see, I think random initiation seems like a good option - simple and unrestrictive. |
Firstly thanks for adding the transient option!
However, when response_type="transient" i.e. no genes are designated switching svd throws an error:
Presumably this is due to attempting prcomp on no genes
ouija/R/ouija.R
Line 170 in 1ebc4ea
Perhaps just do a pca of the full Y?
Also in the readme the data is called synth_gex rather than example_gex.
The text was updated successfully, but these errors were encountered: