arendma / GRN_web

This repository contains the source code for the R Shiny server application allowing to query the gene regulatory network presented in https://www.nature.com/articles/s41467-023-38183-4
http://grn-web.bio.uni-potsdam.de/
2 stars 0 forks source link

error in regTFls(): arguments imply differing number of rows #4

Closed arne-cl closed 2 years ago

arne-cl commented 2 years ago

When running test.r, calling cons_coreg=regTFls(consensus, cons_madstar1$target, 25, '../test') causes this error:

> cons_coreg=regTFls(consensus, cons_madstar1$target, 25, '../test')
Error in data.frame(Gene = sapply(rownames(reglist), gn_match, gndf = phyto_gn),  : 
  arguments imply differing number of rows: 0, 336
In addition: Warning messages:
[...]
  invalid factor level, NA generated
arne-cl commented 2 years ago

The error disappears when using stringsAsFactors = FALSE (see commit 32e559b30c22378d9673e724b7156f1ec20ac43d)