-
Notifications
You must be signed in to change notification settings - Fork 0
/
panels.qmd
928 lines (672 loc) · 21.5 KB
/
panels.qmd
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
---
title: "Panels"
---
This page showcases panels implemented in [iSEE][bioc-iSEE] and its known extensions.
Panels are grouped by package in which their are implemented (see the floating table of contents on the right).
Each panel is introduced by a brief description above a single screenshot that illustrates a representative output,
and the code used to produce that particular panel output in a live app.
::: {.callout-note}
Bear in mind that all those panel classes come with many options to alter their respective outputs.
This gallery showcases only a fraction of what each of those panels can do.
In all likelihood, if a panel seems to do *almost* what you have in mind, then there are options to make it do *exactly* that.
Otherwise, options can be added, and more panel classes can be created; check out our [resources](./resources.html) to learn how!
:::
## iSEE
### ColumnDataPlot
Visualise any combination of sample metadata stored in a [`SummarizedExperiment`][bioc-SummarizedExperiment] object.
![The `ColumnDataPlot` panel class.](images/panels/iSEE/ColumnDataPlot.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
library(iSEE)
library(scRNAseq)
library(scater)
# Example data ----
sce <- ReprocessedAllenData(assays="tophat_counts")
sce <- logNormCounts(sce, exprs_values="tophat_counts")
# launch the app itself ----
app <- iSEE(sce, initial = list(
ColumnDataPlot(
PanelWidth = 8L,
YAxis = "NREADS",
XAxis = "Column data",
XAxisColumnData = "driver_1_s",
ColorBy = "Column data",
ColorByColumnData = "driver_1_s",
FacetColumnBy = "Column data",
FacetColumnByColData = "Core.Type"
)
))
if (interactive()) {
shiny::runApp(app, port=1234)
}
```
:::
### ColumnDataTable
Browser and filter sample metadata stored in a [`SummarizedExperiment`][bioc-SummarizedExperiment] object.
![The `ColumnDataTable` panel class.](images/panels/iSEE/ColumnDataTable.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
library(iSEE)
library(scRNAseq)
library(scater)
# Example data ----
sce <- ReprocessedAllenData(assays="tophat_counts")
sce <- logNormCounts(sce, exprs_values="tophat_counts")
# launch the app itself ----
app <- iSEE(sce, initial = list(
ColumnDataTable(
PanelWidth = 12L
)
))
if (interactive()) {
shiny::runApp(app, port=1234)
}
```
:::
### ComplexHeatmapPlot
Visualise any number of features and samples in any assay stored in a [`SummarizedExperiment`][bioc-SummarizedExperiment] object.
![The `ComplexHeatmapPlot` panel class.](images/panels/iSEE/ComplexHeatmapPlot.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
library(iSEE)
library(scRNAseq)
library(scater)
library(tibble)
library(dplyr)
# Example data ----
sce <- ReprocessedAllenData(assays="tophat_counts")
sce <- logNormCounts(sce, exprs_values="tophat_counts")
rowData(sce)$ave_count <- rowMeans(assay(sce, "tophat_counts"))
rowData(sce)$n_cells <- rowSums(assay(sce, "tophat_counts") > 0)
rowData(sce)$row_var <- rowVars(assay(sce, "logcounts"))
# launch the app itself ----
# top 10 genes with highest variance in logcounts
gene_list <- c("Lamp5", "Fam19a1", "Cnr1", "Rorb", "Sparcl1", "Crym", "Lmo3", "Serpine2", "Ddah1", "Cux2")
app <- iSEE(sce, initial = list(
ComplexHeatmapPlot(
PanelWidth = 12L,
CustomRows = TRUE,
CustomRowsText = paste0(paste0(gene_list, collapse = "\n"), "\n"),
ColumnData = "driver_1_s",
RowData = "row_var"
)
))
if (interactive()) {
shiny::runApp(app, port=1234)
}
```
:::
### FeatureAssayPlot
Visualise up to two features in any assay stored in a [`SummarizedExperiment`][bioc-SummarizedExperiment] object.
![The `FeatureAssayPlot` panel class.](images/panels/iSEE/FeatureAssayPlot.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
library(iSEE)
library(scRNAseq)
library(scater)
# Example data ----
sce <- ReprocessedAllenData(assays="tophat_counts")
sce <- logNormCounts(sce, exprs_values="tophat_counts")
# launch the app itself ----
app <- iSEE(sce, initial = list(
FeatureAssayPlot(
PanelWidth = 12L,
YAxisFeatureName = "Rorb",
XAxis = "Column data", XAxisColumnData = "driver_1_s",
ColorBy = "Column data", ColorByColumnData = "driver_1_s",
FacetColumnBy = "Column data", FacetColumnByColData = "Core.Type"
)
))
if (interactive()) {
shiny::runApp(app, port=1234)
}
```
:::
### ReducedDimensionPlot
Visualise any two dimensions of any dimensionality reduction result stored in a [`SingleCellExperiment`][bioc-SingleCellExperiment] object.
![The `ReducedDimensionPlot` panel class.](images/panels/iSEE/ReducedDimensionPlot.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
library(iSEE)
library(scRNAseq)
library(scater)
# Example data ----
sce <- ReprocessedAllenData(assays="tophat_counts")
sce <- logNormCounts(sce, exprs_values="tophat_counts")
sce <- runPCA(sce, ncomponents=4)
sce <- runUMAP(sce)
# launch the app itself ----
app <- iSEE(sce, initial = list(
ReducedDimensionPlot(
PanelWidth = 8L,
Type = "UMAP",
ColorBy = "Column data", ColorByColumnData = "driver_1_s")))
if (interactive()) {
shiny::runApp(app, port=1234)
}
```
:::
### RowDataPlot
Visualise any combination of feature metadata stored in a [`SummarizedExperiment`][bioc-SummarizedExperiment] object.
![The `RowDataPlot` panel class.](images/panels/iSEE/RowDataPlot.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
library(iSEE)
library(scRNAseq)
library(scater)
# Example data ----
sce <- ReprocessedAllenData(assays="tophat_counts")
sce <- logNormCounts(sce, exprs_values="tophat_counts")
rowData(sce)$row_var <- rowVars(assay(sce, "logcounts"))
rowData(sce)$n_cells <- rowSums(assay(sce, "logcounts") > 0)
# launch the app itself ----
app <- iSEE(sce, initial = list(
RowDataPlot(
PanelWidth = 12L,
YAxis = "row_var",
XAxis = "Row data",
XAxisRowData = "n_cells"
)
))
if (interactive()) {
shiny::runApp(app, port=1234)
}
```
:::
### RowDataTable
Browse and filter feature metadata stored in a [`SummarizedExperiment`][bioc-SummarizedExperiment] object.
![The `RowDataTable` panel class.](images/panels/iSEE/RowDataTable.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
library(iSEE)
library(scRNAseq)
# Example data ----
sce <- ReprocessedAllenData(assays="tophat_counts")
rowData(sce)$ave_count <- rowMeans(assay(sce, "tophat_counts"))
rowData(sce)$n_cells <- rowSums(assay(sce, "tophat_counts") > 0)
# launch the app itself ----
app <- iSEE(sce, initial = list(
RowDataTable(
PanelWidth = 12L
)
))
if (interactive()) {
shiny::runApp(app, port=1234)
}
```
:::
### SampleAssayPlot
Visualise up to two samples in any assay stored in a [`SummarizedExperiment`][bioc-SummarizedExperiment] object.
![The `SampleAssayPlot` panel class.](images/panels/iSEE/SampleAssayPlot.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
library(iSEE)
library(scRNAseq)
library(scater)
# Example data ----
sce <- ReprocessedAllenData(assays="tophat_counts")
sce <- logNormCounts(sce, exprs_values="tophat_counts")
rowData(sce)$row_var <- rowVars(assay(sce, "logcounts"))
# launch the app itself ----
app <- iSEE(sce, initial = list(
SampleAssayPlot(
PanelWidth = 12L,
YAxisSampleName = "SRR2140028",
XAxis = "Sample name", XAxisSampleName = "SRR2140022",
ColorBy = "Row data", ColorByRowData = "row_var"
)
))
if (interactive()) {
shiny::runApp(app, port=1234)
}
```
:::
## iSEEde
### DETable
Browse and filter any table of differential expression results embedded in a [`SummarizedExperiment`][bioc-SummarizedExperiment] object.
![The `DETable` panel class.](images/panels/iSEEde/DETable.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
library(iSEE)
library(iSEEde)
library(airway)
library(DESeq2)
# Example data ----
data("airway")
airway$dex <- relevel(airway$dex, "untrt")
dds <- DESeqDataSet(airway, ~ 0 + dex + cell)
dds <- DESeq(dds)
res_deseq2 <- results(dds, contrast = list("dextrt", "dexuntrt"))
# iSEE / iSEEde ---
airway <- embedContrastResults(res_deseq2, airway, name = "dex: trt vs untrt")
app <- iSEE(airway, initial = list(
DETable(
PanelWidth = 12L,
ContrastName="dex: trt vs untrt",
RoundDigits = TRUE
)
))
if (interactive()) {
shiny::runApp(app)
}
```
:::
### LogFCLogFCPlot
Visualise the log-transformed fold-changes of any two differential expression contrasts embedded in a [`SummarizedExperiment`][bioc-SummarizedExperiment] object.
![The `LogFCLogFCPlot` panel class.](images/panels/iSEEde/LogFCLogFCPlot.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
library("iSEEde")
library("airway")
library("edgeR")
library("DESeq2")
library("iSEE")
# Example data ----
data("airway")
airway$dex <- relevel(airway$dex, "untrt")
# DESeq2 ----
dds <- DESeqDataSet(airway, ~ 0 + dex + cell)
dds <- DESeq(dds)
res_deseq2 <- results(dds, contrast = list("dextrt", "dexuntrt"))
airway <- embedContrastResults(res_deseq2, airway, name = "DESeq2")
# edgeR ----
design <- model.matrix(~ 0 + dex + cell, data = colData(airway))
fit <- glmFit(airway, design, dispersion = 0.1)
lrt <- glmLRT(fit, contrast = c(-1, 1, 0, 0, 0))
res_edger <- topTags(lrt, n = Inf)
airway <- embedContrastResults(res_edger, airway, name = "edgeR")
# iSEE / iSEEde ---
airway <- registerAppOptions(airway, factor.maxlevels = 30, color.maxlevels = 30)
app <- iSEE(airway, initial = list(
LogFCLogFCPlot(
ContrastNameX = "DESeq2", ContrastNameY = "edgeR",
ColorBy = "Row data",
ColorByRowData = "gene_biotype",
PanelWidth = 12L)
))
if (interactive()) {
shiny::runApp(app)
}
```
:::
### MAPlot
Visualise the M and A values of any differential expression contrast embedded in a [`SummarizedExperiment`][bioc-SummarizedExperiment] object.
![The `MAPlot` panel class.](images/panels/iSEEde/MAPlot.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
library("iSEEde")
library("airway")
library("DESeq2")
library("iSEE")
# Example data ----
data("airway")
airway$dex <- relevel(airway$dex, "untrt")
rowData(airway)$seq_strand <- factor(rowData(airway)$seq_strand)
dds <- DESeqDataSet(airway, ~ 0 + dex + cell)
dds <- DESeq(dds)
res_deseq2 <- results(dds, contrast = list("dextrt", "dexuntrt"))
# iSEE / iSEEde ---
airway <- embedContrastResults(res_deseq2, airway, name = "dex: trt vs untrt")
app <- iSEE(airway, initial = list(
MAPlot(
PanelWidth = 12L,
ContrastName="dex: trt vs untrt",
ColorBy = "Row data",
ColorByRowData = "seq_strand"
)
))
if (interactive()) {
shiny::runApp(app)
}
```
:::
### VolcanoPlot
Visualise the P values and log-transformed fold-changes of any differential expression contrast embedded in a [`SummarizedExperiment`][bioc-SummarizedExperiment] object.
![The `VolcanoPlot` panel class.](images/panels/iSEEde/VolcanoPlot.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
library(iSEE)
library(iSEEde)
library(airway)
library(DESeq2)
# Example data ----
data("airway")
airway$dex <- relevel(airway$dex, "untrt")
rowData(airway)$seq_strand <- factor(rowData(airway)$seq_strand)
dds <- DESeqDataSet(airway, ~ 0 + dex + cell)
dds <- DESeq(dds)
res_deseq2 <- results(dds, contrast = list("dextrt", "dexuntrt"))
# iSEE / iSEEde ---
airway <- embedContrastResults(res_deseq2, airway, name = "dex: trt vs untrt")
app <- iSEE(airway, initial = list(
VolcanoPlot(
PanelWidth = 12L,
ContrastName="dex: trt vs untrt",
ColorBy = "Row data",
ColorByRowData = "seq_strand"
)
))
if (interactive()) {
shiny::runApp(app)
}
```
:::
## iSEEhex
### ReducedDimensionHexPlot
Same as [`ReducedDimensionPlot`](#reduceddimensionplot) but summarised using hexagonal bins.
![The `ReducedDimensionHexPlot` panel class.](images/panels/iSEEhex/ReducedDimensionHexPlot.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
library(iSEE)
library(iSEEhex)
library(scRNAseq)
library(scater)
# Example data ----
sce <- ReprocessedAllenData(assays="tophat_counts")
sce <- logNormCounts(sce, exprs_values="tophat_counts")
sce <- runPCA(sce, ncomponents=4)
# launch the app itself ----
if (interactive()) {
iSEE(sce, initial=list(
ReducedDimensionHexPlot(PanelWidth = 12L, BinResolution=50)
))
}
```
:::
## iSEEpathways
### FgseaEnrichmentPlot
GSEA enrichment plot produced by the [*fgsea*](https://bioconductor.org/packages/fgsea/) package.
![The `FgseaEnrichmentPlot` panel class.](images/panels/iSEEpathways/FgseaEnrichmentPlot.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
library(iSEE)
library(fgsea)
library(iSEEpathways)
# Example data ----
set.seed(1)
simulated_data <- simulateExampleData()
pathways_list <- simulated_data[["pathwaysList"]]
features_stat <- simulated_data[["featuresStat"]]
se <- simulated_data[["summarizedexperiment"]]
# fgsea ----
set.seed(42)
fgseaRes <- fgsea(pathways = pathways_list,
stats = features_stat,
minSize = 15,
maxSize = 500)
fgseaRes <- fgseaRes[order(pval), ]
# iSEE / iSEEpathways ---
se <- embedPathwaysResults(fgseaRes, se, name = "fgsea", class = "fgsea", pathwayType = "simulated",
pathwaysList = pathways_list, featuresStats = features_stat)
app <- iSEE(se, initial = list(
FgseaEnrichmentPlot(ResultName="fgsea", PathwayId = "pathway_1350", PanelWidth = 12L)
))
if (interactive()) {
shiny::runApp(app)
}
```
:::
### PathwaysTable
Browse and filter any table of gene set analysis results embedded in a [`SummarizedExperiment`][bioc-SummarizedExperiment] object.
![The `PathwaysTable` panel class.](images/panels/iSEEpathways/PathwaysTable.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
library(iSEE)
library(fgsea)
library(iSEEpathways)
# Example data ----
set.seed(1)
simulated_data <- simulateExampleData()
pathways_list <- simulated_data[["pathwaysList"]]
features_stat <- simulated_data[["featuresStat"]]
se <- simulated_data[["summarizedexperiment"]]
# fgsea ----
set.seed(42)
fgseaRes <- fgsea(pathways = pathways_list,
stats = features_stat,
minSize = 15,
maxSize = 500)
fgseaRes <- fgseaRes[order(pval), ]
# iSEE ---
se <- embedPathwaysResults(fgseaRes, se, name = "fgsea", class = "fgsea", pathwayType = "simulated",
pathwaysList = pathways_list, featuresStats = features_stat)
app <- iSEE(se, initial = list(
PathwaysTable(ResultName="fgsea", PanelWidth = 12L)
))
if (interactive()) {
shiny::runApp(app)
}
```
:::
## iSEEu
### AggregatedDotPlot
Represents groups of samples by dots, where colour scales with means assay value and size scales with proportion of non-zero values for selected features.
![The `AggregatedDotPlot` panel class.](images/panels/iSEEu/AggregatedDotPlot.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
library(iSEE)
library(scRNAseq)
library(scater)
library(iSEEu)
# Example data ----
sce <- ReprocessedAllenData(assays="tophat_counts")
sce <- logNormCounts(sce, exprs_values="tophat_counts")
# launch the app itself ----
if (interactive()) {
iSEE(
sce,
initial = list(
AggregatedDotPlot(
ColumnDataLabel="Primary.Type",
CustomRowsText = "Rorb\nSnap25\nFoxp2",
# PanelHeight = 500L,
PanelWidth = 12L
)
)
)
}
```
:::
### DynamicMarkerTable
A table that dynamically identifies marker genes for a subset of samples transmitted from another panel.
Comparisons are made between the active selection in the transmitting panel and either
* all non-selected points, if no saved selections are available, or
* each subset of points in each saved selection.
![The `DynamicMarkerTable` panel class, alongside a `ReducedDimensionPlot` panel from which it receives a selection of samples.](images/panels/iSEEu/DynamicMarkerTable.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
library(iSEE)
library(iSEEu)
library(scRNAseq)
library(scater)
library(scran)
sce <- ReprocessedAllenData(assays="tophat_counts")
sce <- logNormCounts(sce, exprs_values="tophat_counts")
sce <- runPCA(sce, ncomponents=4)
if (interactive()) {
iSEE(sce, initial=list(
ReducedDimensionPlot(
PanelWidth=4L,
BrushData = list(
lasso = NULL, closed = TRUE,
mapping = list(x = "X", y = "Y"),
coord = structure(c(
-47.8, -41.9, -14.6, -13.6, -19.1, -27.3, -33.6, -44, -47.8,
-23.6, -44.1, -56.4, -46.9, -26.4, -17.4, -6.2, -5.4, -23.6),
dim = c(9L, 2L))
)
),
DynamicMarkerTable(
PanelWidth=8L,
ColumnSelectionSource="ReducedDimensionPlot1"
)
))
}
```
:::
### DynamicReducedDimensionPlot
A dimensionality reduction plot that dynamically recomputes the coordinates for the samples, based on a subset of samples and features transmitted from other panels.
![The `DynamicReducedDimensionPlot` panel class, alongside a `ReducedDimensionPlot` panel from which it receives a selection of samples.](images/panels/iSEEu/DynamicReducedDimensionPlot.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
library(iSEE)
library(iSEEu)
library(scRNAseq)
library(scater)
set.seed(1)
sce <- ReprocessedAllenData(assays="tophat_counts")
sce <- logNormCounts(sce, exprs_values="tophat_counts")
sce <- runPCA(sce, ncomponents=4)
if (interactive()) {
iSEE(sce, initial=list(
ReducedDimensionPlot(
PanelWidth = 6L,
BrushData = list(
lasso = NULL, closed = TRUE,
mapping = list(x = "X", y = "Y"),
coord = structure(c(
-47.8, -41.9, -14.6, -13.6, -19.1, -27.3, -33.6, -44, -47.8,
-23.6, -44.1, -56.4, -46.9, -26.4, -17.4, -6.2, -5.4, -23.6),
dim = c(9L, 2L))
)
),
DynamicReducedDimensionPlot(
PanelWidth = 6L,
Assay="logcounts",
ColumnSelectionSource="ReducedDimensionPlot1"
)
))
}
```
:::
### FeatureSetTable
A table where each row is itself a set of features (i.e., rows) and can be used to transmit such a feature set to another panel.
![The `FeatureSetTable` panel class, alongside `RowDataPlot` and `RowDataTable` panels to which it transmits a feature set.](images/panels/iSEEu/FeatureSetTable.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
library(iSEE)
library(iSEEu)
library(scRNAseq)
library(scater)
library(scran)
library(org.Mm.eg.db)
sce <- LunSpikeInData(location=FALSE)
sce <- logNormCounts(sce)
rowData(sce) <- cbind(rowData(sce), modelGeneVarWithSpikes(sce, "ERCC"))
cmds <- createGeneSetCommands(collections="GO",
organism="org.Mm.eg.db", identifier="ENSEMBL")
sce <- registerFeatureSetCommands(sce, cmds)
# Setting up the application.
gst <- FeatureSetTable(
Selected = "GO:0002020"
)
rdp <- RowDataPlot(
YAxis="total",
XAxis="Row data", XAxisRowData="mean",
ColorBy="Row selection",
RowSelectionSource="FeatureSetTable1"
)
rdt <- RowDataTable(
RowSelectionSource="FeatureSetTable1"
)
if (interactive()) {
iSEE(sce, initial=list(gst, rdp, rdt))
}
```
:::
### LogFCLogFCPlot {#logfclogfcplot-iseeu}
Precursor to the [`iSEEde::LogFCLogFCPlot`](#logfclogfcplot) class.
::: {.callout-warning}
Deprecation imminent. Please use `iSEEde::LogFCLogFCPlot()` instead.
:::
![The `LogFCLogFCPlot` panel class.](images/panels/iSEEu/LogFCLogFCPlot.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
# Making up some results:
se <- SummarizedExperiment(matrix(rnorm(10000), 1000, 10))
rownames(se) <- paste0("GENE_", seq_len(nrow(se)))
rowData(se)$PValue1 <- runif(nrow(se))
rowData(se)$LogFC1 <- rnorm(nrow(se))
rowData(se)$PValue2 <- runif(nrow(se))
rowData(se)$LogFC2 <- rnorm(nrow(se))
if (interactive()) {
iSEE(se, initial=list(
LogFCLogFCPlot(
PanelWidth = 12L,
XAxisRowData="LogFC1", YAxis="LogFC2",
XPValueField="PValue1", YPValueField="PValue2"
)
))
}
```
:::
### MAPlot {#maplot-iseeu}
Precursor to the [`iSEEde::MAPlot`](#maplot) class.
::: {.callout-warning}
Deprecation imminent. Please use `iSEEde::MAPlot()` instead.
:::
![The `MAPlot` panel class.](images/panels/iSEEu/MAPlot.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
# Making up some results:
se <- SummarizedExperiment(matrix(rnorm(10000), 1000, 10))
rownames(se) <- paste0("GENE_", seq_len(nrow(se)))
rowData(se)$PValue <- runif(nrow(se))
rowData(se)$LogFC <- rnorm(nrow(se))
rowData(se)$AveExpr <- rnorm(nrow(se))
if (interactive()) {
iSEE(se, initial=list(
MAPlot(PanelWidth=12L)
))
}
```
:::
### MarkdownBoard
A panel providing an [aceEditor](https://ace.c9.io/) that can be used to take notes within the app.
Notes should be typed using Markdown syntax, and the panel continuously renders them in HTML format for preview.
![The `MarkdownBoard` panel class.](images/panels/iSEEu/MarkdownBoard.png)
::: {.callout-caution collapse="true"}
## Reproduce This Output
```{r, eval=FALSE}
if (interactive()) {
iSEE(SummarizedExperiment(), initial=list(
MarkdownBoard(
PanelWidth = 12L,
Content = paste0(c(
"# Level 1 header",
"## Level 2 header",
"**Bold** and *italic*.",
"[Link](https://isee.github.io/)",
"* Bullet point\n"),
collapse = "\n\n"
)
)
))
}
```
:::
<!-- Links -->
[bioc-iSEE]: https://bioconductor.org/packages/iSEE/
[bioc-SingleCellExperiment]: https://bioconductor.org/packages/SingleCellExperiment/
[bioc-SummarizedExperiment]: https://bioconductor.org/packages/SummarizedExperiment/