rapids/docs/usage/installation.rst

51 lines
1.2 KiB
ReStructuredText
Raw Normal View History

2019-12-12 00:29:57 +01:00
Installation
===============
2019-12-12 00:44:37 +01:00
This instructions have been tested on MacOS Cataline and Ubuntu 16.04. If you find a problem, please report it.
2019-12-12 00:29:57 +01:00
2019-12-12 00:44:37 +01:00
Install MySQL
2019-12-12 00:29:57 +01:00
2019-12-12 00:44:37 +01:00
- ``brew install mysql``
- ``brew services start mysql``
2019-12-12 00:29:57 +01:00
2019-12-12 00:44:37 +01:00
Install R:
2019-12-12 00:29:57 +01:00
2019-12-12 00:44:37 +01:00
- ``brew install r``
2019-12-12 00:29:57 +01:00
2019-12-12 00:44:37 +01:00
Install miniconda:
2019-12-12 00:29:57 +01:00
2019-12-12 00:44:37 +01:00
- ``brew cask install miniconda`` (for Mac)
Clone our repo:
2019-12-12 00:29:57 +01:00
2019-12-12 00:47:28 +01:00
- ``git clone https://github.com/carissalow/moshi-aware-pipeline``
2019-12-12 00:29:57 +01:00
2019-12-12 00:44:37 +01:00
Create a python virtual environment:
2019-12-12 00:29:57 +01:00
2019-12-12 00:44:37 +01:00
- ``conda env create -f environment.yml``
- ``conda init zsh/bash``
- Restart terminal if necessary
- ``conda activate moshi-env``
2019-12-12 00:29:57 +01:00
2019-12-12 00:44:37 +01:00
Install r packages and virtual environment:
2019-12-12 00:29:57 +01:00
2019-12-12 00:44:37 +01:00
- ``snakemake packrat_install``
- ``snakemake packrat_init``
- ``snakemake packrat_restore``
2019-12-12 00:29:57 +01:00
2019-12-12 00:44:37 +01:00
Configure the participants to analyze:
2019-12-12 00:29:57 +01:00
2019-12-12 00:44:37 +01:00
- Add a file per participant and name it with the label for that participant, no extension is necessary: ``/data/external/pxx``
- Add a line with the device_id for that participant as it appears on the db
- Add a line with the mobile platform (Android, or iOS)
2019-12-12 00:29:57 +01:00
2019-12-12 00:44:37 +01:00
Configure the db connection:
2019-12-12 00:29:57 +01:00
2019-12-12 00:44:37 +01:00
- Create an empty .env file in the root folder
- Add and complete the following lines
| ``[MY_GROUP_NAME]``
| ``user=MyUSER``
| ``password=MyPassword``
| ``host=MyIP``
| ``port=3306``