Comments (3)
On the online version (https://aldomann.shinyapps.io/biodose-tools-beta/_w_b7e02338/_w_ab289c0a/), the issue seems to be reproduced depending on the .rds file used.
Issue occurs using this rds, generated by the offline version 3.2.0:
dicentrics-fitting-data-2020-02-12.zip
The issue could not be reproduced on the online version using this rds generated by the online version:
dicentrics-fitting-data-2020-02-05.zip
However, the 2 rds files produce ""subscript out of bounds" error using the offline version 3.2.0
The 2 rds files analysed directly in R seems to be identical...
eric<-readRDS("O:/dicentrics-fitting-data-2020-02-05.rds")
gae<-readRDS("O:/dicentrics-fitting-data-2020-02-12.rds")
gae[["fit_raw_data"]]==eric[["fit_raw_data"]]
D N X C0 C1 C2 C3 C4 C5 C6 mean var DI u
[1,] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[2,] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[3,] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[4,] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[5,] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[6,] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[7,] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[8,] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[9,] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[10,] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[11,] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[12,] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[13,] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[14,] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[15,] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[16,] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
[17,] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE
round(gae$fit_coeffs, digits = 4)==round(eric$fit_coeffs, digits = 4)
estimate std.error statistic p.value
C TRUE TRUE TRUE TRUE
a TRUE TRUE TRUE TRUE
ß TRUE TRUE TRUE TRUE
round(gae$fit_var_cov_mat, digits = 10)==round(eric$fit_var_cov_mat, digits = 10)
C a ß
C TRUE TRUE TRUE
a TRUE TRUE TRUE
ß TRUE TRUE TRUE
from biodosetools.
The bug can not be reproduce when .rds file is generated with 3.2.0.
It may come from alpha and beta characters used for $fit_formula_raw, only difference between the rds file that produces the "subscript out of bounds" error and the one that does not induce the error.
Suggest to close the issue that may be link to the issue #5
from biodosetools.
This issue was introduced by the change of internal variable names for C, alpha, and beta in v3.2.0. Note that v3.3.0 can't read dicentrics-fitting-data-2020-02-12.rds
either.
By creating a new fitting RDS object with the same count data (see table below), v3.3.0 is able to estimate the case C0: 480, C1: 20 with no issues.
Fixing #5 will likely cause some breakage in legacy RDS files as well, as it will require a substantial rewrite for some functions. This should however the last breaking change fix.
D | C0 | C1 | C2 | C3 | C4 | C5 |
---|---|---|---|---|---|---|
0.0 | 19173 | 21 | ||||
0.05 | 1674 | 3 | ||||
0.1 | 1546 | 6 | ||||
0.15 | 478 | 3 | ||||
0.24 | 1046 | 11 | ||||
0.3 | 1730 | 38 | ||||
0.33 | 1169 | 18 | ||||
0.5 | 2837 | 81 | 1 | |||
0.8 | 1444 | 89 | 4 | 1 | ||
1 | 783 | 82 | 4 | |||
1.6 | 1278 | 225 | 22 | |||
2 | 1365 | 421 | 51 | 6 | 1 | |
2.3 | 248 | 91 | 9 | 3 | 1 | |
3 | 425 | 264 | 76 | 13 | 5 | |
4 | 199 | 199 | 94 | 34 | 8 | |
4.7 | 98 | 146 | 67 | 20 | 9 | 1 |
5.77 | 23 | 27 | 23 | 17 | 2 | 1 |
from biodosetools.
Related Issues (20)
- Show user that the calculations are still ongoing HOT 2
- Warning when the optim algorithm doesn't converge HOT 2
- Docx report do not render (3.2.0) HOT 2
- Rounding error in manual fitting curve input HOT 2
- full vs aggregated data HOT 1
- Partial body dose estimation generate error HOT 1
- Broken confounder widgets in translocations HOT 1
- GLM quasi-Poisson doesn't detect overdispersed data HOT 1
- With pandoc installed works the .docx report of the 3.3 version but pandoc is not available for 32 bits windows and the report generation fails HOT 2
- Probe solo con R (sin R studio instalado) la version de R 4.03. Mozilla actualizado y Offline.
- Error when using manual fitting coefficients in dose estimation
- CG poisson interval
- addreg formula HOT 2
- Dicentrics analisys HOT 1
- Wrong aberrations count with Ck for k >= 10
- bootstrap u test p values small counts aberrations
- Suggestion: to add a result table after partial body assessment
- Deviance , AIC different from glm solution
- Wrong reported u-value HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biodosetools.