-
Notifications
You must be signed in to change notification settings - Fork 945
IntegrateData error: number of items to replace is not a multiple of replacement length #6341
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
Comments
Hi, what are the sizes of your datasets in |
@Gesmira, yes, I tried to adjust k.weight. the smallest sc in my sc.list has 130 cells, when I adjusted k.weight to 50, this error was still here and didn't be resolved. |
Have you tried also setting
|
yes, I tried k.filter = 30, it didn't work for this error |
Just to see if the issue is due to the small dataset, are you able to run the integration through without it? |
I removed the smallest 130 sc, and it works this time. and the smallest one is 205, I'm wondering what's the cutoff for the smallest obj that can be used to integrate? thanks |
yes, I did checked the size of sc.list, the smallest one is 130, which is
higher than 100. And I also adjusted k.weight to 50, also the same error.
…On Fri, Aug 26, 2022 at 2:08 PM gesmira ***@***.***> wrote:
Hi, what are the sizes of your datasets in sc.list? k.weight (the number
of neighbors to consider when weighting anchors) in IntegrateData()
defaults to 100 so if one of your datasets is smaller than 100 it will
cause this error to occur. Have you tried adjusting the k.weight
parameter to the size of your smallest dataset? Otherwise, you may want to
remove very small datasets.
—
Reply to this email directly, view it on GitHub
<#6341 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATZU2PDNHFI6M625ZHZHSWLV3EI3PANCNFSM57QEIF4Q>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I got the lowest cell number "3770" for a smaller object. It is same error. tried playing with different parameters |
I also got similar error with my dataset integration. When I removed two samples with less than 120 cells and removed the old 'integrated' assay in the seurat object, this error went away. Just noting it here. |
I got the same error. The lowest cell number is 375. I removed it and still the same error persists. |
@levinhein , I have also seen that when samples have large differences in cell numbers (10 fold) then also this problem comes. I was wondering if we could artificially split the large samples so that all samples have comparable number of cells. |
Hi, |
I too am facing that same error. This is my code I'm using:
And, the error message's this:
|
I used below code to integrate data by rPCA, but error occurred, I've tried many ways but still couldn't solve this problem. appreciate it if you could help.
Merging dataset 2 into 4
Extracting anchors for merged samples
Finding integration vectors
Finding integration vector weights
Error in idx[i, ] <- res[[i]][[1]] :
number of items to replace is not a multiple of replacement length
This error couldn't solved by adjust parameters, such has l2.norm and k.filter....
Appreciate it if you could help.
The text was updated successfully, but these errors were encountered: