You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am successfully using your package with scRNA-Seq data, but finding a possible bug when trying out the pseudobulk_by option. Below I show it working fine without pseudobulk_by and then failing when I add it in:
... the problem comes when I try to test using pseudobulk_by, as
glmGamPoi.bulk.test <- test_de(glmGamPoi.fit
, contrast = contrast
,pseudobulk_by='experimentGroup'
) %>% setDT
Error in handle_design_parameter(design, data, col_data, reference_level) :
The model_matrix has more columns (7) than the there are samples in the data matrix (7 columns).
Too few replicates / too many coefficients to fit model.
The head of the design matrix:
LL_H_000 LL_N_000 LL_N_030 LL_N_060 LL_N_180 LL_N_300 LL_N_600
LL_H_000 1 0 0 0 0 0 0
LL_N_000 0 1 0 0 0 0 0
LL_N_030 0 0 1 0 0 0 0
The head of the data:
LL_H_000 LL_N_000 LL_N_030 LL_N_060 LL_N_180
rpl24 21728 14048 13748 19649 14109
cep97 76 18 21 9 55
eed 270 86 96 88 257
However by my calculations the aggregated data columns should d be there and are somehow erroneously being dropped, , viz::
If you look at pseudobulk_mat, you will see that it has 7 columns. At the same time, you want to fit a model which also has 7 different parameters, which fails with the error message: Too few replicates / too many coefficients to fit model..
Hi, I am successfully using your package with scRNA-Seq data, but finding a possible bug when trying out the
pseudobulk_by
option. Below I show it working fine withoutpseudobulk_by
and then failing when I add it in:This worked fine. My grouping factor and design matrix looks like this:
Testing for DGE with the following contrast works fine:
... the problem comes when I try to test using
pseudobulk_by
, asHowever by my calculations the aggregated data columns should d be there and are somehow erroneously being dropped, , viz::
I could potentially share the s2 object via ftp if it would help you sleuth this.
Or perhaps you recognize some error on my part?
The text was updated successfully, but these errors were encountered: