forked from aertslab/pycisTopic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conda_environment_setup.sh
177 lines (136 loc) · 5.25 KB
/
conda_environment_setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
### Python 3.8
ssh r23i27n24
source /staging/leuven/stg_00002/lcb/saibar/software/anaconda3/etc/profile.d/conda.sh # equivalent to my_conda_initialize
# Create conda environment
# conda create -n pycisTopic_env python=3.8
conda activate pycisTopic_env
module load GCC
conda update -n base conda
conda install ipykernel # for Jupyter
conda install matplotlib seaborn pandas
conda install -c anaconda xlrd cytoolz
conda install -c conda-forge igraph python-igraph IPython leidenalg gensim typing adjusttext python-annoy scikit-learn
conda install -c bioconda pyBigWig pybedtools pyfasta harmonypy pybiomart pyfaidx pyranges ray bbknn
conda install -c conda-forge fit-sne
# conda list | grep XX
for PKG in igraph python-igraph IPython leidenalg gensim typing adjusttext python-annoy matplotlib seaborn
#for PKG in pyBigWig pybedtools pyfasta harmonypy pybiomart pyfaidx pyranges ray bbknn
do
conda list | grep $PKG
done
conda list | grep pyBigWig
# pycistopic & related
conda install statsmodels numba pytables
conda install -c conda-forge louvain multicore-tsne
pip install scanpy # requires pandas!=1.1,>=1.0
pip install arboreto
pip install pyscenic
conda list | grep pandas
conda list | grep pyscenic
conda list | grep arboreto
cd $SAIBAR/software/
git clone git://github.com/aertslab/LoomXpy
cd LoomXpy
git pull
pip install .
cd ..
rm -rf LoomXpy
# not for py3.8 in conda, or requires downgrading:
pip install scrublet
pip install lda
pip install umap
pip install scanorama
conda install ipywidgets
pip install -U "tmtoolkit[recommended]" # recommended installation without topic modeling
## install pycisTopic
cd $SAIBAR/software/ # (temporary)
git clone https://github.com/aertslab/pycisTopic
cd pycisTopic
git pull
python setup.py install
# To confirm whether it has been installed properly, try:
python
import pycisTopic
## fitsne
#conda install -c conda-forge scipy==1.5
#conda list | grep scipy
#conda install -c conda-forge cython fftw
#pip install fitsne
### Python 3.7
ssh ...
my_conda_initialize
# source /etc/profile.d/z01_modules.sh
# source /staging/leuven/stg_00002/lcb/saibar/software/anaconda3/etc/profile.d/conda.sh
# Create conda environment
conda create -n pycisTopic_env python=3.7.4
# Install dependencies (& any extra packages)
# Note: this ended up being a mess... TODO: cleanup the list. Keep each installation only once...
conda activate pycisTopic_env
conda install numpy pandas matplotlib seaborn scipy
## pyscenic (required for pycisTopic)
conda install -c anaconda xlrd cytoolz
pip install pyscenic # requires early version of pandas, but only GRNBoost, ignore it...
conda install pandas==1.2.0
conda install -c conda-forge loompy igraph python-igraph leidenalg lda IPython gensim networkx typing adjusttext gcc openssl python-annoy
conda install -c bioconda pyBigWig pyranges pybedtools pyfasta umap harmonypy scanorama pybiomart
conda install ipykernel # for Jupyter
pip install ray # https://docs.ray.io/en/master/installation.html Required: >=1.3 (1.1 gives errors)
pip install -U "tmtoolkit[recommended]"
conda install -c conda-forge cython fftw # for fitsne
pip install fitsne
pip3 install bbknn # from bioconda didn't work...
# conda list
# These "imports" are not listed in conda but are available (i.e. default from python? or installed through another dependency?):
# PIL sklearn pickle zipfile ssl xml random math operator base64 collections itertools json multiprocessing subprocess logging io os sys tempfile warnings
## install pycisTopic
cd $SAIBAR/software/ # (temporary)
git clone https://github.com/aertslab/pycisTopic
cd pycisTopic
python setup.py install
# To confirm whether it has been installed properly, try:
python
import pycisTopic
########
# Other packages installed:
## scanpy (https://scanpy.readthedocs.io/en/latest/installation.html) - not required?
conda install scikit-learn statsmodels numba pytables
conda install -c conda-forge python-igraph louvain multicore-tsne
pip install scanpy # requires pandas!=1.1,>=1.0
module load GCC
pip install scrublet
#########
# trying to run tutorial... started complainin about missing...
pip install ray # https://docs.ray.io/en/master/installation.html
# needed to re-install (why??):
conda install -c conda-forge gensim
conda install smart_open==2.0.0
pip install lda # no longer works with conda-forge...
conda install cython
conda install -c bioconda pyBigWig
pip install pyscenic # tmtoolkit 0.10.0 requires pandas<1.2,>=1.1.0, but you have pandas 0.25.3 which is incompatible.
pip install pybiomart
conda install -c bioconda harmonypy
conda install -c conda-forge python-igraph
conda install -c conda-forge leidenalg
conda install pandas==1.2.0 # important
conda install -c bioconda pyfaidx
#########
# After installing any new package, check pandas version. It keeps getting downgraded:
conda list | grep pandas
# 11 Feb 2021: Update to Arboreto (0.1.6) and pySCENIC (0.11.0)
conda uninstall pyscenic
pip uninstall pyscenic
conda uninstall arboreto
pip uninstall arboreto
pip uninstall pandas
conda uninstall pandas
conda install pandas==1.2.0
pip install arboreto
pip install pyscenic
conda list | grep pandas
conda list | grep pyscenic
conda list | grep arboreto
# TO update for release:
git clone git://github.com/aertslab/LoomXpy
cd loomxpy
pip install .