Skip to content

Commit

Permalink
Merge pull request #152 from zktuong/refactor_generate_network
Browse files Browse the repository at this point in the history
Speed upgrade - Refactor generate network
  • Loading branch information
zktuong committed Jun 22, 2022
2 parents 5dbd1ab + 8a20407 commit 7f38a03
Show file tree
Hide file tree
Showing 73 changed files with 63,795 additions and 58,708 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/formatting.yaml
@@ -0,0 +1,38 @@
name: Code style checks

on: [pull_request]

jobs:
black:
name: Check black compliance.
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2

- name: Install black
run: python -m pip install black

- name: Run black
run: black --config pyproject.toml --check .

docstring:
name: Check docstring compliance.
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2

- name: Install interrogate
run: python -m pip install interrogate

- name: Run interrogate
run: interrogate .
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
@@ -0,0 +1,15 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 21.10b0
hooks:
- id: black
- repo: https://github.com/kynan/nbstripout
rev: 0.5.0
hooks:
- id: nbstripout
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -67,6 +67,9 @@ conda install seaborn scikit-learn statsmodels numba pytables
conda install -c conda-forge python-igraph leidenalg
pip install scanpy

# with version >=0.3.0, it is reccomended to install graph-tool to enable hyperfast layout calculations
conda install -c conda-forge graph-tool

# skip if doing pre-processing via container
conda install -c bioconda igblast blast # if this doesn't work, download them manually (see below)

Expand Down Expand Up @@ -144,6 +147,7 @@ pytables>=3.6.1 (conda-forge)
seaborn>=0.10.1 (conda-forge)
leidenalg>=0.8.0 (conda-forge)
plotnine>=0.6.0 (conda-forge)
graph-tool>=2.3.5 (conda-forge) # optional
# Other executables (through conda)
blast>=2.10.1 (bioconda)
Expand Down
6 changes: 6 additions & 0 deletions conftest.py
@@ -0,0 +1,6 @@
#!/usr/bin/env python
# @Author: Kelvin
# @Date: 2021-06-18 13:03:14
# @Last Modified by: Kelvin
# @Last Modified time: 2022-06-18 15:20:37
"""conftest"""

0 comments on commit 7f38a03

Please sign in to comment.