Created by: Julia Brettschneider (original R code), Tomas Lazauskas (R package engineering), Oscar Giles (package development) and Wilfrid Kendall (testing and editing).
DetectorChecker is an R package to aid in the assessment of damage to CT scanners arising from exposure to high energy radiation. While the target application concerns CT scanners, this package can also be used to analyze screen damage arising from other sources.
To install from github you will need to have the devtools package installed.
In R run one of the following, depending on whether you want to build the package Vignettes, removing the # if you do not have devtools installed:
# install.packages("devtools")
devtools::install_github("alan-turing-institute/DetectorChecker")
If you want to be able to view the DetectorChecker_user-guide
Vignette you need to install with:
devtools::install_github("alan-turing-institute/DetectorChecker",
build_vignettes = TRUE, build_opts = c("--no-resave-data", "--no-manual"))
Installing with the vignettes may be slow (~10 min)
# install.packages("devtools")
devtools::install_github("alan-turing-institute/DetectorChecker", ref = "develop")
The official release of the DetectorChecker WebApp is hosted at https://detectorchecker.azurewebsites.net.
The source code for the WebApp implementation can be found on GitHub: https://github.com/alan-turing-institute/DetectorCheckerWebApp.
The user guide vignette provides detailed instructions for using the package and loading specific examples. Make sure you installed the package including vignette following the instructions above (see use of build_vignettes = TRUE
in Section Installation) and then load the package followed by the vignette command:
library(detectorchecker)
vignette("DetectorChecker_user-guide", package = "detectorchecker")
Detailed documentation is provided as a pdf. See also the DetectorChecker_user-guide (large html file, needs download).
DetectorChecker includes a number of example datasets for five detector types:
-
Pilatus
-
PerkinElmer
-
PerkinElmer Refurbished
-
PerkinElmer Cropped
-
Excalibur
To load an example dataset, either call:
library(detectorchecker)
# Initiate a PerkinElmerFull detector object
detector <- create_detector("PerkinElmerFull")
# Path of dataset
file_path <- system.file("extdata", "PerkinElmerFull",
"BadPixelMap_t1.bpm.xml",
package = "detectorchecker")
# Load a pixel matrix into the detector object
detector <- load_pix_matrix(detector = detector, file_path = file_path)
or load one of the examples by calling:
library(detectorchecker)
data(PerkinElmerFull_exp_1)
which creates an appropriate detector module and loads an example pixel dataset.
For see the full list of example datasets call
data(package = "detectorchecker")
If you use DetectorChecker in your work please cite our package.
BibTeX:
@Misc{,
title = {{DetectorChecker}: Assessment of damage to CT scanners},
author = {Tomas Lazauskas and Julia Brettschneider and Oscar Giles and Wilfrid Kendall},
url = {https://github.com/alan-turing-institute/DetectorChecker},
}
If you found a bug or need support, please submit an issue here.
We welcome contributions! If you are willing to propose new features or have bug fixes to contribute, please submit a pull request here.