運(yùn)行SCTransform出現(xiàn)Error
Data <- SCTransform(Data,vars.to.regress=c("percent.mt","percent.rb","S.Score","G2M.Score"))
error in evaluating the argument 'x' in selecting a method for function 't': missing value where TRUE/FALSE needed
原因:
This is happens when poisson regression fails due to poor initialization (affected methods are poisson, qpoisson, nb_fast).
泊松回歸由于初始化不好而失敗吞加。
該問(wèn)題已在開(kāi)發(fā)分支中修復(fù)。
解決方案:
#安裝開(kāi)發(fā)分支版本
remotes::install_github("ChristophH/sctransform@develop")
# 安裝 "glmGamPoi"包
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("glmGamPoi")
#重新加載即可運(yùn)行成功
Data <- SCTransform(Data,method="glmGamPoi",vars.to.regress = c("percent.mt","percent.rb","S.Score","G2M.Score"))
Github參考地址
①issues/3740
②issues/4296
③sctransform#known-issues