Skip to content

Commit

Permalink
Updates conda envs for 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
asabjorklund committed Nov 29, 2022
1 parent 62e5e3b commit bf4725c
Show file tree
Hide file tree
Showing 8 changed files with 130 additions and 9 deletions.
100 changes: 100 additions & 0 deletions labs/environment_R2023.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
## conda requirements for all packages needed to run the scanpy tutorials
# install with: mamba env create -f environment_scRNAseq2023.yml
# then run: source activate scRNAseq2023
name: scRNAseq2023

channels:
### MAIN CONDA CHANNELS ###
- conda-forge
- bioconda
- defaults
### ADDITIONAL CONDA CHANNELS ###

dependencies:
### GENERAL LIBRARIES ###
- r-base=4.2.2
- rstudio-desktop=2022.07.02
- wget
- qt-main=5.15.4 #needed for rstudio
# - compilers
# - openssl=1.0.2o
# - pandoc=2.16.2
### R BIOCONDUCTOR PACKAGES ##
- bioconductor-scater #=1.22.0
- bioconductor-scran #=1.22.0
- bioconductor-singlecellexperiment
- bioconductor-slingshot
- bioconductor-tradeseq
# - bioconductor-destiny
- bioconductor-rhdf5
- bioconductor-fgsea
- bioconductor-biomart
- bioconductor-org.hs.eg.db
- bioconductor-scdblfinder
- bioconductor-biocsingular
- bioconductor-singler
- bioconductor-batchelor
- bioconductor-scmap
- bioconductor-glmgampoi
- bioconductor-scrnaseq
- bioconductor-mast
- bioconductor-dropletutils
- bioconductor-scdblfinder
### R CRAN PACKAGES ###
- r-emdbook
- r-rgl
- r-plot3d
- r-fastica
- r-irlba
- r-pheatmap
- r-msigdbr
- r-rafalib
- r-enrichr
- r-clustree
- r-devtools
- r-biocmanager
- r-rcpphnsw
- r-dplyr
- r-igraph
- r-seurat
- r-umap
- r-grr
- r-hdf5r
- r-bookdown
- r-venn
- r-uwot
- r-optparse
- r-fields
- r-ggraph
- r-checkmate
- r-tidygraph
- r-spam
- r-stringi
- r-stringr
- r-pkgmaker
- r-l1pack
- r-nnls
- r-reshape
- r-jpeg
- r-clustree
- r-mlmetrics
- r-caret
- r-kernlab
- r-proc
- r-msigdbr
- xbioc

### PYTHON LIBRARIES ###
- multicore-tsne
- umap-learn

# Manual installation of packages that are not in conda:
# remotes::install_github('chris-mcginnis-ucsf/DoubletFinder', dependencies=FALSE)
# remotes::install_github('satijalab/seurat-data', dependencies=FALSE)
# remotes::install_github("meichendong/SCDC", dependencies = FALSE)


# harmony not avail for R4.2.2, instead install from cran.
#install.packages("harmony", dependencies=F)
#devtools::install_github("powellgenomicslab/scPred", dependencies=F)

22 changes: 22 additions & 0 deletions labs/environment_python2023.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: scRNAseq2023_python
channels:
- pytorch
- conda-forge
- bioconda
- defaults
- anaconda
dependencies:
- python
- compilers
- pip
- scanpy
- jupyterlab
- scanorama
- nb_conda
- scvi-tools
- fa2
- python-igraph
- pynndescent
- leidenalg
- louvain
- mkl < 2022 # needed for running intel conda on M1 mac.
6 changes: 4 additions & 2 deletions labs/scater/scater_01_qc.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ suppressMessages(require(scater))
suppressMessages(require(scran))
suppressMessages(require(cowplot))
suppressMessages(require(org.Hs.eg.db))
remotes::install_github('chris-mcginnis-ucsf/DoubletFinder',upgrade = F)
if(!require(DoubletFinder){
remotes::install_github('chris-mcginnis-ucsf/DoubletFinder',upgrade = F, dependencies=F)
}
suppressMessages(require(DoubletFinder))
```

Expand Down Expand Up @@ -379,7 +382,6 @@ sce.filt <- runUMAP(sce.filt, pca = 10)
```

```{r}
BiocManager::install('scDblFinder',update = F)
suppressPackageStartupMessages(require(scDblFinder))
# run computeDoubletDensity with 10 principal components.
Expand Down
2 changes: 0 additions & 2 deletions labs/scater/scater_04_clustering.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ editor_options:
#CLUST_ALL2:

```{r, message='hide',warning='hide',results='hold'}
if(!require(clustree)){install.packages('clustree', dependencies=FALSE)}
suppressPackageStartupMessages({
library(scater)
Expand Down Expand Up @@ -94,7 +93,6 @@ plot_grid(ncol = 3,


```{r}
# install.packages("clustree")
suppressPackageStartupMessages(library(clustree))
clustree(sce, prefix = "louvain_SNNk")
Expand Down
1 change: 0 additions & 1 deletion labs/scater/scater_05_dge.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ gene_rank <- setNames( DGE_cell_selection$Covid[,grep("logFC.C",colnames(DGE_cel
#DGE_ALL7.3:

```{r,fig.height=10,fig.width=10}
# install.packages("msigdbr")
library(msigdbr)
#Download gene sets
Expand Down
4 changes: 3 additions & 1 deletion labs/seurat/seurat_01_qc.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ for(i in file_list){
```{r, message='hide',warning='hide',results='hold'}
suppressMessages(require(Seurat))
suppressMessages(require(Matrix))
remotes::install_github('chris-mcginnis-ucsf/DoubletFinder',upgrade = F)
if(!require(DoubletFinder){
remotes::install_github('chris-mcginnis-ucsf/DoubletFinder',upgrade = FALSE, dependencies=FALSE)
}
suppressMessages(require(DoubletFinder))
```

Expand Down
2 changes: 0 additions & 2 deletions labs/seurat/seurat_04_clustering.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ editor_options:
#CLUST_ALL2:

```{r, message='hide',warning='hide',results='hold'}
if(!require(clustree)){install.packages('clustree', dependencies=FALSE)}
suppressPackageStartupMessages({
library(Seurat)
Expand Down Expand Up @@ -87,7 +86,6 @@ plot_grid(ncol = 3,


```{r}
# install.packages("clustree")
suppressPackageStartupMessages(library(clustree))
clustree([email protected], prefix = "CCA_snn_res.")
Expand Down
2 changes: 1 addition & 1 deletion labs/seurat/seurat_07_spatial.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This tutorial is adapted from the Seurat vignette: https://satijalab.org/seurat/
#ST_TITLE1:

```{r packages}
devtools::install_github('satijalab/seurat-data')
devtools::install_github('satijalab/seurat-data', dependencies=FALSE)
suppressPackageStartupMessages(require(Matrix))
suppressPackageStartupMessages(require(dplyr))
Expand Down

0 comments on commit bf4725c

Please sign in to comment.