Open DongShengze opened 1 week ago
Please provide your input dataset or its exact format, and I hope my student Qingyang can help address the issue you encountered or suggest whether scDesign3 can help.
Best, Jessica
On Wed, Oct 23, 2024 at 8:43 PM Ca @.***> wrote:
This dataset works on both splatter and zinb-wave, but it didn't work when I followed the tutorial simulation of a single type of cell:
copula_result <- fit_model_scDesign2(data_mat, 'type', sim_method = 'copula') Error in pnbinom(gene, size = param[2], mu = param[3]) : 数学函数中用了非数值参数 此外: There were 50 or more warnings (use warnings() to see the first 50) warnings() 警告信息: 1: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 2: In sqrt(1/i) : 产生了NaNs 3: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 4: In sqrt(1/i) : 产生了NaNs 5: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 6: In sqrt(1/i) : 产生了NaNs 7: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 8: In sqrt(1/i) : 产生了NaNs 9: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 10: In sqrt(1/i) : 产生了NaNs 11: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 12: In sqrt(1/i) : 产生了NaNs 13: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 14: In sqrt(1/i) : 产生了NaNs 15: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 16: In sqrt(1/i) : 产生了NaNs 17: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 18: In sqrt(1/i) : 产生了NaNs 19: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 20: In sqrt(1/i) : 产生了NaNs 21: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 22: In sqrt(1/i) : 产生了NaNs 23: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 24: In sqrt(1/i) : 产生了NaNs 25: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 26: In sqrt(1/i) : 产生了NaNs 27: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 28: In sqrt(1/i) : 产生了NaNs 29: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 30: In sqrt(1/i) : 产生了NaNs 31: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 32: In sqrt(1/i) : 产生了NaNs 33: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 34: In sqrt(1/i) : 产生了NaNs 35: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 36: In sqrt(1/i) : 产生了NaNs 37: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 38: In sqrt(1/i) : 产生了NaNs 39: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 40: In sqrt(1/i) : 产生了NaNs 41: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 42: In sqrt(1/i) : 产生了NaNs 43: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 44: In sqrt(1/i) : 产生了NaNs 45: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 46: In sqrt(1/i) : 产生了NaNs 47: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 48: In sqrt(1/i) : 产生了NaNs 49: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 50: In sqrt(1/i) : 产生了NaNs
If you can provide some tips or help, I would really appreciate it!
— Reply to this email directly, view it on GitHub https://github.com/JSB-UCLA/scDesign2/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQZP7H27Z4IKHVJ2EAUXP43Z46KIJAVCNFSM6AAAAABQOXGKSKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYYDQNBWGEYDGNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thanks a lot for your reply!
Please check the dataset that attached to this email. What I'm providing is a float array, and when I use it, I'm rounding it to integer. This is a gene subset of the original dataset, containing 2000 hypervariable genes with a total of 1422 samples. All samples share the same cell-type. I want to generate an equal number of samples with scDesign2. My error may have been due to my lack of experience with R, but I didn't know what to do. I would appreciate it if you could give me some help.
At 2024-10-23 22:22:02, "Junction of Statistics and Biology" @.***> wrote:
Please provide your input dataset or its exact format, and I hope my student Qingyang can help address the issue you encountered or suggest whether scDesign3 can help.
Best, Jessica
On Wed, Oct 23, 2024 at 8:43 PM Ca @.***> wrote:
This dataset works on both splatter and zinb-wave, but it didn't work when I followed the tutorial simulation of a single type of cell:
copula_result <- fit_model_scDesign2(data_mat, 'type', sim_method = 'copula') Error in pnbinom(gene, size = param[2], mu = param[3]) : 数学函数中用了非数值参数 此外: There were 50 or more warnings (use warnings() to see the first 50) warnings() 警告信息: 1: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 2: In sqrt(1/i) : 产生了NaNs 3: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 4: In sqrt(1/i) : 产生了NaNs 5: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 6: In sqrt(1/i) : 产生了NaNs 7: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 8: In sqrt(1/i) : 产生了NaNs 9: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 10: In sqrt(1/i) : 产生了NaNs 11: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 12: In sqrt(1/i) : 产生了NaNs 13: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 14: In sqrt(1/i) : 产生了NaNs 15: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 16: In sqrt(1/i) : 产生了NaNs 17: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 18: In sqrt(1/i) : 产生了NaNs 19: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 20: In sqrt(1/i) : 产生了NaNs 21: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 22: In sqrt(1/i) : 产生了NaNs 23: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 24: In sqrt(1/i) : 产生了NaNs 25: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 26: In sqrt(1/i) : 产生了NaNs 27: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 28: In sqrt(1/i) : 产生了NaNs 29: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 30: In sqrt(1/i) : 产生了NaNs 31: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 32: In sqrt(1/i) : 产生了NaNs 33: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 34: In sqrt(1/i) : 产生了NaNs 35: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 36: In sqrt(1/i) : 产生了NaNs 37: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 38: In sqrt(1/i) : 产生了NaNs 39: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 40: In sqrt(1/i) : 产生了NaNs 41: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 42: In sqrt(1/i) : 产生了NaNs 43: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 44: In sqrt(1/i) : 产生了NaNs 45: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 46: In sqrt(1/i) : 产生了NaNs 47: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 48: In sqrt(1/i) : 产生了NaNs 49: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 50: In sqrt(1/i) : 产生了NaNs
If you can provide some tips or help, I would really appreciate it!
— Reply to this email directly, view it on GitHub https://github.com/JSB-UCLA/scDesign2/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQZP7H27Z4IKHVJ2EAUXP43Z46KIJAVCNFSM6AAAAABQOXGKSKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYYDQNBWGEYDGNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Please directly send an email to me @.) and Qingyang Wang ( @.) with your example dataset and R code. I couldn't see your attachment in the comment. Thanks!
Best, Jessica
On Thu, Oct 24, 2024 at 10:26 AM Ca @.***> wrote:
Thanks a lot for your reply!
Please check the dataset that attached to this email. What I'm providing is a float array, and when I use it, I'm rounding it to integer. This is a gene subset of the original dataset, containing 2000 hypervariable genes with a total of 1422 samples. All samples share the same cell-type. I want to generate an equal number of samples with scDesign2. My error may have been due to my lack of experience with R, but I didn't know what to do. I would appreciate it if you could give me some help.
At 2024-10-23 22:22:02, "Junction of Statistics and Biology" @.***> wrote:
Please provide your input dataset or its exact format, and I hope my student Qingyang can help address the issue you encountered or suggest whether scDesign3 can help.
Best, Jessica
On Wed, Oct 23, 2024 at 8:43 PM Ca @.***> wrote:
This dataset works on both splatter and zinb-wave, but it didn't work when I followed the tutorial simulation of a single type of cell:
copula_result <- fit_model_scDesign2(data_mat, 'type', sim_method = 'copula') Error in pnbinom(gene, size = param[2], mu = param[3]) : 数学函数中用了非数值参数 此外: There were 50 or more warnings (use warnings() to see the first 50) warnings() 警告信息: 1: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 2: In sqrt(1/i) : 产生了NaNs 3: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 4: In sqrt(1/i) : 产生了NaNs 5: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 6: In sqrt(1/i) : 产生了NaNs 7: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 8: In sqrt(1/i) : 产生了NaNs 9: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 10: In sqrt(1/i) : 产生了NaNs 11: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 12: In sqrt(1/i) : 产生了NaNs 13: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 14: In sqrt(1/i) : 产生了NaNs 15: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 16: In sqrt(1/i) : 产生了NaNs 17: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 18: In sqrt(1/i) : 产生了NaNs 19: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 20: In sqrt(1/i) : 产生了NaNs 21: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 22: In sqrt(1/i) : 产生了NaNs 23: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 24: In sqrt(1/i) : 产生了NaNs 25: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 26: In sqrt(1/i) : 产生了NaNs 27: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 28: In sqrt(1/i) : 产生了NaNs 29: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 30: In sqrt(1/i) : 产生了NaNs 31: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 32: In sqrt(1/i) : 产生了NaNs 33: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 34: In sqrt(1/i) : 产生了NaNs 35: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 36: In sqrt(1/i) : 产生了NaNs 37: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 38: In sqrt(1/i) : 产生了NaNs 39: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 40: In sqrt(1/i) : 产生了NaNs 41: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 42: In sqrt(1/i) : 产生了NaNs 43: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 44: In sqrt(1/i) : 产生了NaNs 45: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 46: In sqrt(1/i) : 产生了NaNs 47: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 48: In sqrt(1/i) : 产生了NaNs 49: In theta.ml(Y, mu, sum(w), w, limit = control$maxit, trace = control$trace > ... : iteration limit reached 50: In sqrt(1/i) : 产生了NaNs
If you can provide some tips or help, I would really appreciate it!
— Reply to this email directly, view it on GitHub https://github.com/JSB-UCLA/scDesign2/issues/7, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AQZP7H27Z4IKHVJ2EAUXP43Z46KIJAVCNFSM6AAAAABQOXGKSKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYYDQNBWGEYDGNQ
. You are receiving this because you are subscribed to this thread.Message ID: @.***>
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
— Reply to this email directly, view it on GitHub https://github.com/JSB-UCLA/scDesign2/issues/7#issuecomment-2434102525, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQZP7H4PPMDQMEB3SO5S6JLZ5BLELAVCNFSM6AAAAABQOXGKSKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZUGEYDENJSGU . You are receiving this because you commented.Message ID: @.***>
I'm sorry but I could not see the email address, they were masked by the website. I have uploaded the file in this comment, maybe you can check that this time. Thank you for your patience. fibroblast_float.zip scDesign2_test_code.zip
This dataset works on both splatter and zinb-wave, but it didn't work when I followed the tutorial simulation of a single type of cell:
If you can provide some tips or help, I would really appreciate it!