Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhenyiWangTHU committed Oct 12, 2024
1 parent ab08329 commit 691f078
Show file tree
Hide file tree
Showing 31 changed files with 255 additions and 2,123 deletions.
2 changes: 1 addition & 1 deletion .Rproj.user/F5A33326/pcs/source-pane.pper
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"activeTab": 0
"activeTab": 1
}
12 changes: 6 additions & 6 deletions .Rproj.user/F5A33326/pcs/windowlayoutstate.pper
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"left": {
"splitterpos": 293,
"splitterpos": 74,
"topwindowstate": "NORMAL",
"panelheight": 1312,
"windowheight": 1350
"panelheight": 938,
"windowheight": 976
},
"right": {
"splitterpos": 816,
"splitterpos": 583,
"topwindowstate": "NORMAL",
"panelheight": 1312,
"windowheight": 1350
"panelheight": 938,
"windowheight": 976
}
}
6 changes: 6 additions & 0 deletions .Rproj.user/F5A33326/sources/prop/68A8727B
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"source_window_id": "",
"Source": "Source",
"cursorPosition": "130,59",
"scrollLine": "116"
}
1 change: 1 addition & 0 deletions .Rproj.user/F5A33326/sources/prop/INDEX
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
D%3A%2FGitHub%2FHemaScope_Tutorial%2F01-HemaScope_installation_tutorial.Rmd="68A8727B"
D%3A%2FGitHub%2FHemaScope_Tutorial%2F07-HemaScopeCloud_Tutorial.Rmd="813E2921"
D%3A%2FGitHub%2FHemaScope_Tutorial%2FHemaScope_Tutorial.Rmd="2A5452D7"
D%3A%2FGitHub%2FHemaScope_Tutorial%2FHemaScope_installation_tutorial.Rmd="7529776B"
Expand Down
26 changes: 26 additions & 0 deletions .Rproj.user/F5A33326/sources/session-533bd9c2/4000949A
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"id": "4000949A",
"path": "D:/GitHub/HemaScope_Tutorial/01-HemaScope_installation_tutorial.Rmd",
"project_path": "01-HemaScope_installation_tutorial.Rmd",
"type": "r_markdown",
"hash": "525252405",
"contents": "",
"dirty": false,
"created": 1728717008399.0,
"source_on_save": false,
"relative_order": 2,
"properties": {
"source_window_id": "",
"Source": "Source",
"cursorPosition": "130,59",
"scrollLine": "116"
},
"folds": "",
"lastKnownWriteTime": 1728717175,
"encoding": "UTF-8",
"collab_server": "",
"source_window": "",
"last_content_update": 1728717175531,
"read_only": false,
"read_only_alternatives": []
}
176 changes: 176 additions & 0 deletions .Rproj.user/F5A33326/sources/session-533bd9c2/4000949A-contents
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
# Installation

## Create a new conda environment and activate it

```
conda create --name HemaScope_env
conda activate HemaScope_env
```

## Set the channels in conda

```
# Add the default channel
conda config --add channels defaults

# Add default channel URLs
conda config --add default_channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
conda config --add default_channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
conda config --add default_channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2

# Add custom channels
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch-lts
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/simpleitk
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/deepmodeling

# Set to show channel URLs
conda config --set show_channel_urls true
```

## Install R and python

- R 4.3.3 and python 3.9.12

```
conda install R-base=4.3.3
conda install python=3.9.12
```

## Install required R-packages

- From conda

```
conda install -c conda-forge r-devtools=2.4.5
conda install -c conda-forge r-Seurat=4.3.0.1
conda install -c conda-forge r-Rfast2=0.1.5.1
conda install -c conda-forge r-hdf5r=1.3.10
conda install -c conda-forge r-ggpubr=0.6.0
conda install pwwang::r-seuratwrappers
conda install -c bioconda bioconductor-monocle=2.28.0
conda install -c bioconda bioconductor-slingshot=2.8.0
conda install -c bioconda bioconductor-GSVA=1.48.2
conda install -c bioconda bioconductor-org.Mm.eg.db=3.17.0
conda install -c bioconda bioconductor-org.Hs.eg.db=3.17.0
conda install -c bioconda bioconductor-scran=1.28.1
conda install -c bioconda bioconductor-AUCell=1.22.0
conda install -c bioconda bioconductor-RcisTarget=1.20.0
conda install -c bioconda bioconductor-GENIE3=1.24.0
conda install -c bioconda bioconductor-biomaRt=2.56.1
conda install -c bioconda r-velocyto.r=0.6
#conda install -c bioconda bioconductor-limma=3.56.2
```
- Enter the R language environment

