bugix on creation of output data (E) from pca
This commit is contained in:
parent
2bddb22867
commit
cebf801cf6
@ -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'
|
||||
|
Reference in New Issue
Block a user