zdebruine / singlet

Single-cell analysis with non-negative matrix factorization
42 stars 13 forks source link

run_nmf() fails with rank=1 #44

Closed knowah closed 8 months ago

knowah commented 8 months ago

When running run_nmf() with rank=1, the following error is produced:

Error in `rownames<-`(`*tmp*`, value = rn) : 
  attempt to set 'rownames' on an object with no dimensions

It seems that model$w and model$h are stored as vectors in 1-rank models.