Changeset 1824:4c6214cbc159 in orange-bioinformatics


Ignore:
Timestamp:
06/19/13 10:17:58 (10 months ago)
Author:
Flashpoint <vid.flashpoint@…>
Branch:
default
Message:

Shortened the p_val display statement in OWSetEnrichment.py

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/widgets/OWSetEnrichment.py

    r1823 r1824  
    467467                item.setData(2, Qt.ToolTipRole, QVariant(len(cmapped))) # For filtering 
    468468                item.setData(3, Qt.DisplayRole, QVariant(refFmt % (len(rmapped), 100.0*len(rmapped)/len(referenceGenes)))) 
    469                 if p_val > 0.001: 
    470                     item.setData(4, Qt.DisplayRole, QVariant("%0.6f" % p_val)) 
    471                 else: 
    472                     item.setData(4, Qt.DisplayRole, QVariant("%0.2e" % p_val)) 
     469                item.setData(4, Qt.DisplayRole, QVariant("%0.6f" % p_val)) if p_val > 0.001 else item.setData(4, Qt.DisplayRole, QVariant("%0.2e" % p_val)) 
    473470                item.setData(4, 42, QVariant(p_val)) 
    474471                #stoplec 4 - zelim sort po p_val 
  • server_update/updateDictyBase.py

    r1789 r1824  
    5050print file_mutants 
    5151 
    52 sf_server.upload(fm_dom, fm_name, file_mutants, title="dictyBase mutant collection", 
     52sf_server.upload(fm_dom, fm_name, file_mutants, title="dictyBase mutant phenotypes", 
    5353    tags=DictyMutants.tags) 
    5454sf_server.unprotect(fm_dom, fm_name) 
Note: See TracChangeset for help on using the changeset viewer.