We suggest users do not manually update any already installed R packages during the installation of the following R packages.
```
R
```
- From BiocManager

```
# BiocManager(version = "1.30.23") should already be installed as a dependency of r-seuratwrappers.
# If it is not installed, please run the following code to install it.
# install.packages("BiocManager",version="1.30.23")
BiocManager::install("ComplexHeatmap")
BiocManager::install("scmap")
BiocManager::install("clusterProfiler")
BiocManager::install("BiocNeighbors")
```

- From CRAN

```
install.packages("doMC")
install.packages("doRNG")
install.packages("shinyjs")
install.packages("shiny")
install.packages("shinyWidgets")
install.packages("shinydashboard")
install.packages("slickR")
install.packages("phateR")
install.packages("gelnet")
install.packages("parallelDist")
install.packages("kableExtra")
install.packages("transport")
install.packages("feather")
install.packages("markdown")
install.packages("ggalluvial")
install.packages("forcats")
install.packages("mcmc")
install.packages("MCMCpack")
install.packages("fields")
install.packages("getopt")
install.packages("osfr")
```

- From GitHub

tips:

Sometimes network connection issues may occur, resulting in an error message indicating that GitHub cannot be connected. Please try installing again when the network conditions improve.

Usage limitations: Sometimes an API rate limit error occurs, and a GitHub token is needed to provide the GitHub API rate limit. The steps to resolve this are as follows: Register for an account or log in to an existing account on the GitHub website. Then click on your profile picture in the top right corner, go to the dropdown menu and select "Settings." Next, find "Developer settings" and click on it, then find "Personal access tokens (classic)." Click on it, then click "Create new token (classic)." Create a new token by first naming it anything you like. Then choose the expiration time for the token. Finally, check the "repo" box; the token will be used to download code repositories from GitHub. Click "Generate token." Copy the generated token password.

After that, set the token in the environment variable in R. Since we are using conda, enter R by typing R in the terminal. Then, enter the command: usethis::edit_r_environ(). This will open a file. Press the i key to edit. Paste the token you copied into the code area as follows: GITHUB_TOKEN="your_token".

Then press Esc, type :wq! (force save). After that, you need to exit Linux and re-enter R. Close and reopen the terminal to apply the environment variable. Reopen Linux, activate the conda environment, and enter R again.

```
devtools::install_github("sqjin/CellChat")
devtools::install_github("immunogenomics/presto")
devtools::install_github("aertslab/SCENIC@140ad6b")
devtools::install_github("pzhulab/abcCellmap@f44c14b")
devtools::install_github("navinlabcode/copykat@d7d6569")
devtools::install_github('chris-mcginnis-ucsf/DoubletFinder@8c7f76e')
devtools::install_github("mojaveazure/seurat-disk@877d4e1")
devtools::install_github(c("hfang-bristol/dnet"))

```

- Install HemaScopeR from github

```
devtools::install_github(repo="ZhenyiWangTHU/HemaScopeR", dep = FALSE)
```

- Exist the R language environment
```
quit()
```

## Install required Python-packages

- Upgrade pip and set mirrors

```
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip config set global.extra-index-url http://mirrors.aliyun.com/pypi/simple/
```

- Install required packages

```
pip install anndata arboreto cell2location commot karateclub matplotlib networkx phate pot scanpy scipy scvi-tools seaborn distributed radian dask==2022.2.1 distributed==2022.2.1 scvelo==0.2.5 numpy==1.23.5 pandas==1.5.3
# stereopy==1.3.1
```

## The installed packages with versions
- R packages with versions
```
Package Version
------- -------

```
- Python packages with versions
```
Package Version
------------------------ --------------

```
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"path": "D:/GitHub/HemaScope_Tutorial/07-HemaScopeCloud_Tutorial.Rmd",
"project_path": "07-HemaScopeCloud_Tutorial.Rmd",
"type": "r_markdown",
"hash": "2151722027",
"hash": "0",
"contents": "",
"dirty": false,
"created": 1728632660875.0,
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"chunk_definitions":[],"doc_write_time":1728717061}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"chunk_definitions":[],"doc_write_time":1728717061}
1 change: 1 addition & 0 deletions .Rproj.user/shared/notebooks/paths
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
D:/GitHub/HemaScope_Tutorial/01-HemaScope_installation_tutorial.Rmd="1605901F"
D:/GitHub/HemaScope_Tutorial/07-HemaScopeCloud_Tutorial.Rmd="C5AFD053"
D:/GitHub/HemaScope_Tutorial/_bookdown.yml="8A5771D1"
D:/GitHub/HemaScope_Tutorial/_main.tex="09CE5142"
Loading

0 comments on commit 691f078

Please sign in to comment.