Skip to content

Commit

Permalink
get_dataset_object multiple datasets fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oganm committed Jul 12, 2024
1 parent ba68998 commit 1e36eba
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gemmapy/gemmapy_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 1e36eba

Please sign in to comment.