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.027 0.388 1.137 
#>   JSD (QC metric): 0.468 
#>   BIC (G=2): -0.34   BIC (G=3): -0.03 
#>   No signal detected: FALSE 
#>   Quantile normalised: FALSE 
#>   Tissue positivity: 18.8% 
#> 
#> $CD3e
#> BgnormResult (pixel-level)
#>   n = 440000 
#>   Component means: 0.146 0.862 1.946 
#>   JSD (QC metric): 0.4463 
#>   BIC (G=2): -1.63   BIC (G=3): -1.41 
#>   No signal detected: FALSE 
#>   Quantile normalised: FALSE 
#>   Tissue positivity: 16.6% 
#> 
#> $CD8
#> BgnormResult (pixel-level)
#>   n = 440000 
#>   Component means: 0.023 0.124 0.835 
#>   JSD (QC metric): 0.7153 
#>   BIC (G=2): 1.76   BIC (G=3): 2.34 
#>   No signal detected: FALSE 
#>   Quantile normalised: FALSE 
#>   Tissue positivity: 11.6% 
#> 
#> $PanCK
#> BgnormResult (pixel-level)
#>   n = 440000 
#>   Component means: 0.031 0.164 1.875 
#>   JSD (QC metric): 0.8794 
#>   BIC (G=2): -1.69   BIC (G=3): -1.4 
#>   No signal detected: FALSE 
#>   Quantile normalised: FALSE 
#>   Tissue positivity: 68% 
#> 
#> $Vimentin
#> BgnormResult (pixel-level)
#>   n = 440000 
#>   Component means: 0.015 0.316 2.02 
#>   JSD (QC metric): 0.7573 
#>   BIC (G=2): -2.24   BIC (G=3): -1.89 
#>   No signal detected: FALSE 
#>   Quantile normalised: FALSE 
#>   Tissue positivity: 50.7% 
#>