Skip to content

Commit 95061fd

Browse files
authored
Merge pull request #19 from mathesong/Development
Development
2 parents 6ba08e7 + 56cb4db commit 95061fd

Some content is hidden

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

71 files changed

+4340
-1004
lines changed

DESCRIPTION

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
Package: kinfitr
22
Title: Kinetic Modelling of PET Time Activity Curves
3-
Date: 2020-03-06
4-
Version: 0.4.6
3+
Date: 2020-08-18
4+
Version: 0.6
55
Authors@R: person("Granville", "Matheson", email = "[email protected]", role = c("aut", "cre"))
66
Description: This package calculates outcome parameters for PET data using time activity curves (TACs). The will allow for more reproducible PET modelling research.
77
Depends:
88
R (>= 3.4.0)
99
License: MIT + file LICENSE
1010
Encoding: UTF-8
1111
LazyData: true
12-
RoxygenNote: 7.0.2
12+
RoxygenNote: 7.1.0
1313
Imports:
1414
pracma,
1515
minpack.lm,
@@ -34,7 +34,9 @@ Imports:
3434
invgamma,
3535
cowplot,
3636
car,
37-
mgcv
37+
mgcv,
38+
fs,
39+
stringr
3840
Suggests:
3941
knitr,
4042
devtools,

NAMESPACE

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
S3method(plot,blooddata)
44
S3method(plot,interpblood)
55
S3method(plot,kinfit)
6+
export("%>%")
67
export(Logan_tstar)
78
export(Loganplot)
89
export(Patlak_tstar)
@@ -14,9 +15,16 @@ export(bd_addfit)
1415
export(bd_addfitpars)
1516
export(bd_addfitted)
1617
export(bd_blood_dispcor)
18+
export(bd_create_input)
19+
export(bd_extract)
1720
export(bd_getdata)
21+
export(bd_tidy_times)
22+
export(bids_create_blooddata)
23+
export(bids_filename_attributes)
24+
export(bids_parse_blood)
25+
export(bids_parse_files)
26+
export(bids_parse_study)
1827
export(blmod_exp)
19-
export(blmod_exp_sep)
2028
export(blmod_exp_startpars)
2129
export(blmod_splines)
2230
export(blmod_tidyinput)
@@ -29,8 +37,10 @@ export(create_blooddata_components)
2937
export(decay_correct)
3038
export(decay_uncorrect)
3139
export(fix_multstartpars)
40+
export(frame_cumsum)
3241
export(get_se)
3342
export(kinfit_convolve)
43+
export(lin2tcm)
3444
export(ma1)
3545
export(ma1_tstar)
3646
export(ma2)
@@ -65,6 +75,7 @@ export(plot_inptac_fit)
6575
export(plot_inptac_timings)
6676
export(plot_input)
6777
export(plot_kinfit)
78+
export(plot_lin2tcmfit)
6879
export(plot_ma1fit)
6980
export(plot_ma2fit)
7081
export(plot_mlLoganfit)
@@ -100,10 +111,9 @@ export(twotcm1k_model)
100111
export(twotcm_fitDelay_model)
101112
export(twotcm_model)
102113
export(unit_convert)
114+
export(update_blooddata)
103115
export(weights_create)
116+
export(weights_create_bids)
104117
import(ggplot2)
105-
import(grDevices)
106-
import(graphics)
107-
import(stats)
108-
import(utils)
109118
importFrom(dplyr,"%>%")
119+
importFrom(magrittr,"%>%")

R/kinfitr_1tcm.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ onetcm <- function(t_tac, tac, input, weights = NULL, inpshift = NULL, vB = NULL
217217
) {
218218
warning(
219219
paste0(
220-
"Fitted parameters are hitting upper or lower limit bounds. Consider \n",
220+
"\nFitted parameters are hitting upper or lower limit bounds. Consider \n",
221221
"either modifying the upper and lower limit boundaries, or else using \n",
222-
"multstart when fitting the model (see the function documentation).") )
222+
"multstart when fitting the model (see the function documentation).\n") )
223223
}
224224

225225
# Output

R/kinfitr_2tcm.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ twotcm <- function(t_tac, tac, input, weights = NULL, inpshift = NULL, vB = NULL
235235
) {
236236
warning(
237237
paste0(
238-
"Fitted parameters are hitting upper or lower limit bounds. Consider \n",
238+
"\nFitted parameters are hitting upper or lower limit bounds. Consider \n",
239239
"either modifying the upper and lower limit boundaries, or else using \n",
240-
"multstart when fitting the model (see the function documentation).") )
240+
"multstart when fitting the model (see the function documentation).\n") )
241241
}
242242

243243
# Output

R/kinfitr_2tcm1k.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,9 @@ twotcm1k <- function(t_tac, tac, input, weights = NULL, inpshift = NULL, vB = NU
248248
) {
249249
warning(
250250
paste0(
251-
"Fitted parameters are hitting upper or lower limit bounds. Consider \n",
251+
"\nFitted parameters are hitting upper or lower limit bounds. Consider \n",
252252
"either modifying the upper and lower limit boundaries, or else using \n",
253-
"multstart when fitting the model (see the function documentation).") )
253+
"multstart when fitting the model (see the function documentation).\n") )
254254
}
255255

256256
# Output

0 commit comments

Comments
 (0)