Closed dweemx closed 5 years ago
I'll just point out that in a standard pySCENIC run, the minimum number of genes in a regulon is set to 20 by default. That is, all regulons targeting fewer than 20 genes are dropped (in the modules_from_adjacencies
function, min_genes
parameter). I think a typical user would most likely be using these defaults, but it's still probably a good idea to handle this error somehow.
This filter happens at the module level, not at the regulon level right? So still possible to have regulons w/ less than 20 genes no?
Ah yes, you're right, this filter is on modules, so we do absolutely have regulons with fewer than 20 genes (but I don't believe I've seen one with only 1 gene myself)
Me neither but I found regulons w/ 4 genes and you still do get this error
Hi Max,
I'll fix this and make a new release.
Kr, Bram
Hi @bramvds,
I found an extreme case where binarization fails. In my case I had 1 regulon with 1 gene which raised the following error:
I haven't tested out what's the minimum genes required for the Hartigan's dip statistic to work but maybe good to let the user know that it needs to filter out regulons with low number of genes?
Cheers, Max