-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
69 lines (51 loc) · 2.02 KB
/
README.Rmd
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
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```
# lcmm-site
This is the repository for analysis used in Latent Crohn’s Disease Subgroups are
Identified by Faecal Calprotectin Profiles by Constantine-Cooke et al. The
reports generated by this code can be found
[here](http://www.constantine-cooke.com/lcmm-site/).
## Usage
This report requires access to the Crohn's disease inception cohort dataset
hosted by the University of Edinburgh. For access to these data, please
[contact Professor Charlie Lees](mailto:[email protected]).
To generate the results, the
[`renv`](https://rstudio.github.io/renv/articles/renv.html) R package and
[Quarto](https://quarto.org) scientific publishing system is
required.
### `renv`
The `renv` package is used to manage dependency management: ensuring the same R
packages, with their respective versions, are used when the analysis is run.
Clone this repository. If you have not already, please
[install R](https://cran.r-project.org). Then, from R, install the `renv`
package
```{R, eval = FALSE}
install.packages("renv")
```
Open a project with the working directory of this cloned repository. Then use
the below command to install the R packages required for this project
```{R, eval = FALSE}
renv::restore()
```
### Quarto
Quarto is used to generate the reports. If you have not already, please
[install Quarto](https://quarto.org/docs/get-started/).
### Generating output
Mount `smb://cmvm.datastore.ed.ac.uk/igmm/` to `/Volumes/`. From a terminal, `cd`
into the directory you have cloned this repository into. Finally, run
`quarto render`. Figures used in the paper can be found in the `paper` directory
whilst plots not used in the manuscript can be found in the `plots` directory.
The generated website files can be found in `docs` and can be served by any
web server, for example by running the below code:
``` bash
cd docs
python3 -m http.server
```