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
seurat v4 MapQuery() returns errors about k.weight which is not an explicit argument #4117
Comments
Hi, |
Hi @yuhanH I ran new error if I set
But if I set
Is there a solution? Thanks, |
hi @Yale73 |
Hi @yuhanH , Here is my script, I used almost the same code as our vignette (Example 2) https://satijalab.org/seurat/articles/multimodal_reference_mapping.html All the following codes work well,
but when I ran
That' s my package versions: I tried to change the k.weight in Thanks for your help. |
If some of your samples only have three cells, you may need to remove it from the query. I don't think a 3-cell object can fit the anchor framework. |
The output, all are 4 anchors.
Then when I run the MapQuery(), I got the following error: Thanks, |
It looks very wired. The problem is in the FindTransforAnchor step not MapQuery... |
@yuhanH I tried it, now the output has different anchors, but I still can not run it.
I checked some of them and still get a similar error except for query objects with more than 50 anchors.
As long as I have anchors less than 50, I will have the error. As I checked the Thanks, |
Hi |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
Hi, I've also encountered this error, and I don't know how to fix it. I will be very appreciated if someone can help with. I used After merging the RNA Seurat object
Then I want to transfer labels from
But when I ran
|
@ProphetDarkland @yuhanH @Yale73 @Winnie09 Not sure if this issue was ever resolved, but I encountered the same problem and found the solution for it. If you're getting a k.weight is too small error with MapQuery you can specify in the Some code from a test run of mine:
Since
while
I'm not really sure if the warning message is a problem, but at least this will allow the code to run. |
Hi,
Thank you for developing Seurat v4. It is very helpful. I would like to map obj2 (a Seruat v3 object) to a reference obj1 (a Seurat v3 object). These two are both integrative objects of several samples and have slots pca, harmony, umap and umap models. I applied seurat v4 for Multimodal reference mapping. FindTransferAnchors() gave outputs successfully, but MapQuery() returned errors that suggested me to set k.weight but k.weight is not its explicit argument. I checked some source codes and found RunIntegration() and PairwiseIntegrateReference() have k.weight as one of their arguments but I am not sure how MapQuery() are involving these two functions. Could you suggest a way to solve this? Thank you!
Here is my code:
Errors:
The text was updated successfully, but these errors were encountered: