Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update enrichment analysis #15

Open
wants to merge 40 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
6861fe3
:art: update docstrings and module string
enryH Nov 20, 2024
64d3414
:construction: test enrichment analysis :art: type annotations
enryH Nov 22, 2024
d37dc5e
:art::bug: Minimum number of genes rejected to be eligable
enryH Nov 25, 2024
faf7158
:white_check_mark: add minimal test for enrichment analysis
enryH Nov 25, 2024
c1c66f9
:sparkles: add fetching information from Uniprot KB
enryH Nov 25, 2024
0b3cd6e
:art: fetch annotation from uniprot in enrichment example
enryH Nov 25, 2024
545299b
:bug: make decomposition a module
enryH Nov 25, 2024
18121c9
:art::white_check_mark: add fdr alpha parameters as option, optimize …
enryH Nov 25, 2024
3015045
:zap: just work with numpy array, not lists
enryH Nov 25, 2024
13f45e9
:bug: remove unused parameter
enryH Nov 25, 2024
3961d84
:bug: correct name of testing fuction (to fct tested)
enryH Nov 25, 2024
7f51e02
:constructions: add enrichtment example to docs
enryH Nov 25, 2024
e63f937
:bug::sparkles: cast rejected to bool, annotate features using pandas…
enryH Nov 26, 2024
4adc624
:bug: newer versions of numpy need explicit type
enryH Nov 26, 2024
6a7db73
:construction: annotate and use some more formatting option
enryH Nov 26, 2024
142b778
:art: pass on parameter for min set, docstrings
enryH Dec 2, 2024
27c6e38
:art: improve visibility of data and inspect annotations
enryH Dec 3, 2024
8ed860c
:bug: make it Python 3.9 compatible
enryH Dec 3, 2024
ec10c71
:art: type annotations and docstring updates
enryH Dec 3, 2024
9c96af7
:art: docstrings fmt
enryH Dec 4, 2024
a6f21c9
:art: more docstring updates
enryH Dec 4, 2024
4d98dd5
:bug: regex in parameter name vs interpreded in docstring
enryH Dec 4, 2024
9f4d50d
:art: docstrings: test if listing works with blank lines, write Examp…
enryH Dec 4, 2024
bc5ab2c
:art: rename reject_col to rejected_col after typing it wrongly sever…
enryH Dec 4, 2024
834b54e
:art: try to set hyperlink
enryH Dec 4, 2024
794c1af
:truck::sparkles: move uniprot code to module, creating user-facing f…
enryH Dec 4, 2024
9d7c5f2
:bug: test line break in docstring
enryH Dec 5, 2024
dba2000
:bug: specify fields as parameter
enryH Dec 9, 2024
ddac13c
:construction: use fetch_annotations from pkg, add ssgsea
enryH Dec 9, 2024
5373372
:art: type hints, formatting, add pca example to api example of enric…
enryH Dec 16, 2024
52ce9c5
:art: run CI only on PR
enryH Dec 16, 2024
47bcdbd
:art: format tests
enryH Dec 17, 2024
7acf4b3
:art: add up and down regulated example, clean-up function and annotate
enryH Dec 17, 2024
436128f
:art: document log fold change, data used and improve docstrings
enryH Dec 17, 2024
5bdbfb8
:memo: extend docs with pca plot from vuecore and ks example
enryH Dec 18, 2024
ce99038
:art: add changes based on discussion with Alberto
enryH Dec 18, 2024
45c2f5e
:art: lower log2fc cutoff to include downregulated protein groups
enryH Dec 18, 2024
b71acc8
:bug: split up GO term annotations
enryH Dec 19, 2024
e685440
:bug: allow also single protein groups results
enryH Dec 19, 2024
8a2fac8
:art: do not have accession as a column ( "Entry")
enryH Jan 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/tox-gha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ name: Python package

on:
push:
branches: [main]
pull_request:
# release:
# types: [published]

branches: [main]
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions acore/decomposition/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import pca

__all__ = ["pca"]
6 changes: 3 additions & 3 deletions acore/decomposition/pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ def run_pca(
n_comp_max = min(df_wide.shape)
n_comp_max = min(n_comp_max, n_components)
pca = sklearn.decomposition.PCA(n_components=n_comp_max)
PCs = pca.fit_transform(df_wide)
pcs = pca.fit_transform(df_wide)
cols = [
f"principal component {i+1} ({var_explained*100:.2f} %)"
for i, var_explained in enumerate(pca.explained_variance_ratio_)
]
PCs = pd.DataFrame(PCs, index=df_wide.index, columns=cols)
return PCs, pca
pcs = pd.DataFrame(pcs, index=df_wide.index, columns=cols)
return pcs, pca
Loading
Loading