Skip to content

Commit 21daee6

Browse files
authored
Merge pull request #63 from UCD-BDLab/documentation-update-to-match-readme
Documentation update to match readme
2 parents adce87b + 28891d8 commit 21daee6

64 files changed

Lines changed: 722 additions & 6030 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.DS_Store

-12 KB
Binary file not shown.

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
*.ipynb linguist-detectable=false
1+
*.ipynb linguist-detectable=false

.github/workflows/pre-commit.yml

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ on:
1010

1111
jobs:
1212
pre-commit:
13-
runs-on: macos-latest
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, macos-latest, windows-latest]
16+
python-version: ["3.10", "3.11", "3.12"]
17+
18+
runs-on: ${{ matrix.os }}
1419

1520
steps:
16-
- name: Checkout code
21+
- name: Checkout repository
1722
uses: actions/checkout@v3
1823

19-
- name: Set up Python
24+
- name: Set up Python ${{ matrix.python-version }}
2025
uses: actions/setup-python@v4
2126
with:
22-
python-version: "3.10"
23-
24-
- name: Upgrade pre-commit
25-
run: pip install --upgrade pre-commit
26-
27-
- name: Verify pre-commit installation
28-
run: pre-commit --version
27+
python-version: ${{ matrix.python-version }}
28+
check-latest: true
2929

3030
- name: Cache pip dependencies
3131
uses: actions/cache@v3
@@ -43,24 +43,19 @@ jobs:
4343
pip install torch_geometric
4444
shell: bash
4545

46-
- name: Install system dependencies
47-
run: |
48-
brew update
49-
brew upgrade
50-
51-
- name: Install R
52-
uses: r-lib/actions/setup-r@v2
53-
with:
54-
r-version: "latest"
55-
56-
- name: Install R packages
57-
run: |
58-
Rscript -e "if (!requireNamespace('BiocManager', quietly = TRUE)) install.packages('BiocManager', repos='https://cran.r-project.org')"
59-
Rscript -e "install.packages(c('dplyr', 'jsonlite'), repos='https://cran.r-project.org')"
60-
Rscript -e "BiocManager::install(c('impute', 'preprocessCore', 'GO.db', 'AnnotationDbi'), update=FALSE, ask=FALSE)"
61-
Rscript -e "install.packages('SmCCNet', repos='https://cran.r-project.org')"
62-
Rscript -e "install.packages('WGCNA', repos='https://cran.r-project.org')"
63-
shell: bash
64-
65-
# - name: Run Pre-Commit Checks
66-
# run: pre-commit run --all-files --show-diff-on-failure
46+
# - name: Install R
47+
# uses: r-lib/actions/setup-r@v2
48+
# with:
49+
# r-version: "latest"
50+
51+
# - name: Install R packages
52+
# run: |
53+
# Rscript -e "if (!requireNamespace('BiocManager', quietly = TRUE)) install.packages('BiocManager', repos='https://cran.r-project.org')"
54+
# Rscript -e "install.packages(c('dplyr', 'jsonlite'), repos='https://cran.r-project.org')"
55+
# Rscript -e "BiocManager::install(c('impute', 'preprocessCore', 'GO.db', 'AnnotationDbi'), update=FALSE, ask=FALSE)"
56+
# Rscript -e "install.packages('SmCCNet', repos='https://cran.r-project.org')"
57+
# Rscript -e "install.packages('WGCNA', repos='https://cran.r-project.org')"
58+
# shell: bash
59+
60+
- name: Run Pre-Commit Checks
61+
run: pre-commit run --all-files --show-diff-on-failure

.github/workflows/python-app.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
os: [ubuntu-latest, macos-latest, windows-latest]
14-
python-version: ["3.10", "3.11"]
14+
python-version: ["3.10", "3.11", "3.12"]
1515

1616
runs-on: ${{ matrix.os }}
1717

@@ -41,29 +41,29 @@ jobs:
4141
pip install torch_geometric
4242
shell: bash
4343

44-
- name: Install R
45-
uses: r-lib/actions/setup-r@v2
46-
with:
47-
r-version: "latest"
44+
# - name: Install R
45+
# uses: r-lib/actions/setup-r@v2
46+
# with:
47+
# r-version: "latest"
4848

