Skip to content

Commit 2b3b457

Browse files
authored
v1.1.5
1 parent afc5eb7 commit 2b3b457

File tree

52 files changed

+790
-248
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+790
-248
lines changed

.Rbuildignore

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
1-
^_pkgdown\.yml$
2-
^\.github$
3-
^\.lintr$
4-
^\.Rplots\.pdf$
5-
^\.Rproj\.user$
6-
^\.vscode$
7-
^app\.R$
8-
^check/$
9-
^codecov\.yml$
10-
^cran-comments\.md$
11-
^CRAN-SUBMISSION$
12-
^Dockerfile$
13-
^docs$
14-
^FastRet\.Rproj$
15-
^misc$
16-
^pkgdown$
17-
^TODOS.md$
18-
^vignettes$
1+
^(?i)_pkgdown\.yml$
2+
^(?i)\.github$
3+
^(?i)\.lintr$
4+
^(?i)\.pytest_cache$
5+
^(?i)\.rplots\.pdf$
6+
^(?i)\.rproj\.user$
7+
^(?i)\.vscode$
8+
^(?i)app\.r$
9+
^(?i)check/$
10+
^(?i)codecov\.yml$
11+
^(?i)cran-comments\.md$
12+
^(?i)cran-submission$
13+
^(?i)dockerfile$
14+
^(?i)docs$
15+
^(?i)fastret\.rproj$
16+
^(?i)misc$
17+
^(?i)out\..*$
18+
^(?i)out$
19+
^(?i)pkgdown$
20+
^(?i)r*cmd*check.log$
21+
^(?i)r*cmd*check.md$
22+
^(?i)reports$
23+
^(?i)todos.md$
24+
^(?i)vignettes$

.gitignore

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1+
.pytest_cache/
12
.Rhistory
23
.Rproj
34
.Rproj.user
45
.vscode/
5-
docs
6-
FastRet.Rproj
7-
inst/doc
8-
tests/testthat/Rplots.pdf
96
*.bkp
107
check/
8+
docs/
9+
FastRet.Rproj
10+
inst/doc/
11+
out/
12+
rcmdcheck.log
13+
tests/testthat/Rplots.pdf
14+
reproduce_results.html
15+
reproduce_results.md

