Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

bugix on creation of output data (E) from pca

This commit is contained in:
Arnar Flatberg 2006-04-24 12:51:43 +00:00
parent 2bddb22867
commit cebf801cf6
1 changed files with 5 additions and 2 deletions

View File

@ -98,7 +98,7 @@ class PCAFunction(Function):
T = dataset.Dataset(T,[('samples',col_ids) ,comp_def])
P = dataset.Dataset(P,[('genes',row_ids),comp_def])
E = dataset.Dataset(E,[('samples',col_ids),'genes',(row_ids)])
E = dataset.Dataset(E,[('samples',col_ids),('genes',row_ids)])
#tsq = dataset.Dataset(tsq,[singel_def,data_ids[1])
## plots
@ -252,6 +252,9 @@ class Log2Function(Function):
def run(self,data):
x = log2(data._array)
ids = data.get_identifiers()
#pull out identifiers
ids = []
for dim in data.get_dim_names():
ids.append((dim,data.get_identifiers(dim)))
return [dataset.Dataset(x,identifiers=ids,name='Log2_X')]
PCAWorkflow.name = 'PCA Workflow'