Hi,
Thank you for providing this software. I have some questions about its usage that I was hoping you might be able to answer.
-
In the tutorial, bdat_initial is the gene x sample matrix for the bulk data. classprops_initial appears to be the cell proportions for the bulk x cell type. Do these proportions come directly from the single cell data, where I’m assuming the bulk data proportions are just the cell type proportions from the same sample’s single cell data?
-
The vignette seems to apply predict_estimates.R to bdat_initial, but I thought the idea behind this package was to create a model from matched single-cell and bulk data. I assume that the vignette does this for convenience but that the actual run would not be bdat_initial, but only the bulk data without single cell matches. Just confirming this is correct.
-
For the genes in bdat_initial, what exactly are these? In Cain et al 2023, you describe 5 steps for Celmod:
- a filtering process where it seems like for each cell type, genes are filtered to be only those with counts > 100 and mean cpm > 10.
- Linear regression on each gene for each cell cluster
- Predicting the proportion of each cell type
- Ranking genes by 90th percentile for each cell type
- Selecting top genes
I assumed that step 1 needed to be done before creating the bdat_initial object, as I don’t see those filtering steps in the code for train_model.R, and that 2–5 were done in train_model.R. But since each gene is filtered per cell type, are the genes in bdat_initial (and in the ultimate bulk dataset you predict on) supposed to be the union of all the genes that passed filters for each cell type? If I’ve misunderstood any of these steps, please let me know!
Thanks again!
Hi,
Thank you for providing this software. I have some questions about its usage that I was hoping you might be able to answer.
In the tutorial, bdat_initial is the gene x sample matrix for the bulk data. classprops_initial appears to be the cell proportions for the bulk x cell type. Do these proportions come directly from the single cell data, where I’m assuming the bulk data proportions are just the cell type proportions from the same sample’s single cell data?
The vignette seems to apply predict_estimates.R to bdat_initial, but I thought the idea behind this package was to create a model from matched single-cell and bulk data. I assume that the vignette does this for convenience but that the actual run would not be bdat_initial, but only the bulk data without single cell matches. Just confirming this is correct.
For the genes in bdat_initial, what exactly are these? In Cain et al 2023, you describe 5 steps for Celmod:
I assumed that step 1 needed to be done before creating the bdat_initial object, as I don’t see those filtering steps in the code for train_model.R, and that 2–5 were done in train_model.R. But since each gene is filtered per cell type, are the genes in bdat_initial (and in the ultimate bulk dataset you predict on) supposed to be the union of all the genes that passed filters for each cell type? If I’ve misunderstood any of these steps, please let me know!
Thanks again!