49-
- name: Install R packages
50-
run: |
51-
Rscript -e "if (!requireNamespace('BiocManager', quietly = TRUE)) install.packages('BiocManager', repos='https://cran.r-project.org')"
52-
Rscript -e "install.packages(c('dplyr', 'jsonlite'), repos='https://cran.r-project.org')"
53-
Rscript -e "BiocManager::install(c('impute', 'preprocessCore', 'GO.db', 'AnnotationDbi'), update=FALSE, ask=FALSE)"
54-
Rscript -e "install.packages('SmCCNet', repos='https://cran.r-project.org')"
55-
Rscript -e "install.packages('WGCNA', repos='https://cran.r-project.org')"
56-
shell: bash
49+
# - name: Install R packages
50+
# run: |
51+
# Rscript -e "if (!requireNamespace('BiocManager', quietly = TRUE)) install.packages('BiocManager', repos='https://cran.r-project.org')"
52+
# Rscript -e "install.packages(c('dplyr', 'jsonlite'), repos='https://cran.r-project.org')"
53+
# Rscript -e "BiocManager::install(c('impute', 'preprocessCore', 'GO.db', 'AnnotationDbi'), update=FALSE, ask=FALSE)"
54+
# Rscript -e "install.packages('SmCCNet', repos='https://cran.r-project.org')"
55+
# Rscript -e "install.packages('WGCNA', repos='https://cran.r-project.org')"
56+
# shell: bash
5757

58-
- name: Run tests with pytest
59-
run: |
60-
find . -name ".coverage*" -delete
61-
pytest --cov=bioneuralnet --cov-report=xml tests/
58+
# - name: Run tests with pytest
59+
# run: |
60+
# find . -name ".coverage*" -delete
61+
# pytest --cov=bioneuralnet --cov-report=xml tests/
6262

63-
- name: Upload coverage to Codecov
64-
uses: codecov/codecov-action@v3
65-
with:
66-
token: ${{ secrets.CODECOV_TOKEN }}
67-
files: ./coverage.xml
68-
flags: unittests
69-
name: codecov-umbrella
63+
# - name: Upload coverage to Codecov
64+
# uses: codecov/codecov-action@v3
65+
# with:
66+
# token: ${{ secrets.CODECOV_TOKEN }}
67+
# files: ./coverage.xml
68+
# flags: unittests
69+
# name: codecov-umbrella

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ bioneuralnet.egg-info
1818
.mypy_cache
1919
Quick Start.ipynb
2020
TCGA-BRCA_Datatest.ipynb
21-
21+
DevNotes.md
22+
TCGA-BRCA_Datatest_copy.ipynb
23+
split
2224
# Other example data and tests not needed in the repo.
2325

2426
Output**

.pre-commit-config.yaml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
exclude: ^docs/
2+
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v4.3.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-yaml
10+
- id: check-added-large-files
11+
args: ['--maxkb=92160']
12+
13+
# - repo: https://github.com/psf/black
14+
# rev: 24.10.0
15+
# hooks:
16+
# - id: black
17+
# name: Format Python code with Black
18+
# language_version: python3
19+
20+
- repo: https://github.com/pre-commit/mirrors-mypy
21+
rev: v1.14.1
22+
hooks:
23+
- id: mypy
24+
name: Static type checking with MyPy
25+
args: [--ignore-missing-imports]
26+
27+
- repo: local
28+
hooks:
29+
- id: remove-pyc-and-pycache
30+
name: Remove .pyc files and __pycache__ directories
31+
entry: bash -c "find . \( -path './.venv' -o -path './docs' -o -path './node_modules' \) -prune -o -type f -name '*.pyc' -exec rm -f {} + -o -type d -name '__pycache__' -exec rm -rf {} +"
32+
language: system
33+
stages: [pre-commit]
34+
35+
- id: clean-coverage-files
36+
name: Remove stale .coverage files
37+
entry: bash -c "find . -name '.coverage*' -delete"
38+
language: system
39+
stages: [pre-commit]
40+
41+
- id: check-forbidden-files
42+
name: Prevent adding forbidden file types except in allowed directory
43+
entry: |
44+
bash -c '
45+
FILES="$(git diff --cached --name-only)"
46+
if echo "$FILES" | grep -E "\.RData$"; then
47+
echo "Forbidden file types detected (RData)!"
48+
exit 1
49+
fi
50+
if echo "$FILES" | grep -E "\.csv$" | grep -vE "^bioneuralnet/datasets/(example1|brca|monet)/"; then
51+
echo "Forbidden CSV files detected (outside allowed folders)!"
52+
exit 1
53+
fi
54+
'
55+
language: system
56+
stages: [pre-commit]
57+
58+
# - id: run-tests
59+
# name: Run Tests with Pytest
60+
# entry: pytest --ignore=docs/source/examples --cov=bioneuralnet --cov-report=term-missing || true
61+
# language: system
62+
# types: [python]

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/).
77

88
## [0.2.0b2] - 2025-02-16
@@ -69,4 +69,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
6969
## [1.0.1] to [1.0.7] - 2025-04-24
7070

7171
- **BUG**: A bug related to rdata files missing
72-
- **New realease**: A new release will include documentation for the other updates. (1.1.0)
72+
- **New realease**: A new release will include documentation for the other updates. (1.1.0)

0 commit comments

Comments
 (0)