The SpatialDecon library implements the SpatialDecon algorithm for mixed cell deconvolution in spatial gene expression datasets. (This algorithm also works in bulk expression profiling data.)
MIT License
33
stars
8
forks
source link
Error on runspatialdecon and spatialdecon - Only 3 genes are shared between norm and X - this may not be enough to support accurate deconvolution #50
res = runspatialdecon(object = target_demoData, # My S4 obj
norm_elt = "q_norm", # Referring to Q3 norm for WTA/CTA w/ or w/o custom spike-ins. As suggested by the above mentioned guide
raw_elt = "exprs", # Raw exprs
X = safeTME,
align_genes = TRUE)
I get this:
In addition, I tried spatialdecon following the code from here :
res = spatialdecon(norm = norm,
bg = bg,
X = safeTME,
align_genes = TRUE)
Output:
head(bg)
I checked for identical genes present in safeTME and in bg:
# Detect same genes present in safeTME and in bg
intersect(rownames(safeTME), rownames(bg))
[1] "C2" "C3" "C7"
Only those 3 genes are detected as the same between objects.
But, when I capitalize with toupper:
# Detect same genes present in safeTME and in bg
length(intersect(rownames(safeTME), toupper(rownames(bg))))
[1] 627
I'm trying to perform
SpatialDecon
on GeoMX DSP data prior filtered following the NanoString R guide .For
runspatialdecon
I'm using code from here:I get this:
In addition, I tried
spatialdecon
following the code from here :Output:
head(bg)
I checked for identical genes present in
safeTME
and inbg
:Only those 3 genes are detected as the same between objects.
But, when I capitalize with
toupper
:So, let's capitalize
norm
andbg
rownamesCould it be a bug? Thanks