-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrkwarddev_plugin_script_dpcReport.R
More file actions
77 lines (62 loc) · 2.23 KB
/
Copy pathrkwarddev_plugin_script_dpcReport.R
File metadata and controls
77 lines (62 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# RKWard plugin for the generation of reports from dPCR experiments. dPCRs can
# be analyzed in R as described in Rödiger S, Burdukiewicz M, Blagodatskikh KA,
# Schierack P. R as an Environment for the Reproducible Analysis of DNA
# Amplification Experiments. The R Journal 2015;7:127–50. The dpcReport function
# from the dpcR package eases the creation of complete reports. This RKWard
# plugin enables the access from the GUI menu.
require(rkwarddev)
local({
## Author names and contact information
about.info <- rk.XML.about(
name = "dPCR report",
author = c(
person(given = "Stefan", family = "Roediger",
email = "Stefan.Roediger@b-tu.de",
role = c("aut","cre")),
person(given = "Michal", family = "Burdukiewicz",
email = "michalburdukiewicz@gmail.com",
role = c("aut"))),
about = list(desc = "GUI interface to generate reports from dPCR experiments.",
version = "0.0.1",
url = "https://raw.githubusercontent.com/devSJR/dpcR_rk/master/rkwarddev_plugin_script_dpcReport.R")
)
## Help page
plugin.summary <- rk.rkh.summary(
"Analysis of dPCR experiments."
)
plugin.usage <- rk.rkh.usage(
"Start the dPCR report from the menu and conduct the analysis in the GUI."
)
## Dependencies
dependencies.info <- rk.XML.dependencies(dependencies = list(rkward.min = "0.6.3"),
package = list(c(name = "dpcR", min = "0.1.4.0")))
## General settings
run.dpcReport.chk <- rk.XML.cbox(label = "Start dPCR report generation", value = "1", un.value = "0", chk = TRUE)
basic.settings <- rk.XML.row(
run.dpcReport.chk
)
full.dialog <- rk.XML.dialog(
label = "dPCR report", basic.settings
)
JS.calc <- rk.paste.JS(
echo("dpcReport()\n")
)
## Plugin skeleton generation
dpcRreport_menu <<- rk.plugin.skeleton(
about = about.info,
dependencies = dependencies.info,
xml = list(dialog = full.dialog),
js = list(require = "dpcR",
calculate = JS.calc,
results.header = FALSE),
rkh = list(plugin.summary, plugin.usage),
pluginmap = list(
name = "dpcReport",
hierarchy = list("analysis", "dPCR report")),
create=c("pmap","xml","js","desc", "rkh"),
load = TRUE,
overwrite = TRUE,
show = TRUE
)
rk.build.plugin(dpcRreport_menu, R.libs="~/R", check=TRUE)
})