Entering edit mode
rbronste
▴
60
@rbronste-12189
Last seen 5.0 years ago
Hi I am getting the following error:
dba.plotVolcano(CR_count,th=0.1,fold=1,method = DBA_DESEQ2_BLOCK, bFlip = TRUE)
Error in `.rowNamesDF<-`(x, value = value) : invalid 'row.names' length
This happens only when I take a .csv sample file and make a secondary file with half of the conditions present in the original, however def enough to do comparisons with. Wondering if this is a bug? Thanks.
If you subset a
data.frame
that contains a factor (and in so doing you remove one or more levels of the factor), the levels of the factor are not reset. If the levels of that factor are then used for something like generating therownames
of adata.frame
, then you can have problems.However, you have been around long enough to know that you need to provide a self-contained example of the problem and the output of
sessionInfo
, and without that it's at least as likely to be user error rather than a bug.