-
Notifications
You must be signed in to change notification settings - Fork 57
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
bootVcov1 gives an error due to differences in the dimension of the bootstraps #131
Comments
How many measurements do you have per subject? Particularly the subjects that fail in the cases where they fail? |
Thanks for the careful report. It looks to me like the dimension of the model matrix depends on the rows being subset. I guess we haven't run into this before because we haven't run bootstraps with "nearly" singular designs. I can't immediately think of a good solution for this, which is a problem with the non-parametric bootstrap in a regression generally, I suppose. I guess we could drop those bootstrap replicates, or set their coefficients to |
Thank you for your reply @gfinak. I checked if the subjects that failed had a lower number of observations compared to other subjects but they did not, and they had tens to hundreds of observations. |
This may be related to a recent fix in #143. Would have been nice to have a reproducible example to test against. |
Sadly #143 didn't fix this. I am pushing a test that currently fails that isolates this behavior. |
I am trying to run competitive gene set enrichment analysis (GSEA) in MAST (hereafter referred to as "MAST cGSEA") as illustrated here.
I have several SingleCellAssay (sca) objects and a few designs (passed through the "formula" parameter). All the designs are of this kind:
Where:
The MAST cGSEA workflow works fine for most of the sca objects and designs. However, I noticed it fails in some cases, specifically at the step of creating the bootstraps with MAST's
bootVcov1
function. Below is the code for such function:I narrowed the problem down to this line:
In some, bootstraps I will get a warning like this:
Of note:
I looked at the distribution of the number of
x
andy
values with:But I fail to see an obvious patterns why those patient IDs fail.
Down the road, the problem is that the lengths of the rows of the
manyvc
object generated by theraply
function have different size, and R complains about it and stops the execution.Can anybody help with this?
Thank you in advance!
Javier
The text was updated successfully, but these errors were encountered: