Closed WouterMidden closed 8 months ago
Hello Wouter, thanks for reporting this.
The easiest workaround is to make a copy of the RNA assay before running make.reference
:
mo.mac@assays$integrated <- mo.mac@assays$RNA
DefaultAssay(mo.mac) <- "integrated"
ref.momac <- make.reference(ref=mo.mac, ndim=ndim, seed=seed,
recalculate.umap = TRUE,
annotation.column = "Minor.subset")
Assays(ref.momac)
[1] "RNA" "integrated"
I agree the current behavior is not ideal, and will correct it in the next update. Thanks for reporting!
Best -m
Hi, I'm trying to compare the gene expression between a custom-built reference dataset from a published dataset and my own data, using
find.discriminant.genes
andplot.states.radar
. However, I get an error that the "RNA" assay is not present in my reference. Upon inspection, only the "integrated" assay is present. I tried to alter themake.reference
chunk to set theassay = "RNA"
, but this did not change anything.My code for
make.reference
is as follows:Also, when I follow the vignette (https://carmonalab.github.io/ProjecTILs.demo/build_ref_atlas.html) and use the provided data in the vignette,
make.reference
only returns the "integrated" assay.The provided references with
load.reference.map()
, such as _ref_TILAtlas_mousev1.rds and _DC_human_refv1.rds, contain however both the RNA and integrated assay.If necessary, I can provide my code, but as the vignette gives the same results, I'm wondering how one could tweak this.
When I tried to change the name of the assay of the reference (which did not work), it is interesting that it says that the active assay is actually RNA:
Is there a way to build a custom reference dataset that retains the RNA assay, or is there another way to circumvent this issue? Thanks a lot!