Skip to content

Commit d57f065

Browse files
committed
update tutorial
1 parent 87c487e commit d57f065

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+1541
-212
lines changed

docs/global_DIA_peptide_tutorial.html

Lines changed: 525 additions & 0 deletions
Large diffs are not rendered by default.

docs/global_DIA_prot_tutorial.html

Lines changed: 25 additions & 14 deletions
Large diffs are not rendered by default.

docs/global_LFQ_peptide_tutorial.html

Lines changed: 539 additions & 0 deletions
Large diffs are not rendered by default.

docs/global_LFQ_prot_tutorial.html

Lines changed: 21 additions & 14 deletions
Large diffs are not rendered by default.

docs/global_TMT_prot_tutorial.html

Lines changed: 84 additions & 44 deletions
Large diffs are not rendered by default.

docs/phospho_TMT_tutorial.html

Lines changed: 12 additions & 9 deletions
Large diffs are not rendered by default.

vignettes/global_DIA_prot_tutorial.Rmd

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ ccrcc <- make_se_from_files("/Users/hsiaoyi/Documents/workspace/FragPipeR_manusc
2020
type = "DIA")
2121
```
2222

23+
``` {r include=T, warning=F}
24+
print(head(rownames(ccrcc)))
25+
```
26+
2327
``` {r include=T, warning=F}
2428
plot_pca(ccrcc)
2529
```
@@ -37,7 +41,11 @@ plot_feature_numbers(ccrcc)
3741
```
3842

3943
```{r include=T, warning=F}
40-
plot_feature(ccrcc, c("CA9", "AHNAK2", "NDUFV2", "PIGR"))
44+
plot_feature(ccrcc, c("Q16790", # CA9
45+
"Q8IVF2", # AHNAK2
46+
"P19404", # NDUFV2
47+
"P01833" # PIGR
48+
))
4149
```
4250

4351
## Imputation
@@ -51,7 +59,11 @@ plot_pca(imputed)
5159
```
5260

5361
```{r include=T, warning=F}
54-
plot_feature(imputed, c("CA9", "AHNAK2", "NDUFV2", "PIGR"))
62+
plot_feature(imputed, c("Q16790", # CA9
63+
"Q8IVF2", # AHNAK2
64+
"P19404", # NDUFV2
65+
"P01833" # PIGR
66+
))
5567
```
5668

5769
## DE result without imputation
@@ -68,7 +80,7 @@ de_result_updated <- add_rejections(de_result)
6880
plot_volcano(de_result_updated, "Tumor_vs_NAT")
6981
```
7082

