diff --git a/gemmapy/gemmapy_api.py b/gemmapy/gemmapy_api.py index 3a83123..fb04ce1 100644 --- a/gemmapy/gemmapy_api.py +++ b/gemmapy/gemmapy_api.py @@ -1465,8 +1465,8 @@ def get_mean(dup): genes = genes, keep_non_specific = keep_non_specific, consolidate = consolidate) - expression = {key:value for key in unique_sets for value in expression.values()} - + expression = sub.make_dict(unique_sets, list(expression.values())) + designs = {k:self.make_design(metadata[k]) for k in metadata.keys()} dat = self.get_datasets_by_ids(unique_sets) def pack_data(i): @@ -1501,9 +1501,11 @@ def pack_data(i): packed_info['contrasts'] = contrasts[i] # reordering to match expression/metadata no longer necesarry - diff = self.get_dataset_differential_expression_analyses(dataset) if result_sets is not None: + diff = self.get_dataset_differential_expression_analyses(dataset) + + gene_info = packed_info['exp'].\ columns[[not x for x in sub.list_in_list(packed_info['exp'].columns,