I am trying to use FindTransferAnchors
for label transfer. I normalized my scRNAseq data using LogNormalize
and got the reference for cell labeling
from Azimuth
.
I used the following codes in R
to transfer labels:
alldata <- readRDS("clustered_data.rds")
sample1<- alldata[, alldata$orig.ident == "sample1"]
reference <- readRDS('labelling_reference_azimuth/ref.Rds')
sample1 <- SetIdent(sample1, value = "CCA.0.5")
sample1 <- sample1 %>%
NormalizeData() %>%
FindVariableFeatures() %>%
ScaleData() %>%
RunPCA(verbose = F) %>%
RunUMAP(dims = 1:30)
transfer.anchors <- FindTransferAnchors(reference = reference, query = sample1, dims = 1:30)
when I run the last command I will get this error:
Error: An SCT assay (refAssay) was provided for reference.assay but normalization.method was set as LogNormalize.
do you know how I can solve the problem?