Skip to content

Commit

Permalink
Add training data and upset plot
Browse files Browse the repository at this point in the history
  • Loading branch information
fouodo committed Jul 17, 2024
1 parent ef9e7bf commit 08df12c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ print(train_study)

- An upset plot of the training study: Visualize patient overlap across layers.

```{r training_data, include=TRUE, eval=TRUE}
```{r upsetplot, include=TRUE, eval=TRUE}
train_study$upset(order.by = "freq")
```
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ tl_me <- TrainLayer$new(id = "methylation", train_study = train_study)
tl_meta <- TrainMetaLayer$new(id = "meta_layer", train_study = train_study)
```

- Add training data (entities) to layers, excluded the meta layer. The
meta layer is modifiable internally after the training phase.
- Add training data (entities) to layers: Exclude the meta layer, as it
is modifiable internally after the training phase.

``` r
train_data_ge <- TrainData$new(id = "geneexpr",
Expand Down Expand Up @@ -154,3 +154,12 @@ print(train_study)
## Status : Not trained
## Number of layers: 4
## Layers trained : 0

- An upset plot of the training study: Visualize patient overlap across
layers.

``` r
train_study$upset(order.by = "freq")
```

![](README_files/figure-gfm/upsetplot-1.png)<!-- -->

0 comments on commit 08df12c

Please sign in to comment.