korsunskylab / rcna

R implementation of the Reshef and Rumker CNA method (https://github.com/immunogenomics/cna)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Association testing Error cna_ncorrs calculation

pinunQ opened this issue · comments

Hi,

When I am doing the association testing I am receiving the error after the computation of Neighborhood level FDRs which says cna_ncorrs must be of length 0 or 1.

glob1 <- association.Seurat( seurat_object = glob1, test_var = 'gender1', samplem_key = 'cell_states', graph_use = 'RNA_nn', verbose = TRUE, batches = NULL, ## no batch variables to include covs = NULL ## no covariates to include )

Error that I am getting is

Error: TRUE ~ seurat_object@meta.data$cna_ncorrsmust be length 0 or one, not 486134. Runrlang::last_error() to see where the error occurred.

I am using Seurat for running CNA in R.