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

Error in checkna(X) : Missing values found in 'X' from mapQuery() #30

Open
qicheng-ma opened this issue Jan 28, 2022 · 2 comments
Open

Comments

@qicheng-ma
Copy link

Dear Symphony Team,

I got the following error message when I map the my query to my own reference.

I appreciate your help:

query = mapQuery(query_exp , # query gene expression (genes x cells)

  • query_metadata , # querymetadata(cellsxattributes)
  • reference , # Symphonyreferenceobject
  • do_normalize=TRUE , ## performlog(CP10k+1)normalizationonqueryperformlog(CP10k+1)normalizationonquery
  • do_umap=TRUE # projectquerycellsintoreferenceUMAP
  • )
    Normalizing
    Scaling and synchronizing query gene expression
    Found 3281 out of 3281 reference variable genes in query dataset
    Project query cells using reference gene loadings
    Clustering query cells to reference centroids
    Correcting query batch effects
    UMAP
    Error in checkna(X) : Missing values found in 'X'
    Calls: mapQuery -> -> checkna
    In addition: Warning message:
    In log(1 + A@x) : NaNs produced
    Execution halted
@joycekang
Copy link
Collaborator

Hi Qicheng,

Thanks for the message. Based on the output you listed, it looks like the mapQuery function is able to make it to the UMAP step before producing this error? Would you be able to try it with do_umap = FALSE and output the query object str(query) to check whether there are any NA's present in any of the internal data structures?

@TimoTrefzer
Copy link

Hi,

I actually got the same error, when using mapQuery. And as you suggested, running with do_umap=FALSE lets the function run through. But indeed somewhere NA's seem to be introduced, as in all query$Z ... there are only NA values.
Do you now what could be the most likely cause?

Thanks a lot!

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

3 participants