Ignore:
Timestamp:
10/14/13 14:59:10 (6 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixes for Arary Express query response parsing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orangecontrib/bio/widgets/prototypes/OWArrayExpress.py

    r1873 r1886  
    11""" 
    22<name>Array Express</name> 
    3 <description>Access Array Express datasets<description> 
     3<description>Array Express datasets<description> 
    44 
    55""" 
     
    88import os 
    99from datetime import date 
     10 
    1011import Orange 
    11  
    12 from Orange.bio import obiArrayExpress 
    1312 
    1413from OWWidget import * 
    1514import OWGUI 
     15 
     16from Orange.bio import obiArrayExpress 
    1617 
    1718 
     
    2021 
    2122    HEADER_LABELS = ["ID", "Title", "Species", "Assays", "Date"] 
     23 
    2224    def __init__(self, parent=None, signalManager=None, title="Array Express"): 
    2325        OWWidget.__init__(self, parent, signalManager, title) 
     
    3436 
    3537        box = OWGUI.widgetBox(self.controlArea, "Info") 
    36         self.info = OWGUI.widgetLabel(box, "") 
     38        self.info = OWGUI.widgetLabel(box, "\n") 
    3739 
    3840        OWGUI.rubber(self.controlArea) 
     
    5456 
    5557        self.setEnabled(False) 
    56         QTimer.singleShot(50, self.fill_experiments) 
     58        QTimer.singleShot(5, self.fill_experiments) 
    5759 
    5860    def fill_experiments(self): 
     
    7678            url = "http://www.ebi.ac.uk/arrayexpress/experiments/" + accession 
    7779            row[0].setData(QVariant(url), OWGUI.LinkRole) 
     80            if not exp.get("processeddatafiles", {}).get("available", False): 
     81                continue 
     82 
    7883            model.appendRow(row) 
    7984 
Note: See TracChangeset for help on using the changeset viewer.