Source

orange-bioinformatics / orangecontrib / bio / widgets / prototypes / OWArrayExpress.py

Diff from to

File orangecontrib/bio/widgets/prototypes/OWArrayExpress.py

 """
 <name>Array Express</name>
-<description>Access Array Express datasets<description>
+<description>Array Express datasets<description>
 
 """
 
 import sys
 import os
 from datetime import date
+
 import Orange
 
-from Orange.bio import obiArrayExpress
-
 from OWWidget import *
 import OWGUI
 
+from Orange.bio import obiArrayExpress
+
 
 class OWArrayExpress(OWWidget):
     settingsList = ["current_experiement", "search_string"]
 
     HEADER_LABELS = ["ID", "Title", "Species", "Assays", "Date"]
+
     def __init__(self, parent=None, signalManager=None, title="Array Express"):
         OWWidget.__init__(self, parent, signalManager, title)
 
         #####
 
         box = OWGUI.widgetBox(self.controlArea, "Info")
-        self.info = OWGUI.widgetLabel(box, "")
+        self.info = OWGUI.widgetLabel(box, "\n")
 
         OWGUI.rubber(self.controlArea)
         OWGUI.button(self.controlArea, self, "Commit", callback=self.commit)
         self.mainArea.layout().addWidget(self.experiments_view)
 
         self.setEnabled(False)
-        QTimer.singleShot(50, self.fill_experiments)
+        QTimer.singleShot(5, self.fill_experiments)
 
     def fill_experiments(self):
         self.connection = obiArrayExpress.ArrayExpressConnection()
                       [accession, title, species, assays, date])
             url = "http://www.ebi.ac.uk/arrayexpress/experiments/" + accession
             row[0].setData(QVariant(url), OWGUI.LinkRole)
+            if not exp.get("processeddatafiles", {}).get("available", False):
+                continue
+
             model.appendRow(row)
 
         self.experiments_view.setModel(model)