BayraktarLab / cell2location

Comprehensive mapping of tissue cell architecture via integrated single cell and spatial transcriptomics (cell2location model)
https://cell2location.readthedocs.io/en/latest/
Apache License 2.0
321 stars 58 forks source link

Estimated reference expression signatures #219

Open wangjiawen2013 opened 1 year ago

wangjiawen2013 commented 1 year ago

Hi, The samples sequenced in more depth will have more counts. So, are the estimated reference expression signatures generated by mod.export_posterior() normalized or scaled or just the inferred counts?

vitkl commented 1 year ago

Citing supplementary methods page 57, Negative Binomial regression model estimates average expression of each gene in each cell type while accounting for a number of technical factors. The reference signatures are not normalised or scaled in the classical meaning of normalisation (dividing by total count) and scaling (subtracting per gene mean and dividing by standard deviation). Instead, during inference, the model removed the batch effects (see which effects below) from the average expression of each gene in each cell type.

Screenshot 2022-12-11 at 21 11 38