Validation on number of inputs added
This commit is contained in:
@@ -49,7 +49,7 @@ class LoadAnnotationsFunction(Function):
|
||||
logger.log('notice', 'Reading file: %s' % dialog.get_filename())
|
||||
self.load_affy_file(dialog.get_filename())
|
||||
|
||||
def run(self, (data,)):
|
||||
def run(self,data):
|
||||
btns = ('Open', gtk.RESPONSE_OK, \
|
||||
'Cancel', gtk.RESPONSE_CANCEL)
|
||||
dialog = gtk.FileChooserDialog('Open Affy Annotation File',
|
||||
@@ -81,7 +81,7 @@ class PCAFunction(Function):
|
||||
self.output = None
|
||||
self.workflow = workflow
|
||||
|
||||
def run(self, (data,)):
|
||||
def run(self,data):
|
||||
logger.log('debug', 'datatype: %s' % type(data))
|
||||
if not isinstance(data,dataset.Dataset):
|
||||
return None
|
||||
@@ -226,7 +226,7 @@ class LoadMoothaData(Function):
|
||||
def __init__(self):
|
||||
Function.__init__(self, 'load', 'Load diabetes data')
|
||||
|
||||
def run(self,(data,)):
|
||||
def run(self,data):
|
||||
data_file = open('full_data.pickle','r')
|
||||
data = pickle.load(data_file)
|
||||
data_file.close()
|
||||
@@ -250,7 +250,7 @@ class Log2Function(Function):
|
||||
def __init__(self):
|
||||
Function.__init__(self, 'log', 'Log2')
|
||||
|
||||
def run(self,(data,)):
|
||||
def run(self,data):
|
||||
x = log2(data._array)
|
||||
#pull out identifiers
|
||||
ids = []
|
||||
|
Reference in New Issue
Block a user