DESCRIPTION

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: FastRet
22
Title: Retention Time Prediction in Liquid Chromatography
3-
Version: 1.1.4
3+
Version: 1.1.5
44
Authors@R: c(
55
person(given = "Christian", family = "Amesoeder", role = c("aut", "cph"), email = "[email protected]", comment = c(ORCID = "0000-0002-1668-8351")),
66
person(given = "Marian", family = "Schoen", role = c("aut", "cph"), email = "[email protected]"),
@@ -36,15 +36,14 @@ Imports:
3636
ggplot2,
3737
glmnet,
3838
htmltools,
39+
openxlsx,
3940
promises,
4041
rcdk,
41-
readxl,
4242
shiny (>= 1.8.1),
4343
shinybusy,
4444
shinyhelper,
4545
shinyjs,
46-
xgboost,
47-
xlsx
46+
xgboost
4847
Suggests:
4948
cli,
5049
devtools,

NEWS.md

Lines changed: 156 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,169 @@
1-
# FastRet 1.1.4
1+
# FastRet 1.1.5 <!-- Commit Date: 2025-06-26 -->
22

3-
* Added a cache cleanup handler that gets registered via `reg.finalizer()` upon package loading to ensure that the cache directory is removed if it doesn't contain any files that should persist between R sessions.
4-
* Added an article about installation details incl. a troubleshooting section
5-
* Improved function docs
6-
* Improved examples by removing `donttest` blocks
7-
* Improved examples & tests by using smaller example datasets to reduce runtime
3+
- Improved `read_retip_hilic_data()`:
4+
the dataset is now only downloaded from GitHub if the package is not installed.
5+
If it is installed, the dataset is loaded directly.
86

9-
# FastRet 1.1.3
7+
- Internal Changes:
8+
- Removed TODOS.md
9+
- Bumped version to 1.1.5
10+
- Moved all data related functions from `util.R` to `data.R`
11+
- Added a README to `misc/datasets`
12+
- Added functions `load_all()` and `document()` to `util.R`
13+
- Replaced `xlsx` and `readxl` packages with `openxlsx`
1014

11-
* Fixed issues mentioned by CRAN reviewer after initial submission of FastRet (v1.1.2):
12-
- __Comment 1__: *Please do not modify the .GlobalEnv. This is not allowed by the CRAN policies. -> R/patch.R*
13-
- __Solution__: Moved `patch.R` from the `R` folder to `misc/scripts`, which is excluded from the package build using `.Rbuildignore`. The file is conditionally sourced by the private function `start_gui_in_devmode()` if available, allowing its use during development without including it in the package.
14-
- __Comment 2__: *Please add \value to .Rd files regarding exported methods and explain the functions' results in the documentation. Please write about the structure of the output (class) and also what the output means. (If a function does not return a value, document that too, e.g., \value{No return value, called for side effects} or similar) -> Missing Rd-tags: adjust_frm.Rd: \value, analyzeCDNames.Rd: \value, getCDs.Rd: \value, getCDsFor1Molecule.Rd: \value, read_rpadj_xlsx.Rd: \value*
15-
- __Solution__: Added `\value` tags to the mentioned `.Rd` files describing the functions' return values.
16-
- __Comment 3__: *If there are references describing the methods in your package, please add these in the description field of your DESCRIPTION file in the form authors (year) <doi:...> authors (year, ISBN:...) or if those are not available: <https:...> with no space after 'doi:', 'https:' and angle brackets for auto-linking. (If you want to add a title as well please put it in quotes: "Title")*
17-
- __Solution__: Added *Bonini et al. (2020) <doi:10.1021/acs.analchem.9b05765>* as reference to the description part of the DESCRIPTION file, listing it as *Related work*. This reference is used in the documentation for `read_retip_hilic_data()` and `ram_cache`. No additional references are used in the package documentation.
18-
* Added Fadi Fadil as a contributor. Fadi measured the example datasets shipped with FastRet.
19-
* Added ORCID IDs for contributors as described in [CRAN's checklist for submissions](https://cran.r-project.org/web/packages/submission_checklist.html).
15+
# FastRet 1.1.4 <!-- Commit Date: 2025-02-08 -->
2016

21-
# FastRet 1.1.2
17+
- Added a cache cleanup handler that gets registered via
18+
`reg.finalizer()` upon package loading to ensure that the cache
19+
directory is removed if it doesn't contain any files that should
20+
persist between R sessions.
2221

23-
* Wrapped examples of `read_rp_xlsx()` and `read_rpadj_xlsx()` into `donttest` to prevent note `Examples with CPU time > 2.5 times elapsed time: ...`. By now I'm pretty sure the culprit is the `xlsx` package, which uses a java process for reading the file. Maybe we should switch to openxlsx or readxl in the future.
22+
- Added an article about installation details incl. a
23+
troubleshooting section
2424

25-
# FastRet 1.1.1
25+
- Improved function docs
2626

27-
* Improved examples of `preprocess_data()` to prevent note `Examples with CPU time > 2.5 times elapsed time: preprocess_data (CPU=2.772, elapsed=0.788)`.
27+
- Improved examples by removing `donttest` blocks
2828

29-
# FastRet 1.1.0
29+
- Improved examples & tests by using smaller example datasets to
30+
reduce runtime
3031

31-
* Added RAM caching to `getCDs()`
32+
# FastRet 1.1.3 <!-- Commit Date: 2024-06-24 -->
3233

33-
# FastRet 1.0.3
34+
- Moved `patch.R` from the `R` folder to `misc/scripts`, which is
35+
excluded from the package build using `.Rbuildignore`. The file
36+
is conditionally sourced by the private function
37+
`start_gui_in_devmode()` if available, allowing its use during
38+
development without including it in the package.
3439

35-
* Initial CRAN Submission.
40+
- Added `\value` tags to the mentioned `.Rd` files describing the
41+
functions' return values.
3642

37-
Rejected because the following examples caused at least one of the following notes on the CRAN testing machines: CPU time > 5s`, `CPU time > 2.5 times elapsed time`. In this context, `CPU time` is calculated as the sum of the easured `user` and `system` times.
43+
- Added *Bonini et al. (2020) <doi:10.1021/acs.analchem.9b05765>*
44+
as reference to the description part of the DESCRIPTION file,
45+
listing it as *Related work*. This reference is used in the
46+
documentation for `read_retip_hilic_data()` and `ram_cache`. No
47+
additional references are used in the package documentation.
3848

39-
| function | user | system | elapsed | ratio |
40-
| -------------------- | --------- | ------ | ------- | --------- |
41-
| check_lm_suitability | **5.667** | 0.248 | 2.211 | **2.675** |
42-
| predict.frm | 2.477 | 0.112 | 0.763 | **3.393** |
43-
| getCDs | 2.745 | 0.089 | 0.961 | **2.949** |
49+
- Added Fadi Fadil as a contributor. Fadi measured the example
50+
datasets shipped with FastRet.
51+
52+
- Added ORCID IDs for contributors as described in [CRAN's
53+
checklist for submissions].
54+
55+
[CRAN's checklist for submissions]:
56+
https://cran.r-project.org/web/packages/submission_checklist.html
57+
58+
# FastRet 1.1.2 <!-- Commit Date: 2024-06-18 -->
59+
60+
- Wrapped examples of `read_rp_xlsx()` and `read_rpadj_xlsx()`
61+
into `donttest` to prevent note "Examples with CPU time > 2.5
62+
times elapsed time: ...". By now I'm pretty sure the culprit is
63+
the `xlsx` package, which uses a java process for reading the
64+
file. Maybe we should switch to openxlsx or readxl in the
65+
future.
66+
67+
# FastRet 1.1.1 <!-- Commit Date: 2024-06-18 -->
68+
69+
- Improved examples of `preprocess_data()` to prevent note
70+
"Examples with CPU time > 2.5 times elapsed time:
71+
preprocess_data (CPU=2.772, elapsed=0.788)".
72+
73+
# FastRet 1.1.0 <!-- Commit Date: 2024-06-17 -->
74+
75+
- Added RAM caching to `getCDs()`
76+
77+
# FastRet 1.0.3 <!-- Commit Date: 2024-06-13 -->
78+
79+
- Added examples to `start_gui()`, `fastret_app()`, `getCDsFor1Molecule()`,
80+
`analyzeCDNames()`, `check_lm_suitabilitym()`, `plot_lm_suitability()`,
81+
`extendedTask()`, `selective_measuring()`, `train_frm()`, `adjust_frm()`,
82+
`get_predictors()`
83+
- Improved lots of existing examples
84+
- Added additionalo logging messages at various places
85+
- Submitted to CRAN, but rejected because the following examples
86+
caused at least one of the following notes on the CRAN testing
87+
machines: (1) "CPU time > 5s", (2) "CPU time > 2.5 times elapsed
88+
time". In this context, "CPU time" is calculated as the sum of
89+
the measured "user" and "system" times.
90+
91+
| function | user | system | elapsed | ratio |
92+
| -------------------- | ------| ------ | ------- | ----- |
93+
| check_lm_suitability | 5.667 | 0.248 | 2.211 | 2.675 |
94+
| predict.frm | 2.477 | 0.112 | 0.763 | 3.393 |
95+
| getCDs | 2.745 | 0.089 | 0.961 | 2.949 |
96+
97+
# FastRet 1.0.2 <!-- Commit Date: 2024-06-11 -->
98+
99+
- Improved github actions
100+
101+
# FastRet 1.0.1 <!-- Commit Date: 2024-06-07 -->
102+
103+
- Improved github actions
104+
105+
# FastRet 1.0.0 <!-- Commit Date: 2024-06-07 -->
106+
107+
Completely refactored source code, e.g.:
108+
109+
- Added a test suite covering all important functions
110+
111+
- The UI now uses Extended Tasks for background processing,
112+
allowing GUI usage by multiple users at the same time
113+
114+
- The clustering now uses Partitioning Around Medoids (PAM)
115+
instead of k-means, which is faster and much better suited for
116+
our use case
117+
118+
- The training of the Lasso and/or XGBoost models is no longer
119+
done using `caret` but using `glmnet` and `xgboost` directly.
120+
The new implementation is much faster and allows for full
121+
control over the number of workers started.
122+
123+
- Function `getCDs` now caches the results on Disk, making the
124+
retrieval of chemical descriptors much faster
125+
126+
- The GUI now has a console element, showing the progress of the
127+
background tasks like clustering and model training
128+
129+
- The GUI has a cleaner interface, because lots of the options are
130+
now hidden in the "Advanced" tab by default and are only
131+
displayed upon user request
132+
133+
# FastRet 0.99.7 <!-- Commit Date: 2023-11-30 -->
134+
135+
- Fixed R CMD check findings
136+
- Fixed Github Actions
137+
- Fixed Dockerfile
138+
139+
# FastRet 0.99.6 <!-- Commit Date: 2023-11-30 -->
140+
141+
- Added contact, privacy policy
142+
- Fixed Dockerfile
143+
144+
# FastRet 0.99.4 <!-- Commit Date: 2023-11-29 -->
145+
146+
- Improved Github Actions and Formatting of source code
147+
148+
# FastRet 0.99.3 <!-- Commit Date: 2023-11-29 -->
149+
150+
- Reduce required R version in DESCRIPTION from 4.2 to 4.1
151+
- Added Dockerfile
152+
- Fixed R CMD check warnings
153+
- Fixed R CMD check action
154+
155+
# FastRet 0.99.2 <!-- Commit Date: 2023-11-27 -->
156+
157+
- Added documentation website at:
158+
https://spang-lab.github.io/FastRet/
159+
160+
# FastRet 0.99.1 <!-- Commit Date: 2023-11-27 -->
161+
162+
- Initial version.
163+
164+
Copy of commit cd243aa82a56df405df8060b84535633cf06b692 of
165+
[Christian Amesöders
166+
Repository](https://github.com/ChristianAmes/FastRet.git).
167+
(Christian wrote this initial version of FastRet as part of his
168+
master thesis at the Institute of functional Genomics,
169+
University of Regensburg).

0 commit comments

Comments
 (0)