Skip to contents

Instruction for ResObj check

Xiangming Cai

2026-01-28

🔍 Introduction

The ResObj object contains all relevant information. If you are interested, please read our paper (mentioned at the top) to know the concepts of each matrix shown here. See CreateRes and SlopEstimation for detailed introduction of the structure of ResObj.

💻 Installation

You can install the development version of USERM from GitHub with:

devtools::install_github("xiangmingcai/USERM")

Step 1 📈 Query available fluorophores

You can use the querySig function to query all available fluorophores.

library(USERM)
Sig_info = querySig()
head(Sig_info)
> head(Sig_info)
                    id PrimaryName SecondaryName detectors instrument       Source Note
1  SCC_Bead_CD4_NFR700         CD4        NFR700        51     Xenith XiangmingCai   NA
2   SCC_Bead_CD3_BV510         CD3         BV510        51     Xenith XiangmingCai   NA
3    SCC_Bead_CD2_FITC         CD2          FITC        51     Xenith XiangmingCai   NA
4       SCC_Bead_AF_AF          AF            AF        51     Xenith XiangmingCai   NA
5   SCC_Bead_CD8_BV570         CD8         BV570        51     Xenith XiangmingCai   NA
6 SCC_Bead_CD16_BUV805        CD16        BUV805        51     Xenith XiangmingCai   NA

To check the signature of a specific fluorophore, you may

fluor_to_check = Sig_info$id[3]
print(fluor_to_check)
checkSig_linePlot(id = fluor_to_check)
> print(fluor_to_check)
[1] "SCC_Bead_CD2_FITC"

These available fluorophores were preprocessed with parameters extracted for the residual model. To access the corresponding residual model and its parameters, you can use the getRes function.

ResObj = getRes(id = fluor_to_check)

You can easily visualize all these matrices when you are interested in any one of them.

To check the slop matrix:

checkRes_slopMtx(Res = ResObj)

To check the intercept matrix:

checkRes_interceptMtx(Res = ResObj)

You can check the covariance matrix at a specified fluorescence intensity (bin):

print(ResObj$bin_mids)
checkRes_covMtx(Res = ResObj,bin=3)

You can even check the linear fitting of covariance versus fluorescence intensity (bin) between two specific detectors:

print(ResObj$detectors)
checkRes_covScatter(Res = ResObj,
                    detector1 = ResObj$detectors[1],
                    detector2 = ResObj$detectors[2])