Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0 overlapping genes between query and reference error #211

Open
billyt-gene opened this issue Sep 5, 2024 · 0 comments
Open

0 overlapping genes between query and reference error #211

billyt-gene opened this issue Sep 5, 2024 · 0 comments

Comments

@billyt-gene
Copy link

Hi! I am getting an error when running

RCTD <- create.RCTD(query, reference, max_cores = 9)

The error is:

End: process_cell_type_info
create.RCTD: getting regression differentially expressed genes: 
Error in get_de_genes(cell_type_info$info, puck.original, fc_thresh = config$fc_cutoff_reg,  : 
  get_de_genes: Error: 0 common genes between SpatialRNA and Reference objects. Please check for gene list nonempty intersection.
In addition: Warning messages:
1: In asMethod(object) :
  sparse->dense coercion: allocating vector of size 1.6 GiB
2: In asMethod(object) :
  sparse->dense coercion: allocating vector of size 1.6 GiB
3: In asMethod(object) :
  sparse->dense coercion: allocating vector of size 1.6 GiB

However the below code indicates that 478 of the 480 genes in the query match the reference:

> q.genes <- query@counts@Dimnames[[1]]
> ref.genes <- reference@counts@Dimnames[[1]]
> 
> matching_genes <- intersect(q.genes,ref.genes)
> 
> length(matching_genes)
[1] 478

Any suggestions on how to move forward would be greatly appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant