KaiAragaki / tidyestimate

ESTIMATE tumor infiltration, the tidy way
GNU General Public License v2.0
12 stars 1 forks source link

using ESTIMATE on tumor thats not on the reference #12

Closed chrkuo closed 1 year ago

chrkuo commented 1 year ago

can I run ESTIMATE on a tumor that's not on the reference tumor. I am studying pediatric tumor cancer and would like to estimate stromal/immune

KaiAragaki commented 1 year ago

Hi, what exactly do you mean 'not on the reference tumor'?

chrkuo commented 1 year ago

@KaiAragaki i might have misunderstood the ESTIMATE package but I. was under the impression that ESTIMATE package uses mostly adult cancer tumors to create this reference of immune/stromal/tumor purity score. since I am studying pediatric cancer would the results be altered assuming Tidyestimate is essentially the same thing

KaiAragaki commented 1 year ago

Ah, I see. If you have reason to believe that pediatric tumors would express signatures of stromal and immune infiltration despite being pure, then this could be an issue. However, so long as you take the assumption that a 'pure' pediatric tumor will look like a 'pure' adult tumor, you should be able to apply it to both types.

Unless you are using Affymetrix data, you won't be able to get an absolute purity score. However, you can still get a relative purity score to compare between samples in you cohort.

chrkuo commented 1 year ago

@KaiAragaki

Thanks for bringing that up - that was what my next question is: for visium 10x spatial transcriptomic assays is it affymetrix data?

additionally once i get the score is it possible map it into spatial context like this?

image
KaiAragaki commented 1 year ago

No, affy data is array-based rna expression.

As for the figure, you might be able to apply the signature to every spot to assign it a score, treating each spot as a sample. But I'm not entirely sure how I would go about doing that. It's unclear what they did in this figure to get these scores.

chrkuo commented 1 year ago

@KaiAragaki

I used the tidyestimate to generate the scores on all the RNA counts in my spatial data and have this dataframe:

image

I was wondering if you know how I can then apply these scores back into the spot of my object and then plot it?

KaiAragaki commented 1 year ago

I think this may be a bit beyond the purview of a tidyestimate issue, but one think that you might try is by supplying each column as a 'gene' in your original dataset and then using Seurat's feature plots to visualize it. You might also be able to store it as colData, but I forget how Seurat objects work (assuming you are using a Seurat object) and how similar they are to SummarizedExperiment objects.