Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new instructions on manually recreating momix env #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ For running 2. also annotations from MSigDB are required and a download script i

## Install the software environment

---

### UPDATE: 14/11/2023

Some users have reported issues in recreating the conda environment due to conflict between package version.
If you encounter problems during installation, please refer to [this bash script](momix_env.sh) that recreates all the dependency tree manually and to [this thread on Issues](https://github.com/cantinilab/momix-notebook/issues/9) for further information.

---

* Install conda from https://docs.conda.io/en/latest/miniconda.html
* create a new environment: `conda create -n momix -c conda-forge -c bioconda -c lcantini momix r-irkernel`

Expand Down
38 changes: 38 additions & 0 deletions momix_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#initialize conda environment
conda create -n momix -c conda-forge -y "python>=3.6,<3.7" r-base

# activate env
conda activate momix

# install jupyter through pip
pip install jupyter

# install r dependencies (this will take a while)
conda install -c conda-forge -y r-survival r-rgcca r-icluster r-gparotation r-ggplot2 r-clustercrit r-devtools r-irkernel

# install missing python dependencies directly from github
pip install git+https://github.com/mims-harvard/scikit-fusion

# install omicade4
conda install -c bioconda -y bioconductor-omicade4

# install mofa
pip install mofapy
Rscript -e 'devtools::install_github("bioFAM/MOFA")'

#install fgsea from devtoools
Rscript -e 'devtools::install_github("ctlab/fgsea")'

# install MSFA
Rscript -e 'devtools::install_github("lcan88/MSFA")'

#install missing packages frm CRAN:
Rscript -e 'install.packages(c("r.jive","IntNMF", "InterSIM", "tensorBSS"), repos="http://cran.us.r-project.org")'


#download notebooks
git clone https://github.com/cantinilab/momix-notebook

# run jupyter
jupyter notebook