Skip to content

Commit

Permalink
A study is created
Browse files Browse the repository at this point in the history
  • Loading branch information
fouodo committed Jul 17, 2024
1 parent 47efb45 commit f36ee4b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 7 deletions.
19 changes: 16 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ Recent technological advances have enabled the simultaneous targeting of multipl

We introduce the fuseMLR package for late integration modeling in R. This package allows users to define studies with multiple layers, data entities, and layer-specific machine learning methods. FuseMLR is user-friendly, enabling the training of different models across layers and automatically conducting meta-analysis once layer-specific training is completed. Additionally, fuseMLR allows for variable selection at the layer level and makes predictions for new data entities.

`fuseMLR` object oriented based on the `R6` package version 2.5.1.

### Installation

Install the development version from GitHub with
Expand All @@ -36,13 +38,24 @@ devtools::install_github("imbs-hl/fuseMLR")

### Usage example

The following example is based on simulated data available in fuseMLR. Data have been simulated using the R package InterSIM, version 2.2.0.
The following example is based on simulated data available in `fuseMLR`. Data have been simulated using the R package `InterSIM`, version 2.2.0.

- Let us examine our simulated data.
- Let us inspect our simulated data.

```{r data_exam, include=TRUE, eval=TRUE}
library(fuseMLR)
data("entities")
# This is a list containing two lists of data: training and test.
# Each sublist contains three entities.
str(object = entities,max.level = 2)
str(object = entities, max.level = 2)
```

- Instantiate a training study: A study is the fundamental component of a `fuseMLR` object.

```{r training_study, include=TRUE, eval=TRUE}
train_study <- TrainStudy$new(id = "train_study",
ind_col = "IDS",
target = "disease")
print(train_study)
# See also train_study$summary()
```
30 changes: 26 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ and automatically conducting meta-analysis once layer-specific training
is completed. Additionally, fuseMLR allows for variable selection at the
layer level and makes predictions for new data entities.

`fuseMLR` object oriented based on the `R6` package version 2.5.1.

### Installation

Install the development version from GitHub with
Expand All @@ -56,16 +58,17 @@ devtools::install_github("imbs-hl/fuseMLR")

### Usage example

The following example is based on simulated data available in fuseMLR.
Data have been simulated using the R package InterSIM, version 2.2.0.
The following example is based on simulated data available in `fuseMLR`.
Data have been simulated using the R package `InterSIM`, version 2.2.0.

- Let us examine our simulated data.
- Let us inspect our simulated data.

``` r
library(fuseMLR)
data("entities")
# This is a list containing two lists of data: training and test.
# Each sublist contains three entities.
str(object = entities,max.level = 2)
str(object = entities, max.level = 2)
```

## List of 2
Expand All @@ -77,3 +80,22 @@ str(object = entities,max.level = 2)
## ..$ geneexpr :'data.frame': 23 obs. of 133 variables:
## ..$ proteinexpr:'data.frame': 23 obs. of 162 variables:
## ..$ methylation:'data.frame': 23 obs. of 369 variables:

- Instantiate a training study: A study is the fundamental component of
a `fuseMLR` object.

``` r
train_study <- TrainStudy$new(id = "train_study",
ind_col = "IDS",
target = "disease")
print(train_study)
```

## TrainStudy : train_study
## Status : Not trained
## Number of layers: 0
## Layers trained : 0

``` r
# See also train_study$summary()
```

0 comments on commit f36ee4b

Please sign in to comment.