Skip to contents

Returns the named list of BgnormResult objects attached to a QPTIFFImage by bgnorm_pixels, or NULL if the image has not been background-normalised.

Usage

bgnorm_results(x, ...)

Arguments

x

A QPTIFFImage.

...

Unused.

Value

A named list of BgnormResult objects (one per processed channel), or NULL.

See also

Examples

path <- system.file("extdata", "PA_HNC_sample.ome.tiff", package = "bgnormR")
img <- read_qptiff(path)
#> Reading TIFF directory structure ...
#> Reading OME-TIFF metadata ...
#> Reading IFD page layouts ...
#> Loading 5 channel(s) ...
#> Loading 5 channel(s) ...
adj <- bgnorm_pixels(img, markers = names(img)[1])
bgnorm_results(adj)
#> $CD20
#> BgnormResult (pixel-level)
#>   n = 440000 
#>   Component means: 0.028 0.392 1.161 
#>   JSD (QC metric): 0.4745 
#>   BIC (G=2): -0.35   BIC (G=3): -0.04 
#>   No signal detected: FALSE 
#>   Quantile normalised: FALSE 
#>   Tissue positivity: 18.1% 
#> 
#> $CD3e
#> BgnormResult (pixel-level)
#>   n = 440000 
#>   Component means: 0.146 0.87 1.961 
#>   JSD (QC metric): 0.4402 
#>   BIC (G=2): -1.64   BIC (G=3): -1.43 
#>   No signal detected: FALSE 
#>   Quantile normalised: FALSE 
#>   Tissue positivity: 16.4% 
#> 
#> $CD8
#> BgnormResult (pixel-level)
#>   n = 440000 
#>   Component means: 0.023 0.122 0.798 
#>   JSD (QC metric): 0.7089 
#>   BIC (G=2): 1.74   BIC (G=3): 2.3 
#>   No signal detected: FALSE 
#>   Quantile normalised: FALSE 
#>   Tissue positivity: 12.6% 
#> 
#> $PanCK
#> BgnormResult (pixel-level)
#>   n = 440000 
#>   Component means: 0.03 0.164 1.873 
#>   JSD (QC metric): 0.8818 
#>   BIC (G=2): -1.69   BIC (G=3): -1.4 
#>   No signal detected: FALSE 
#>   Quantile normalised: FALSE 
#>   Tissue positivity: 67.8% 
#> 
#> $Vimentin
#> BgnormResult (pixel-level)
#>   n = 440000 
#>   Component means: 0.014 0.321 2.025 
#>   JSD (QC metric): 0.7541 
#>   BIC (G=2): -2.24   BIC (G=3): -1.9 
#>   No signal detected: FALSE 
#>   Quantile normalised: FALSE 
#>   Tissue positivity: 49.9% 
#>