Cellchat log fold change
1
0
Entering edit mode
16 months ago
miyeok ▴ 10

Hi,

I'm doing cell-cell interaction anlaysis with Cellchat package in R. To identify over-expressed signaling genes, I want to set the thresh.fc argument of OverExpressedGenes() function.

I have a question about this thresh.fc argument.

Documentation says it's Log fold change threshold. those that mean Log2 fold-change? or Log10 fold-change?

Thank you

scRNA-seq Fold-change LRinteraction CCI cellchat • 994 views
ADD COMMENT
1
Entering edit mode
16 months ago
Nitin Narwade ★ 1.6k

It seems they are taking the natural log of the mean expression and calculating the difference.

mean.fxn <- function(x) {
    return(log(x = mean(x = expm1(x = x)) + 1)) 
}

data.1 <- apply(X = data.use[features, cell.use1, drop = FALSE],MARGIN = 1,FUN = mean.fxn)
data.2 <- apply(X = data.use[features, cell.use2, drop = FALSE],MARGIN = 1,FUN = mean.fxn)

FC <- (data.1 - data.2)

You can have a look at the code here.

ADD COMMENT
0
Entering edit mode

Thank you so much!!

ADD REPLY

Login before adding your answer.

Traffic: 1628 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6