azimuth icon indicating copy to clipboard operation
azimuth copied to clipboard

"SCT is not an assay present in the given object" even though it is present

Open viktorfeketa opened this issue 2 years ago • 5 comments

When running Azimuth while specifying assay = "SCT"

I am getting an error: Error in GetAssay.Seurat(object = object, assay = assay) : SCT is not an assay present in the given object. Available assays are: RNA

even though the query Seurat object clearly contains the "SCT" assay

I am using a custom-made Azimuth reference produced from a public dataset using AzimuthReference() with specifying: refAssay = "SCT" so the reference assay should also contain the SCT assay

viktorfeketa avatar Oct 27 '23 20:10 viktorfeketa

Can you include the output of query@assays ?

Gesmira avatar Nov 01 '23 20:11 Gesmira

sure, here it is:

> srInt@assays
$RNA
Assay data with 18474 features for 253099 cells
First 10 features:
 NOSTRIN, CERS6, STK39, LYPD6, FIGN, LYPD6B, KCNH7, KIF5C, DAPL1, GCA 

$SCT
SCTAssay data with 16941 features for 253099 cells, and 15 SCTModel(s) 
First 10 features:
 NOSTRIN, CERS6, STK39, LYPD6, FIGN, LYPD6B, KCNH7, KIF5C, DAPL1, GCA 

$integrated
SCTAssay data with 3000 features for 253099 cells, and 1 SCTModel(s) 
Top 10 variable features:
 NPY, APOD, C1QA, PTGDS, SST, DCN, CARTPT, POMC, AGRP, PLP1 

viktorfeketa avatar Nov 01 '23 21:11 viktorfeketa

I think the topic starter should have just used the integrated assay and it would have probably solved his issue...

erzakiev avatar Feb 05 '24 13:02 erzakiev