71-
One of the differences between this two sets of differential expression analysis is CA9 (Carbonic anhydrase 9) which is a [known marker of clear cell renal cell carcinoma](https://doi.org/10.1016/j.ejca.2010.07.020).
83+
One of the differences between differential expression analysis results from unimputed and imputed data is CA9 (Carbonic anhydrase 9, Q16790) which is a [known marker of clear cell renal cell carcinoma](https://doi.org/10.1016/j.ejca.2010.07.020). Its expression is missing in the normal data, which leads its absence of unimputed data.
7284

7385
``` {r include=T, warning=F}
7486
sessionInfo()

vignettes/global_DIA_prot_tutorial.md

Lines changed: 50 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,39 @@ FragPipeAnalystR is a R package intended for downstream analysis of data generat
1414
As described in the manuscript, DIA ccRCC data were fetched from [Clark et al. (2019)](https://doi.org/10.1016/j.cell.2019.10.007) and processed via [FragPipe](https://fragpipe.nesvilab.org/). As you will see in the following sections. The result is quite similar to corresponding TMT data.
1515

1616

17-
```r
17+
``` r
1818
library(FragPipeAnalystR)
1919
ccrcc <- make_se_from_files("/Users/hsiaoyi/Documents/workspace/FragPipeR_manuscript/data/DIA_4plex/diann-output.pg_matrix.tsv",
2020
"/Users/hsiaoyi/Documents/workspace/FragPipeR_manuscript/data/DIA_4plex/experiment_annotation_clean.tsv",
2121
type = "DIA")
2222
```
2323

2424

25-
```r
25+
``` r
26+
print(head(rownames(ccrcc)))
27+
```
28+
29+
```
30+
## [1] "A0A024RBG1" "A0A075B6H7" "A0A075B6H9" "A0A075B6I0" "A0A075B6I4"
31+
## [6] "A0A075B6I9"
32+
```
33+
34+
35+
``` r
2636
plot_pca(ccrcc)
2737
```
2838

29-
![](global_DIA_prot_tutorial_files/figure-html/unnamed-chunk-2-1.png)<!-- -->
39+
![](global_DIA_prot_tutorial_files/figure-html/unnamed-chunk-3-1.png)<!-- -->
3040

3141

32-
```r
42+
``` r
3343
plot_correlation_heatmap(ccrcc)
3444
```
3545

36-
![](global_DIA_prot_tutorial_files/figure-html/unnamed-chunk-3-1.png)<!-- -->
46+
![](global_DIA_prot_tutorial_files/figure-html/unnamed-chunk-4-1.png)<!-- -->
3747

3848

39-
```r
49+
``` r
4050
plot_missval_heatmap(ccrcc)
4151
```
4252

@@ -54,81 +64,89 @@ plot_missval_heatmap(ccrcc)
5464
## Set `ht_opt$message = FALSE` to turn off this message.
5565
```
5666

57-
![](global_DIA_prot_tutorial_files/figure-html/unnamed-chunk-4-1.png)<!-- -->
67+
![](global_DIA_prot_tutorial_files/figure-html/unnamed-chunk-5-1.png)<!-- -->
5868

5969

60-
```r
70+
``` r
6171
plot_feature_numbers(ccrcc)
6272
```
6373

64-
![](global_DIA_prot_tutorial_files/figure-html/unnamed-chunk-5-1.png)<!-- -->
74+
![](global_DIA_prot_tutorial_files/figure-html/unnamed-chunk-6-1.png)<!-- -->
6575

6676

67-
```r
68-
plot_feature(ccrcc, c("CA9", "AHNAK2", "NDUFV2", "PIGR"))
77+
``` r
78+
plot_feature(ccrcc, c("Q16790", # CA9
79+
"Q8IVF2", # AHNAK2
80+
"P19404", # NDUFV2
81+
"P01833" # PIGR
82+
))
6983
```
7084

71-
![](global_DIA_prot_tutorial_files/figure-html/unnamed-chunk-6-1.png)<!-- -->
85+
![](global_DIA_prot_tutorial_files/figure-html/unnamed-chunk-7-1.png)<!-- -->
7286

7387
## Imputation
7488

7589

76-
```r
90+
``` r
7791
imputed <- manual_impute(ccrcc)
7892
```
7993

8094

81-
```r
95+
``` r
8296
plot_pca(imputed)
8397
```
8498

85-
![](global_DIA_prot_tutorial_files/figure-html/unnamed-chunk-8-1.png)<!-- -->
99+
![](global_DIA_prot_tutorial_files/figure-html/unnamed-chunk-9-1.png)<!-- -->
86100

87101

88-
```r
89-
plot_feature(imputed, c("CA9", "AHNAK2", "NDUFV2", "PIGR"))
102+
``` r
103+
plot_feature(imputed, c("Q16790", # CA9
104+
"Q8IVF2", # AHNAK2
105+
"P19404", # NDUFV2
106+
"P01833" # PIGR
107+
))
90108
```
91109

92-
![](global_DIA_prot_tutorial_files/figure-html/unnamed-chunk-9-1.png)<!-- -->
110+
![](global_DIA_prot_tutorial_files/figure-html/unnamed-chunk-10-1.png)<!-- -->
93111

94112
## DE result without imputation
95113

96-
```r
114+
``` r
97115
de_result <- test_limma(ccrcc, type = "all")
98116
```
99117

100118
```
101119
## Tested contrasts: Tumor_vs_NAT
102120
```
103121

104-
```r
122+
``` r
105123
de_result_updated <- add_rejections(de_result)
106124
plot_volcano(de_result_updated, "Tumor_vs_NAT")
107125
```
108126

109-
![](global_DIA_prot_tutorial_files/figure-html/unnamed-chunk-10-1.png)<!-- -->
127+
![](global_DIA_prot_tutorial_files/figure-html/unnamed-chunk-11-1.png)<!-- -->
110128

111129
## DE result with imputation
112130

113-
```r
131+
``` r
114132
de_result <- test_limma(imputed, type = "all")
115133
```
116134

117135
```
118136
## Tested contrasts: Tumor_vs_NAT
119137
```
120138

121-
```r
139+
``` r
122140
de_result_updated <- add_rejections(de_result)
123141
plot_volcano(de_result_updated, "Tumor_vs_NAT")
124142
```
125143

126-
![](global_DIA_prot_tutorial_files/figure-html/unnamed-chunk-11-1.png)<!-- -->
144+
![](global_DIA_prot_tutorial_files/figure-html/unnamed-chunk-12-1.png)<!-- -->
127145

128146
One of the differences between this two sets of differential expression analysis is CA9 (Carbonic anhydrase 9) which is a [known marker of clear cell renal cell carcinoma](https://doi.org/10.1016/j.ejca.2010.07.020).
129147

130148

131-
```r
149+
``` r
132150
sessionInfo()
133151
```
134152

@@ -161,18 +179,18 @@ sessionInfo()
161179
## [9] png_0.1-8 vctrs_0.6.5
162180
## [11] stringr_1.5.1 ProtGenerics_1.34.0
163181
## [13] pkgconfig_2.0.3 shape_1.4.6.1
164-
## [15] crayon_1.5.2 fastmap_1.1.1
182+
## [15] crayon_1.5.2 fastmap_1.2.0
165183
## [17] XVector_0.42.0 labeling_0.4.3
166-
## [19] utf8_1.2.4 rmarkdown_2.26
184+
## [19] utf8_1.2.4 rmarkdown_2.27
167185
## [21] tzdb_0.4.0 preprocessCore_1.64.0
168-
## [23] purrr_1.0.2 xfun_0.43
169-
## [25] zlibbioc_1.48.2 cachem_1.0.8
186+
## [23] purrr_1.0.2 xfun_0.44
187+
## [25] zlibbioc_1.48.2 cachem_1.1.0
170188
## [27] SNFtool_2.3.1 GenomeInfoDb_1.38.8
171189
## [29] jsonlite_1.8.8 ExPosition_2.8.23
172190
## [31] highr_0.10 DelayedArray_0.28.0
173191
## [33] BiocParallel_1.36.0 parallel_4.3.1
174192
## [35] cluster_2.1.4 R6_2.5.1
175-
## [37] stringi_1.8.3 bslib_0.7.0
193+
## [37] stringi_1.8.4 bslib_0.7.0
176194
## [39] RColorBrewer_1.1-3 limma_3.58.1
177195
## [41] GenomicRanges_1.54.1 jquerylib_0.1.4
178196
## [43] assertthat_0.2.1 Rcpp_1.0.12
@@ -188,7 +206,7 @@ sessionInfo()
188206
## [63] Biobase_2.62.0 evaluate_0.23
189207
## [65] ConsensusClusterPlus_1.66.0 circlize_0.4.16
190208
## [67] pillar_1.9.0 affyio_1.72.0
191-
## [69] BiocManager_1.30.22 MatrixGenerics_1.14.0
209+
## [69] BiocManager_1.30.23 MatrixGenerics_1.14.0
192210
## [71] renv_0.17.0 foreach_1.5.2
193211
## [73] stats4_4.3.1 plotly_4.10.4
194212
## [75] MSnbase_2.28.1 MALDIquant_1.22.2
@@ -211,7 +229,7 @@ sessionInfo()
211229
## [109] pcaMethods_1.94.0 gtable_0.3.5
212230
## [111] sass_0.4.9 digest_0.6.35
213231
## [113] BiocGenerics_0.48.1 ggrepel_0.9.5
214-
## [115] SparseArray_1.2.4 farver_2.1.1
232+
## [115] SparseArray_1.2.4 farver_2.1.2
215233
## [117] htmlwidgets_1.6.4 rjson_0.2.21
216234
## [119] htmltools_0.5.8.1 lifecycle_1.0.4
217235
## [121] httr_1.4.7 alluvial_0.1-2
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

vignettes/global_LFQ_prot_tutorial.Rmd

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ se <- make_se_from_files("/Users/hsiaoyi/Documents/workspace/FragPipeR_manuscrip
1717
type = "LFQ", level = "protein")
1818
```
1919

20+
``` {r include=T, warning=F}
21+
print(head(rownames(se)))
22+
```
23+
2024
``` {r include=T, warning=F}
2125
plot_pca(se)
2226
```
@@ -55,9 +59,18 @@ plot_correlation_heatmap(imputed_se)
5559
```{r include=T, warning=F}
5660
de_result <- test_limma(imputed_se, type = "all")
5761
de_result_updated <- add_rejections(de_result)
62+
```
63+
64+
``` {r include=T, warning=F}
5865
plot_volcano(de_result_updated, "CCND1_vs_CONTROL")
5966
```
6067

68+
The volcano could be labelled in a different way via `name_col` argument of the function:
69+
70+
``` {r include=T, warning=F}
71+
plot_volcano(de_result_updated, "CCND1_vs_CONTROL", name_col="Gene")
72+
```
73+
6174
``` {r include=T, warning=F}
6275
sessionInfo()
6376
```

0 commit comments

Comments
 (0)