Description Usage Arguments Value Author(s) References Examples
This function perform a permutation testing to assess the significance of the Drug Homogeneity Index.
1 |
drugImg |
Input matrix containing the pixel intensities |
permutations |
Number of permutations used to construct the null distribution. default = 100 |
Nu |
Lowest size-zone value used for DHI calculation. default = 1 |
QuantLevel |
Maximum possible gray-levels in drug ion image. default = 0, i.e., original image |
maskImg |
Matrix identifying the pixels belonging to the tissue (1 tissue, 0 background). It must have the same size as drugImg |
A list containing the DHI calculated for the original and the permuted images
Mridula Prasad mridula.prasad@fmach.it
https://github.com/pietrofranceschi/HomogenMSI
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## load package
library(HomogenMSI)
data("DHIimages")
## Input drug and mask images
drugImg = DHIimages[[20]]
maskImg = DHIimages[[1]]
maskImg[maskImg !=0] =1
# test the significance of the DHI
output <- testDHI(drugImg,maskImg=maskImg)
# Plot the results
hist(output$DHIPermutedvalues,
xlim = range(c(output$DHIoriginalvalue,output$DHIPermutedvalues)),
col = "steelblue",
xlab = "DHI",
main = "DHI Permutation test")
abline(v = output$DHIoriginalvalue, lty = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.