Commits

Flashpoint committed 5dfeaff

P-values greater than 0.001 are now displayed with regular notation in the OWSetEnrichment.py

  • Participants
  • Parent commits 89d57e8

Comments (0)

Files changed (1)

File _bioinformatics/widgets/OWSetEnrichment.py

                 item.setData(2, Qt.DisplayRole, QVariant(countFmt % (len(cmapped), 100.0*len(cmapped)/countAll)))
                 item.setData(2, Qt.ToolTipRole, QVariant(len(cmapped))) # For filtering
                 item.setData(3, Qt.DisplayRole, QVariant(refFmt % (len(rmapped), 100.0*len(rmapped)/len(referenceGenes))))
-                item.setData(4, Qt.DisplayRole, QVariant("%0.2e"% p_val))
+                if p_val > 0.001:
+                    item.setData(4, Qt.DisplayRole, QVariant("%0.6f" % p_val))
+                else:
+                    item.setData(4, Qt.DisplayRole, QVariant("%0.2e" % p_val))
                 item.setData(4, 42, QVariant(p_val))
                 #stoplec 4 - zelim sort po p_val
                 item.setData(4, Qt.ToolTipRole, QVariant("%0.10f" % p_val))