Changeset 1793:5dfeaff02331 in orange-bioinformatics for _bioinformatics/widgets/OWSetEnrichment.py


Ignore:
Timestamp:
05/14/13 14:00:25 (11 months ago)
Author:
Flashpoint <vid.flashpoint@…>
Branch:
default
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/widgets/OWSetEnrichment.py

    r1791 r1793  
    463463                item.setData(2, Qt.ToolTipRole, QVariant(len(cmapped))) # For filtering 
    464464                item.setData(3, Qt.DisplayRole, QVariant(refFmt % (len(rmapped), 100.0*len(rmapped)/len(referenceGenes)))) 
    465                 item.setData(4, Qt.DisplayRole, QVariant("%0.2e"% p_val)) 
     465                if p_val > 0.001: 
     466                    item.setData(4, Qt.DisplayRole, QVariant("%0.6f" % p_val)) 
     467                else: 
     468                    item.setData(4, Qt.DisplayRole, QVariant("%0.2e" % p_val)) 
    466469                item.setData(4, 42, QVariant(p_val)) 
    467470                #stoplec 4 - zelim sort po p_val 
Note: See TracChangeset for help on using the changeset viewer.