-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:inoue0426/scBiGCN
- Loading branch information
Showing
7 changed files
with
105 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Python Formatting | ||
|
||
on: [push] | ||
|
||
jobs: | ||
format-code: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
# Give the default GITHUB_TOKEN write permission to commit and push the | ||
# added or changed files to the repository. | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Install black | ||
run: python -m pip install black | ||
- name: Format code | ||
run: black . | ||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Apply auto-formatting | ||
branch: ${{ github.head_ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM python:3.9-slim | ||
USER root | ||
|
||
# install the notebook package | ||
RUN pip install --no-cache --upgrade pip && \ | ||
pip install --no-cache torch --index-url https://download.pytorch.org/whl/cpu && \ | ||
pip install --no-cache torch_geometric && \ | ||
pip install --no-cache pyg_lib torch_sparse -f https://data.pyg.org/whl/torch-2.0.0+cpu.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,48 @@ | ||
# BiGCN: Leveraging Cell and Gene Similarities for Single-cell Transcriptome Imputation with Bi-Graph Convolutional Networks | ||
|
||
This is an official implementation of the paper, "BiGCN: Leveraging Cell and Gene Similarities for Single-cell Transcriptome Imputation with Bi-Graph Convolutional Networks" | ||
![](overview.png) | ||
|
||
scBiGCN is a method that utilizes two GCNs to reconstruct gene expression matrices based on the similarity matrices of cells and genes. Utilizing each similarity enables the recovery of information lost through Dropout. | ||
This is an official implementation of the paper, "BiGCN: Leveraging Cell and Gene Similarities for Single-cell Transcriptome Imputation with Bi-Graph Convolutional Networks" | ||
|
||
<img width="1027" alt="Screenshot 2023-09-14 at 15 49 53" src="https://github.com/inoue0426/scBiGCN/assets/8393063/c9d1fbc0-bdf0-49b3-91b3-50181cbe16ec"> | ||
scBiGCN is a method that utilizes two GCNs to reconstruct gene expression matrices based on the similarity matrices of cells and genes. Using each similarity enables the recovery of information lost through Dropout. | ||
|
||
scBiGCN has been implemented in Python. | ||
|
||
To get started immediately, check out our tutorials: | ||
- [Tutorial](https://github.com/inoue0426/scBiGCN/blob/main/sample%20notebook.ipynb) | ||
|
||
## Installation from GitHub | ||
To clone the repository and install manually, run the following from a terminal: | ||
``` | ||
git clone [email protected]:inoue0426/scBiGCN.git | ||
cd scBiGCN | ||
conda create --name scBiGCN python=3.10 -y | ||
conda activate scBiGCN | ||
pip install -r requirement.txt | ||
``` | ||
|
||
## Requirement | ||
|
||
``` | ||
numpy==1.23.5 | ||
pandas==2.0.3 | ||
scikit-learn==1.3.0 | ||
torch==1.13.1 | ||
torch==1.13.1+cu116 | ||
torch-geometric==2.3.1 | ||
torch-sparse==0.6.17 | ||
torch-sparse==0.6.17+pt113cu116 | ||
tqdm==4.65.0 | ||
``` | ||
|
||
** Note: To utilize GPU acceleration, it is necessary to configure your own CUDA environment for PyTorch and PyTorch-Sparse. | ||
|
||
## Environment | ||
|
||
Our experiment was conducted on Ubuntu with an RTX 2080 and Nvidia A100. To use this model, please adjust the requirements to suit your environment, paying special attention to the PyTorch-related libraries. | ||
|
||
## Installation from GitHub | ||
To clone the repository and install manually, run the following from a terminal: | ||
``` | ||
git clone [email protected]:inoue0426/scBiGCN.git | ||
cd scBiGCN | ||
conda create --name scBiGCN python=3.10 -y | ||
conda activate scBiGCN | ||
pip install -r requirement.txt | ||
# Please make sure to change the version to match the version of your GPU/CPU machine exactly. | ||
pip install --no-cache-dir torch==1.13.1+cu116 --extra-index-url https://download.pytorch.org/whl/cu116 | ||
pip install --no-cache-dir torch_geometric | ||
pip install --no-cache-dir pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-1.13.1%2Bcu116.html | ||
``` | ||
|
||
## Usage | ||
|
||
### Quick Start | ||
|
@@ -50,4 +58,4 @@ bigcn.run_model(df, verbose=True) | |
``` | ||
|
||
## Help | ||
If you have any questions or require assistance using MAGIC, please feel free to make a issues on https://github.com/inoue0426/scBiGCN/ | ||
If you have any questions or require assistance using MAGIC, please feel free to make an issue on https://github.com/inoue0426/scBiGCN/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
numpy==1.23.5 | ||
pandas==2.0.3 | ||
scikit-learn==1.3.0 | ||
torch==1.13.1 | ||
torch-geometric==2.3.1 | ||
torch-sparse==0.6.17 | ||
tqdm==4.65.0 |