-
Notifications
You must be signed in to change notification settings - Fork 4
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 during 'stvea_object <- GetTransferMatrix(stvea_object)' #19
Comments
Hello, It's hard to exactly tell where this error is coming from without more info, so can you please tell me:
|
Thanks. It definitely looks like the problem is in MapCODEXtoCITE() which creates the corrected_codex matrix. However, I'm having trouble replicating this issue without the same data. If you run the code below, you should be able to get a better sense of why corrected_codex comes out the wrong size (this code chunk just manually runs the same functions as MapCODEXtoCITE()). If N is the number of anchors left after FilterAnchors(), filteredAnchors and scoredAnchors should be (N x 3) matrices, integration.matrix should be (N x 27), weights should be (N x 5000), corrected_data should be (25000 x 27), and stvea_object@corrected_codex should be (5000 x 27). It would also be good to check if any of these matrices, including the cite_clean and codex_clean, have NA values.
|
Hello! And thank you so much for waiting so long. Those were some very odd errors for what ended up being a pretty mundane solution: the mapping code requires that the protein matrices have row names. I hadn’t realized this before, and will either add code to automatically add them or at least fail a little more nicely. For now though, you can fix these errors by setting unique row names in your data matrices (codex_protein, cite_protein, cite_latent, etc). |
Thank you for the update! It has been a while and let me take some time to rewind the analysis. I will close the issue for now and update late later. Thanks again for the help. |
Hi STvEA team,
Thanks for providing a wonderful tool! I'm interested in matching codex cells to citeseq cell using the MapCODEXtoCITE and GetTransferMatrix function. My goal is to get the NN matrix with which codex cell is matching to which citeseq cells. I run the codex with a subset of the balbc codex dataset and a murine spleen citeseq dataset:
![Screen Shot 2021-08-09 at 12 16 07 PM](https://user-images.githubusercontent.com/36682386/128762019-bdd69a29-7aec-4b49-8abc-d8ce50de380e.png)
( I did not run the umap/clustering steps as they should not be related to matching i pressume?) I had the error
Error in
[<-
(*tmp*
, i, , value = idx) : subscript out of boundsduring the GetTransferMatrix function.
Also, it seems that the corrected codex data from MapCODEXtoCITE was incomplete in my case?
![Screen Shot 2021-08-09 at 12 16 42 PM](https://user-images.githubusercontent.com/36682386/128762217-395fc091-2671-42db-be44-20b95bacebf4.png)
(where my input is 5000 codex cells)
Thank you again for the wonderful tool and let me know where the problem could potentially be.
The text was updated successfully, but these errors were encountered: