saezlab / decoupleR

R package to infer biological activities from omics data using a collection of methods.
https://saezlab.github.io/decoupleR/
GNU General Public License v3.0
183 stars 24 forks source link

Duplicated regulons in mlm after filtering #47

Closed smuellerd closed 2 years ago

smuellerd commented 2 years ago

I get an error using mlm:

Error: Problem with `mutate()` column `model`.
ℹ `model = list(mlm_evaluate_model(.data$condition))`.
x Tibble columns must have compatible sizes.
* Size 159: Existing data.
* Size 162: Column `source`.
ℹ Only values of size one are recycled.
ℹ The error occurred in row 1.

Apparently some coefficients are getting removed, creating a mismatch. I suspect this might be caused by some TFs having the same target genes. It would be good to add a warning or an error. Thanks!

PauBadiaM commented 2 years ago

Hi @smuellerd,

I added an error whenever sources have the exact same targets in mlm, thanks!