Closed brianpenghe closed 2 years ago
@brianpenghe - can you check for Na values in the FDR
and PValue
columns of the output - this might happen when there is are Na p-value. The other issue might be that the high d
used to compute distances is causing very small values for the spatial FDR correction. It is very strange to have so many dimensions and yet such a small k
. The ability to assign true pairs of nearest neighbours from noise with d=100 is going to be way less sensitive than if you used a smaller value for d
.
Could you also try running this with makeNhoods(milo, prop = 0.1, k = 20, d=100, refined = TRUE, refinement_scheme="grahph")
and testNhoods(milo, design = ~ chemistry + stage_group, design.df = design_df, fdr.weighting="graph-overlap")
. This uses Alice's work on graph-only approaches and so you don't need to run calcNhoodDistances
at all.
I was following the this manual and finished generating
DA_results
with these codes:However, the
DA_results
have only NaN values in theSpatialFDR
.Any ideas?