ValueError when using simulated data #353
-
Hi, I was trying to run pyrovelocity with simulated data . In particular, I was trying to test it with different kinetics parameters as was was done in another paper. The following function was used to generate the data with the scVelo simulation function
with the following parameters and model
When I try to train the model with the data, the code runs into a value error when calculating a log probability at site u.
I am not quite sure why this error occurs. The training does seem to work if I use a simpler simulation like this one:
However if I change the noise_model to 'normal', the same ValueError when calculating the log_prob as before occurs. Have you by any chance tried to run pyrovelocity with more complex simulations? Or do you know why this type of data is not supported by the distribution? I am not sure if this is a bug or if I am just using the wrong data for the model, so I would appreciate any help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello @hannanebelung , In the first simulation you are likely generating data which are not integer counts. When you set There may be other issues as well. Note that pyrovelocity is under active development and the model is likely to change substantially in relatively short periods of time. Thank you for bringing this point to our attention as it is something we should document clearly. Feel free to let us know if you experience further issues. |
Beta Was this translation helpful? Give feedback.
-
Hi @cameronraysmith, |
Beta Was this translation helpful? Give feedback.
Hello @hannanebelung ,
In the first simulation you are likely generating data which are not integer counts. When you set
noise_model="gillespie"
you are likely generating integer count data. Since the latter may be the only mode of that simulator that respects the domain of real data, we would only endeavor to support this mode. In this case, the simulation still does not capture even the so-called random telegraph approximation to single gene expression that has been validated in single-molecule fluorescence experiments. Of course, this also does not capture the impacts of regulation. This is all to say that, to date, there is not an ideal simulator representative of the phenomenon of in…