Skip to content

Commit

Permalink
Merge pull request #31 from earmingol/new_version
Browse files Browse the repository at this point in the history
cell2cell v0.6.8
  • Loading branch information
earmingol authored Apr 20, 2023
2 parents 89285c0 + 76b6481 commit 9fa855d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cell2cell/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
from cell2cell import tensor
from cell2cell import utils

__version__ = "0.6.7"
__version__ = "0.6.8"
4 changes: 2 additions & 2 deletions cell2cell/external/gseapy.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def run_gsea(loadings, lr_set, output_folder, weight=1, min_size=15, permutation
terms = []
factors = []
nes = []
for factor in loadings.columns[1:]:
for factor in df.columns[1:]:
p_report = pd.read_csv(output_folder + '/GSEA/' + factor + '/gseapy.gene_set.prerank.report.csv')
pval = p_report['NOM p-val'].values.tolist()
pvals.extend(pval)
Expand All @@ -254,7 +254,7 @@ def run_gsea(loadings, lr_set, output_folder, weight=1, min_size=15, permutation
scores = gsea_df.pivot(index="Term", columns="Factor", values="NES").fillna(0)

# Sort factors
sorted_columns = [f for f in loadings.columns[1:] if (f in pvals.columns) & (f in scores.columns)]
sorted_columns = [f for f in df.columns[1:] if (f in pvals.columns) & (f in scores.columns)]
pvals = pvals[sorted_columns]
scores = scores[sorted_columns]
return pvals, scores, gsea_df
Expand Down
10 changes: 10 additions & 0 deletions release/0.6.8-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Release Notes - cell2cell v0.6.8

## New features


## Feature updates


## Fixed Bugs
- Fixed bug that was skipping first factor to generate outputs from `cell2cell.external.gseapy.run_gsea()`

0 comments on commit 9fa855d

Please sign in to comment.