Closed bapoorva closed 2 weeks ago
Hey @bapoorva,
Thanks for reaching out.
So far so good. For the diversity, I want to look at the diversity indices at sample level, by condition /group and by celltype. To specifically look at diversity by celltype, I'd need to use the seurat object. When I run Clonaldiversity using all the same arguments but the combinedTCR as input in one and seurat object as input in the other, I get different results. Even when I export the table, i get the shannon indices only from 4 out of 12 samples. Why is that so?
You will get different results for 2 major reasons -
combineTCR()
is not perfect. Typically ~85% of clones map onto the single-cell object after combineExpression()
and this will alter the diversityclonalDiversity()
uses bootstapping so there will always be small differences in the resulting valuesIn the context of your sample difference, my guess is that you are not getting all of your clones attached during the combineExpression()
step. I would check your meta data to check this and ensure you are matching your barcodes.
In this case, I'm getting a numeric x-axis despite making the group a factor and it is missing all the non-sepsis factors.
This is hard to troubleshoot as I do not know what your meta data and variables look like.
Finally, is there a way to subset the data ? For instance, I am only interested in the CD8 populations and not the others. If I subset the single cell data by celltype and look at diversity, the indices get recalculated and they look different. But all I want is the same figure with just selected groups. Is it possible to do that ?
Subsetting should not affect the total magnitude and trend of the indices, but maybe the slightly the end value (again due to boot strapping). There is no subsetting feature within the functions themselves, might be a good future feature.
Hope that helps and let me know if you have any other questions.
Nick
Hi,
First of all, thanks for the great package. However, I do have some questions and issues and I hope you can help me with it.
I have TCRSeq and single cell RNASeq data from 12 samples (3 Controls, 6 from diseased condition A(Sepsis) and 3 from disease condition B (non-sepsis)) and I want to look at diversity a few different ways. I followed the tutorial and ran the basic functions
So far so good. For the diversity, I want to look at the diversity indices at sample level, by condition /group and by celltype. To specifically look at diversity by celltype, I'd need to use the seurat object. When I run Clonaldiversity using all the same arguments but the combinedTCR as input in one and seurat object as input in the other, I get different results. Even when I export the table, i get the shannon indices only from 4 out of 12 samples. Why is that so?
This seems to be a problem with the seurat object in general. I wanted to see differences in diversity index between control and diseased in specific cell groups
In this case, I'm getting a numeric x-axis despite making the group a factor and it is missing all the non-sepsis factors.
Finally, is there a way to subset the data ? For instance, I am only interested in the CD8 populations and not the others. If I subset the single cell data by celltype and look at diversity, the indices get recalculated and they look different. But all I want is the same figure with just selected groups. Is it possible to do that ?