diff --git a/workflows/pca_workflow.py b/workflows/pca_workflow.py index 66cd099..45a8848 100644 --- a/workflows/pca_workflow.py +++ b/workflows/pca_workflow.py @@ -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'