annotate gss.Rmd @ 0:d0cbe6cc1f04 draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
author iuc
date Wed, 12 Jan 2022 19:07:45 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
1 ---
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
2 title: "Analysis by GenomicSuperSignature"
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
3 date: "`r Sys.Date()`"
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
4 output:
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
5 BiocStyle::html_document:
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
6 toc: true
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
7 toc_float: false
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
8 toc_depth: 3
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
9 params:
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
10 val_all: val_all
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
11 dat: dat
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
12 RAVmodel: RAVmodel
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
13 inputName: inputName
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
14 numOut: numOut
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
15 ---
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
16
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
17 ```{r setup, include=FALSE}
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
18 knitr::opts_chunk$set(echo = FALSE)
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
19 ```
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
20
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
21 # RAVs best represents your dataset
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
22 The *validation* provides a quantitative representation of the relevance
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
23 between your dataset and RAVs. Below shows the top 6 validated RAVs and
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
24 the complete result is saved as `{input_name}_validate.csv`.
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
25
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
26 ```{r}
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
27 head(params$val_all)
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
28 ```
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
29
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
30 ## Heatmap Table
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
31 `heatmapTable` takes validation results as its input and displays them into
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
32 a two panel table: the top panel shows the average silhouette width (avg.sw)
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
33 and the bottom panel displays the validation score.
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
34
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
35 `heatmapTable` can display different subsets of the validation output. For
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
36 example, if you specify `scoreCutoff`, any validation result above that score
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
37 will be shown. If you specify the number (n) of top validation results through
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
38 `num.out`, the output will be a n-columned heatmap table. You can also use the
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
39 average silhouette width (`swCutoff`), the size of cluster (`clsizecutoff`),
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
40 one of the top 8 PCs from the dataset (`whichPC`).
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
41
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
42 Here, we print out top `r params$numOut` validated RAVs with average silhouette
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
43 width above 0.
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
44
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
45 ```{r out.height="45%", out.width="45%", message=FALSE, warning=FALSE}
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
46 heatmapTable(params$val_all, num.out = params$numOut, swCutoff = 0)
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
47 ```
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
48
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
49 ## Interactive Graph
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
50 Under the default condition, `plotValidate` plots validation results of all non
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
51 single-element RAVs in one graph, where x-axis represents average silhouette
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
52 width of the RAVs (a quality control measure of RAVs) and y-axis represents
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
53 validation score. We recommend users to focus on RAVs with higher validation
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
54 score and use average silhouette width as a secondary criteria.
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
55
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
56 ```{r out.height="80%", out.width="80%"}
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
57 plotValidate(params$val_all, interactive = TRUE)
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
58 ```
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
59
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
60 Note that `interactive = TRUE` will result in a zoomable, interactive plot that
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
61 included tooltips, which is saved as `{input_name}_validate_plot.html` file.
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
62
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
63 You can hover each data point for more information:
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
64
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
65 - **sw** : the average silhouette width of the cluster
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
66 - **score** : the top validation score between 8 PCs of the dataset and RAVs
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
67 - **cl_size** : the size of RAVs, represented by the dot size
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
68 - **cl_num** : the RAV number. You need this index to find more information
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
69 about the RAV.
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
70 - **PC** : test dataset's PC number that validates the given RAV. Because we
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
71 used top 8 PCs of the test dataset for validation, there are 8 categories.
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
72
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
73 If you double-click the PC legend on the right, you will enter an
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
74 individual display mode where you can add an additional group of data
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
75 point by single-click.
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
76
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
77
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
78 # Prior information associated to your dataset
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
79 ```{r echo=FALSE}
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
80 validated_ind <- validatedSignatures(params$val_all, num.out = params$numOut,
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
81 swCutoff = 0, indexOnly = TRUE)
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
82
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
83 # In case, there are fewer validated_ind than the number of outputs user set
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
84 n <- min(params$numOut, length(validated_ind), na.rm = TRUE)
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
85 ```
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
86
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
87 ## MeSH terms in wordcloud
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
88 ```{r out.height="60%", out.width="60%", fig.width=8, fig.height=8}
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
89 for (i in seq_len(n)) {
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
90 set.seed(1)
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
91 print(paste0("MeSH terms related to RAV", validated_ind[i]))
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
92 drawWordcloud(params$RAVmodel, validated_ind[i])
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
93 }
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
94 ```
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
95
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
96 ## GSEA
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
97 The complete result is saved as `{input_name}_genesets_RAV*.csv`.
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
98 ```{r}
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
99 res_all <- vector(mode = "list", length = n)
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
100 for (i in seq_len(n)) {
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
101 RAVnum <- validated_ind[i]
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
102 RAVname <- paste0("RAV", RAVnum)
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
103 res <- gsea(params$RAVmodel)[[RAVname]]
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
104 res_all[[i]] <- head(res)
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
105 names(res_all)[i] <- paste0("Enriched gene sets for RAV", validated_ind[i])
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
106 }
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
107 res_all
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
108 ```
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
109
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
110 ## Publication
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
111 The complete result is saved as `{input_name}_literatures_RAV*.csv`.
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
112 ```{r}
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
113 res_all <- vector(mode = "list", length = n)
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
114 for (i in seq_len(n)) {
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
115 RAVnum <- validated_ind[i]
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
116 res <- findStudiesInCluster(params$RAVmodel, RAVnum, studyTitle = TRUE)
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
117 res_all[[i]] <- head(res)
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
118 names(res_all)[i] <- paste0("Studies related to RAV", validated_ind[i])
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
119 }
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
120 res_all
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
121 ```
d0cbe6cc1f04 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/genomic_super_signature commit 1aadd5dce3b254e7714c2fdd39413029fd4b9b7a"
iuc
parents:
diff changeset
122