-
Notifications
You must be signed in to change notification settings - Fork 5
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 optim(par = guess, fn = cost.dnarna, llfnDNA = ll.funs$dna, llfnRNA = ll.funs$rna, : non-finite value supplied by optim #11
Comments
Sorry, I forgot to mention that the step that crashes is:
|
@manueltar Thanks! |
Hi Tal, Thank you for your reply. I mean that my data is already normalised, in fact I have data from different cell lines for the same enhancers and I normalised them together using MPRAnalyze "uq". I apply the dnadepth and rnadepth factors to divide my counts and check a series of metrics of the MPRA on the normalised data in all my cell lines (LogFC, ASE, normalised dna counts and rna counts etc). I do this for QC purposes. Then I am interested in running MPRAnalyze separately in each of the cell lines as they will likely have some hits that are exclusive. So I subset my dna and rna count matrixes and I create the annot df from the subset matrixes. For the normalisation step I use the setDepthFactors as explained in the vignette. Because my data is already normalised I set the factors to 1 for the dna and rna counts. This step works but in the analyzeQuantification it thorws the error |
Hi Manuel, thank you for the explanation and for sending over some data. The issue is indeed the pre-normalization. To fix this, I'd suggest one of two things: Please let me know if these aren't clear or if it doesn't work. |
Dear Tal, Thank you very much for your help in this. As you have found out the problem was in passing the normalized data which are not integers. I have done both my approximation and your suggestion:
The results are different between both approaches; the second one yields more significant hits. But I have questions on how to interpret them: |
Hi,
First of all, thank you very much for having done this software, the documentation and the simulated examples.
I am trying to run MPRAnalyze for my MPRA data.
I am running the following version:
I am able to create the object of formal class MpraObject. In my case my data is pre-normalised so my input dna and rna depth is 1:
After googling this error I found a solution based on converting the annot data frame batch and barcode columns into factors. This is not my problem as my annot columns are factors:
Moreover, after the 'mock' normalisation step I retrieve the MpraObject with the adecuate dna/rna depth as well as the annot factors:
obj_2
After all these checks the error persists so I would like to ask you for your help solving this. I am happy to provide all the files involved. Best regards,
The text was updated successfully, but these errors were encountered: