去除細(xì)胞周期效應(yīng)——ccRemover包

原文題目:Identifying and removing the cellcycle effect from single-cell RNASequencing data

#####step1
##Normalized Data Matrix

#chooseCRANmirror()
#install.packages('ccRemover')
library(ccRemover)
browseVignettes('ccRemover')

data(t.cell_data)
dim(t.cell_data)
head(t.cell_data[,1:5])

summary(apply(t.cell_data,1, mean))

mean_gene_exp <- rowMeans(t.cell_data)
t_cell_data_cen <- t.cell_data - mean_gene_exp
summary(apply(t_cell_data_cen,1,mean))


#####step2
##The cell-cycle genes
gene_names <- rownames(t_cell_data_cen)

cell_cycle_gene_indices <- gene_indexer(gene_names, species = "mouse", 
                                        name_type = "symbols" )
length(cell_cycle_gene_indices)

if_cc <- rep(FALSE,nrow(t_cell_data_cen)) 
if_cc[cell_cycle_gene_indices] <- TRUE
summary(if_cc)


#####step3
##Putting it Together
dat <- list(x=t_cell_data_cen, if_cc=if_cc)


#####step4
##Applying ccRemover
xhat <- ccRemover(dat, bar=FALSE)

#The final step here is to add the mean values back to the cleaned data matrix:
xhat <- xhat + mean_gene_exp

#####step4+
##Settings
#If you choose to run ccRemover not using the default
#settings the following options are available to you:
xhat_2 <- ccRemover(dat, cutoff = 3, max_it = 4, nboot = 200, ntop = 10, bar=FALSE)

參考:?jiǎn)渭?xì)胞天地——在單細(xì)胞轉(zhuǎn)錄組表達(dá)矩陣?yán)锩嫒コ?xì)胞周期影響

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容