Last updated: 2020-10-20

Checks: 5 2

Knit directory: Proteomics/analysis/

This reproducible R Markdown analysis was created with workflowr (version 1.6.2). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


The R Markdown is untracked by Git. To know which version of the R Markdown file created these results, you'll want to first commit it to the Git repo. If you're still working on the analysis, you can ignore this warning. When you're finished, you can run wflow_publish to commit the R Markdown file and build the HTML.

Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it's best to always run the code in an empty environment.

The command set.seed(20200227) was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.

Great job! Recording the operating system, R version, and package versions is critical for reproducibility.

The following chunks had caches available:
  • unnamed-chunk-12
  • unnamed-chunk-22
  • unnamed-chunk-33
  • unnamed-chunk-6
  • unnamed-chunk-7

To ensure reproducibility of the results, delete the cache directory manuscript_S4_IGHV_cache and re-run the analysis. To have workflowr automatically delete the cache directory prior to building the file, set delete_cache = TRUE when running wflow_build() or wflow_publish().

Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.

The results in this page were generated with repository version 3fb50c5. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .DS_Store
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/
    Ignored:    analysis/.DS_Store
    Ignored:    analysis/.Rhistory
    Ignored:    analysis/correlateCLLPD_cache/
    Ignored:    analysis/lassoForSTAT2_cache/
    Ignored:    analysis/manuscript_S1_Overview_cache/
    Ignored:    analysis/manuscript_S2_genomicAssociation_oldTimsTOF_cache/
    Ignored:    analysis/manuscript_S3_trisomy12_cache/
    Ignored:    analysis/manuscript_S4_IGHV_cache/
    Ignored:    analysis/manuscript_S4_IGHV_oldTimsTOF_cache/
    Ignored:    analysis/manuscript_S5_trisomy19_cache/
    Ignored:    analysis/manuscript_S6_del11q_cache/
    Ignored:    analysis/manuscript_S6_del11q_oldTimsTOF_cache/
    Ignored:    analysis/manuscript_S7_SF3B1_cache/
    Ignored:    analysis/manuscript_S8_drugResponse_Outcomes_cache/
    Ignored:    analysis/manuscript_S9_STAT2_cache/
    Ignored:    code/.Rhistory
    Ignored:    data/.DS_Store
    Ignored:    output/.DS_Store

Untracked files:
    Untracked:  analysis/.trisomy12_norm.pdf
    Untracked:  analysis/CNVanalysis_11q.Rmd
    Untracked:  analysis/CNVanalysis_trisomy12.Rmd
    Untracked:  analysis/CNVanalysis_trisomy19.Rmd
    Untracked:  analysis/STAT2_cytokines.Rmd
    Untracked:  analysis/SUGP1_splicing.svg.xml
    Untracked:  analysis/analysisDrugResponses.Rmd
    Untracked:  analysis/analysisDrugResponses_IC50.Rmd
    Untracked:  analysis/analysisPCA.Rmd
    Untracked:  analysis/analysisPreliminary_LUMOS.Rmd
    Untracked:  analysis/analysisPreliminary_timsTOF_Hela.Rmd
    Untracked:  analysis/analysisPreliminary_timsTOF_new.Rmd
    Untracked:  analysis/analysisSplicing.Rmd
    Untracked:  analysis/analysisTrisomy19.Rmd
    Untracked:  analysis/annotateCNV.Rmd
    Untracked:  analysis/comparePlatforms_LUMOS_helaTimsTOF.Rmd
    Untracked:  analysis/comparePlatforms_LUMOS_newTimsTOF.Rmd
    Untracked:  analysis/comparePlatforms_newTimsTOF_helaTimsTOF.Rmd
    Untracked:  analysis/complexAnalysis_IGHV.Rmd
    Untracked:  analysis/complexAnalysis_IGHV_alternative.Rmd
    Untracked:  analysis/complexAnalysis_overall.Rmd
    Untracked:  analysis/complexAnalysis_trisomy12.Rmd
    Untracked:  analysis/complexAnalysis_trisomy12_alternative.Rmd
    Untracked:  analysis/correlateGenomic_PC12adjusted.Rmd
    Untracked:  analysis/correlateGenomic_noBlock.Rmd
    Untracked:  analysis/correlateGenomic_noBlock_MCLL.Rmd
    Untracked:  analysis/correlateGenomic_noBlock_UCLL.Rmd
    Untracked:  analysis/correlateGenomic_timsTOFnew.Rmd
    Untracked:  analysis/correlateGenomic_timsTOFnewHela.Rmd
    Untracked:  analysis/correlateRNAexpression.Rmd
    Untracked:  analysis/default.css
    Untracked:  analysis/del11q.pdf
    Untracked:  analysis/del11q_norm.pdf
    Untracked:  analysis/full_diff_list.csv
    Untracked:  analysis/lassoForSTAT2.Rmd
    Untracked:  analysis/manuscript_S0_PrepareData.Rmd
    Untracked:  analysis/manuscript_S1_Overview.Rmd
    Untracked:  analysis/manuscript_S2_genomicAssociation.Rmd
    Untracked:  analysis/manuscript_S2_genomicAssociation_oldTimsTOF.Rmd
    Untracked:  analysis/manuscript_S3_trisomy12.Rmd
    Untracked:  analysis/manuscript_S4_IGHV.Rmd
    Untracked:  analysis/manuscript_S4_IGHV_oldTimsTOF.Rmd
    Untracked:  analysis/manuscript_S5_trisomy19.Rmd
    Untracked:  analysis/manuscript_S6_del11q.Rmd
    Untracked:  analysis/manuscript_S6_del11q_oldTimsTOF.Rmd
    Untracked:  analysis/manuscript_S7_SF3B1.Rmd
    Untracked:  analysis/manuscript_S8_drugResponse_Outcomes.Rmd
    Untracked:  analysis/manuscript_S9_STAT2.Rmd
    Untracked:  analysis/peptideValidate.Rmd
    Untracked:  analysis/plotCNV_del11q.pdf
    Untracked:  analysis/plotExpressionCNV.Rmd
    Untracked:  analysis/processPeptides_LUMOS.Rmd
    Untracked:  analysis/processProteomics_timsTOF_Hela.Rmd
    Untracked:  analysis/processProteomics_timsTOF_new.Rmd
    Untracked:  analysis/protCLL.RData
    Untracked:  analysis/qualityControl_timsTOF_Hela.Rmd
    Untracked:  analysis/qualityControl_timsTOF_new.Rmd
    Untracked:  analysis/style.css
    Untracked:  analysis/tableS1_DE_proteins_p0.01.xlsx
    Untracked:  analysis/test.pdf
    Untracked:  analysis/test.svg
    Untracked:  analysis/tri12Enrich.pdf
    Untracked:  analysis/trisomy12.pdf
    Untracked:  analysis/trisomy12_AFcor.Rmd
    Untracked:  analysis/trisomy12_norm.pdf
    Untracked:  code/AlteredPQR.R
    Untracked:  code/utils.R
    Untracked:  data/190909_CLL_prot_abund_med_norm.tsv
    Untracked:  data/190909_CLL_prot_abund_no_norm.tsv
    Untracked:  data/200725_cll_diaPASEF_direct_reports/
    Untracked:  data/200728_cll_diaPASEF_direct_plus_hela_reports/
    Untracked:  data/20190423_Proteom_submitted_samples_bereinigt.xlsx
    Untracked:  data/20191025_Proteom_submitted_samples_final.xlsx
    Untracked:  data/Chemokines.csv
    Untracked:  data/IFN_list.csv
    Untracked:  data/IFNreceptor.csv
    Untracked:  data/Interleukin_receptor.csv
    Untracked:  data/Interleukins.csv
    Untracked:  data/LUMOS/
    Untracked:  data/LUMOS_peptides/
    Untracked:  data/LUMOS_protAnnotation.csv
    Untracked:  data/LUMOS_protAnnotation_fix.csv
    Untracked:  data/SampleAnnotation_cleaned.xlsx
    Untracked:  data/chemoReceptor.csv
    Untracked:  data/example_proteomics_data
    Untracked:  data/facTab_IC50atLeast3New.RData
    Untracked:  data/gmts/
    Untracked:  data/mapEnsemble.txt
    Untracked:  data/mapSymbol.txt
    Untracked:  data/proteins_in_complexes
    Untracked:  data/pyprophet_export_aligned.csv
    Untracked:  data/timsTOF_protAnnotation.csv
    Untracked:  output/Fig1A.pdf
    Untracked:  output/Fig1A.png
    Untracked:  output/Fig1A.pptx
    Untracked:  output/LUMOS_processed.RData
    Untracked:  output/MSH6_splicing.svg
    Untracked:  output/SUGP1_splicing.eps
    Untracked:  output/SUGP1_splicing.pdf
    Untracked:  output/SUGP1_splicing.svg
    Untracked:  output/cnv_plots.zip
    Untracked:  output/cnv_plots/
    Untracked:  output/cnv_plots_norm.zip
    Untracked:  output/ddsrna_enc.RData
    Untracked:  output/deResList.RData
    Untracked:  output/deResList_timsTOF.RData
    Untracked:  output/deResList_timsTOF_old.RData
    Untracked:  output/dxdCLL.RData
    Untracked:  output/dxdCLL2.RData
    Untracked:  output/encMap.RData
    Untracked:  output/exprCNV.RData
    Untracked:  output/exprCNV_enc.RData
    Untracked:  output/lassoResults_CPS.RData
    Untracked:  output/lassoResults_IC50.RData
    Untracked:  output/patMeta_enc.RData
    Untracked:  output/pepCLL_lumos.RData
    Untracked:  output/pepCLL_lumos_enc.RData
    Untracked:  output/pepTab_lumos.RData
    Untracked:  output/pheno1000_enc.RData
    Untracked:  output/pheno1000_main.RData
    Untracked:  output/plotCNV_allChr11_diff.pdf
    Untracked:  output/plotCNV_del11q_sum.pdf
    Untracked:  output/proteomic_LUMOS_20200227.RData
    Untracked:  output/proteomic_LUMOS_20200320.RData
    Untracked:  output/proteomic_LUMOS_20200430.RData
    Untracked:  output/proteomic_LUMOS_enc.RData
    Untracked:  output/proteomic_timsTOF_20200227.RData
    Untracked:  output/proteomic_timsTOF_Hela_20200806.RData
    Untracked:  output/proteomic_timsTOF_enc.RData
    Untracked:  output/proteomic_timsTOF_new_20200806.RData
    Untracked:  output/proteomic_timsTOF_old_enc.RData
    Untracked:  output/splicingResults.RData
    Untracked:  output/survival_enc.RData
    Untracked:  output/timsTOF_processed.RData
    Untracked:  plotCNV_del11q_diff.pdf
    Untracked:  summary/
    Untracked:  supp_latex/

Unstaged changes:
    Modified:   analysis/_site.yml
    Modified:   analysis/analysisSF3B1.Rmd
    Modified:   analysis/compareProteomicsRNAseq.Rmd
    Modified:   analysis/correlateCLLPD.Rmd
    Modified:   analysis/correlateGenomic.Rmd
    Deleted:    analysis/correlateGenomic_removePC.Rmd
    Modified:   analysis/correlateMIR.Rmd
    Modified:   analysis/correlateMethylationCluster.Rmd
    Modified:   analysis/index.Rmd
    Modified:   analysis/predictOutcome.Rmd
    Modified:   analysis/processProteomics_LUMOS.Rmd
    Modified:   analysis/qualityControl_LUMOS.Rmd

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


There are no past versions. Publish this analysis with wflow_publish() to start tracking its development.


Overview of differentially expressed proteins

A table of associations with 10% FDR

resList <- filter(resList, Gene == "IGHV.status") %>%
  mutate(adj.P.Val = adj.P.IHW) %>% #use IHW corrected P-value
  mutate(Chr = rowData(protCLL[id,])$chromosome_name)
resList %>% filter(adj.P.Val <= 0.1) %>% 
  select(name, Chr,logFC, P.Value, adj.P.Val) %>%
  mutate_if(is.numeric, formatC, digits=2) %>%
  DT::datatable()

Number of differentially expressed proteins

sumTab <- filter(resList, adj.P.Val < 0.1) %>% 
  mutate(dir = ifelse(t>0, "up","down"))
table(sumTab$dir)

down   up 
 280  232 

Heatmap of differentially expressed proteins (1% FDR)

proList <- filter(resList, !is.na(name), adj.P.Val < 0.01) %>% distinct(name, .keep_all = TRUE) %>% pull(id)
plotMat <- assays(protCLL)[["QRILC"]][proList,]
rownames(plotMat) <- rowData(protCLL[proList,])$hgnc_symbol

colAnno <- filter(patMeta, Patient.ID %in% colnames(protCLL)) %>%
  select(Patient.ID, trisomy12, IGHV.status) %>% 
  arrange(IGHV.status) %>%
  data.frame() %>% column_to_rownames("Patient.ID")
colAnno$trisomy12 <- ifelse(colAnno$trisomy12 %in% 1, "yes","no")

plotMat <- jyluMisc::mscale(plotMat, censor = 5)
plotMat <- plotMat[,rownames(colAnno)]
annoCol <- list(trisomy12 = c(yes = "black",no = "grey80"),
                IGHV.status = c(M = colList[4], U = colList[3]),
                onChr12 = c(yes = colList[1],no = "white"))

pheatmap::pheatmap(plotMat, annotation_col = colAnno, scale = "none", cluster_cols = FALSE,
                   clustering_method = "ward.D2",
                   color = colorRampPalette(c(colList[2],"white",colList[1]))(100),
                   breaks = seq(-5,5, length.out = 101), annotation_colors = annoCol, 
                   show_rownames = FALSE, show_colnames = FALSE,
                   treeheight_row = 0)

Volcano plot

plotTab <- resList 
nameList <- c("BANK1", "CASP3", "STAT2", "PNP")
ighvVolcano <- plotVolcano(plotTab, fdrCut =0.1, x_lab="log2FoldChange", posCol = colList[1], negCol = colList[2],
            plotTitle = "IGHV status (M-CLL versus U-CLL)", ifLabel = TRUE, labelList = nameList)
ighvVolcano

Boxplot plot of selected genes

protTab <- sumToTidy(protCLL, rowID = "uniprotID", colID = "patID")
plotTab <- protTab %>% filter(hgnc_symbol %in% nameList) %>%
  mutate(IGHV = patMeta[match(patID, patMeta$Patient.ID),]$IGHV.status) %>%
  mutate(status = ifelse(IGHV %in% "M","M-CLL","U-CLL"),
         name = hgnc_symbol) %>%
  mutate(status = factor(status, levels = c("U-CLL","M-CLL")))
pList <- plotBox(plotTab, pValTabel = resList, y_lab = "Protein expression")
protBox <- cowplot::plot_grid(plotlist= pList, ncol=2)
protBox

CD38 and ZAP70 for Supplementary figure

protTab <- sumToTidy(protCLL, rowID = "uniprotID", colID = "patID")
plotTab <- protTab %>% filter(hgnc_symbol %in% c("CD38","ZAP70")) %>%
  mutate(IGHV = patMeta[match(patID, patMeta$Patient.ID),]$IGHV.status) %>%
  mutate(status = ifelse(IGHV %in% "M","M-CLL","U-CLL"),
         name = hgnc_symbol) %>%
  mutate(status = factor(status, levels = c("U-CLL","M-CLL")))
pList <- plotBox(plotTab, pValTabel = resList, y_lab = "Protein expression")
protBoxSup <- cowplot::plot_grid(plotlist= pList, ncol=2)
protBoxSup

Enrichment analysis

Barplot of enriched pathways

gmts = list(H= "../data/gmts/h.all.v6.2.symbols.gmt",
            KEGG = "../data/gmts/c2.cp.kegg.v6.2.symbols.gmt")
inputTab <- resList %>% filter(adj.P.Val < 0.1, Gene == "IGHV.status") %>%
  mutate(name = rowData(protCLL[id,])$hgnc_symbol) %>% filter(!is.na(name)) %>%
  distinct(name, .keep_all = TRUE) %>%
  select(name, t) %>% data.frame() %>% column_to_rownames("name")
enRes <- list()
enRes[["Proteins associated with IGHV status"]] <- runGSEA(inputTab, gmts$H, "page")

ighvEnrich <- plotEnrichmentBar(enRes[[1]], pCut =0.15, ifFDR= TRUE, setName = "HALLMARK gene set", 
                       title = names(enRes)[1], removePrefix = "HALLMARK_", insideLegend=TRUE) +
  theme(legend.position = c(0.9,0.11))
ighvEnrich

Heatmaps of protein expression in enriched pathways

resList.sig <- filter(resList, !is.na(name), adj.P.Val < 0.1) %>% distinct(name, .keep_all = TRUE) 
plotMat <- assays(protCLL)[["QRILC"]][resList.sig$id,]
rownames(plotMat) <- rowData(protCLL[rownames(plotMat),])$hgnc_symbol
colAnno <- filter(patMeta, Patient.ID %in% colnames(protCLL)) %>%
  select(Patient.ID, IGHV.status) %>%
  data.frame() %>% column_to_rownames("Patient.ID")
#colAnno$IGHV.status <- ifelse(colAnno$trisomy12 %in% 1, "yes","no")

plotMat <- jyluMisc::mscale(plotMat, censor = 5)

annoCol <- list(trisomy12 = c(yes = "black",no = "grey80"),
                IGHV.status = c(M = colList[4], U = colList[3]),
                onChr12 = c(yes = colList[1],no = "white"))
plotSetHeatmap(resList.sig, gmts$H, "HALLMARK_INTERFERON_GAMMA_RESPONSE", plotMat, colAnno, annoCol = annoCol, highLight = nameList)

plotSetHeatmap(resList.sig, gmts$H, "HALLMARK_INTERFERON_ALPHA_RESPONSE", plotMat, colAnno, annoCol = annoCol, highLight = nameList)

Compare with RNA sequencing data

Protein complex analysis

Preprocessing

Preprocessing protein and RNA data

#subset samples and genes
overSampe <- intersect(colnames(ddsCLL), colnames(protCLL))
overGene <- intersect(rownames(ddsCLL), rowData(protCLL)$ensembl_gene_id)
ddsSub <- ddsCLL[overGene, overSampe]
protSub <- protCLL[match(overGene, rowData(protCLL)$ensembl_gene_id),overSampe]
rowData(ddsSub)$uniprotID <- rownames(protSub)[match(rownames(ddsSub),rowData(protSub)$ensembl_gene_id)]

#vst
ddsSub.vst <- varianceStabilizingTransformation(ddsSub)

Processing protein complex data

int_pairs <- read_delim("../data/proteins_in_complexes", delim = "\t") %>%
  mutate(Reactome = grepl("Reactome",Evidence_supporting_the_interaction),
         Corum = grepl("Corum",Evidence_supporting_the_interaction)) %>%
  filter(ProtA %in% rownames(protSub) & ProtB %in% rownames(protSub)) %>%
  mutate(pair=map2_chr(ProtA, ProtB, ~paste0(sort(c(.x,.y)), collapse = "-"))) %>%
  mutate(database = case_when(
    Reactome & Corum ~ "both",
    Reactome & !Corum ~ "Reactome",
    !Reactome & Corum ~ "Corum",
    TRUE ~ "other"
  )) %>% mutate(inComplex = "yes")

Construct protein-protein interaction network by "cause" proteins and "effect" proteins

fdrCut <- 0.1
resTab <- select(allRes, name, uniprotID, chrom, padj, padj.rna, logFC, log2FC.rna) %>%
  mutate(sigProt = padj <= fdrCut,
         sigRna = padj.rna <=fdrCut,
         upProt = logFC > 0,
         upRna = log2FC.rna >0)
comTab <- int_pairs %>% select(ProtA, ProtB, database) %>%
  left_join(resTab, by = c(ProtA = "uniprotID")) %>%
  left_join(resTab, by = c(ProtB = "uniprotID"))

comTab.filter <- comTab %>%
  filter(sigProt.x, sigProt.y, logFC.x*logFC.y >0) %>%
  mutate(direct = ifelse(logFC.x >0, "stabilizing", "destabilizing")) %>%
  mutate(source = case_when(
    sigProt.x & sigRna.x & sigProt.y & !sigRna.y ~ name.x,
    sigProt.y & sigRna.y & sigProt.x & !sigRna.x ~ name.y)) %>%
  filter(!is.na(source)) %>%
  mutate(target = ifelse(name.x == source, name.y, name.x)) %>%
  select(source, target, direct)
#get node list
allNodes <- union(comTab.filter$source, comTab.filter$target) 

nodeList <- data.frame(id = seq(length(allNodes))-1, name = allNodes, stringsAsFactors = FALSE) %>%
  mutate(causal = ifelse(name %in% comTab.filter$source, "cause", "effect"))

#get edge list
edgeList <- select(comTab.filter, source, target, direct) %>%
  dplyr::rename(Source = source, Target = target) %>% 
  mutate(Source = nodeList[match(Source,nodeList$name),]$id,
         Target = nodeList[match(Target, nodeList$name),]$id) %>%
  data.frame(stringsAsFactors = FALSE)

net <- graph_from_data_frame(vertices = nodeList, d=edgeList, directed = FALSE)
tidyNet <- as_tbl_graph(net)
complexNet <- ggraph(tidyNet, layout = "igraph", algorithm = "nicely") + 
  geom_edge_link(aes(linetype = direct),color = colList[3], width=1) + 
  geom_node_point(aes(color =causal, shape = causal), size=6) + 
  geom_node_text(aes(label = name), repel = TRUE, size=6) +
  scale_color_manual(values = c(cause = colList[1],effect = colList[2])) +
  scale_linetype_manual(values = c(stabilizing = "solid", destabilizing = "dashed"))+
  scale_edge_color_brewer(palette = "Set2") +
  theme_graph(base_family = "sans") + theme(legend.position = "none")  
complexNet

Proteins associated with methylation clusters

Identify proteins associated with methylation clusters

Process proteomics data

protMat <- assays(protCLL)[["count"]] #without imputation

Get methylation cluster information

designMat <- data.frame(row.names = colnames(protMat),
                        Mclust = factor(patMeta[match(colnames(protMat),patMeta$Patient.ID),]$Methylation_Cluster,
                                        levels = c("LP","IP","HP")))
designMat <- designMat[!is.na(designMat$Mclust),,drop=FALSE]
protMat <- protMat[,rownames(designMat)]

How many sample have methylation cluster information

nrow(designMat)
[1] 44

Numbers of samples in each cluster

table(designMat$Mclust)

LP IP HP 
21  8 15 

Fit the probailistic dropout model

fit <- proDA(protMat, design = designMat$Mclust)

Proteins differentially expressed between HP and LP group

resTab <- test_diff(fit, HP - LP) %>%
  dplyr::rename(id = name, logFC = diff, t=t_statistic,
                  P.Value = pval, adj.P.Val = adj_pval) %>% 
    mutate(name = rowData(protCLL[id,])$hgnc_symbol) %>%
    select(name, id, logFC, t, P.Value, adj.P.Val) %>%  
    arrange(P.Value) %>% 
    as_tibble()

Compare with proteins associated with IGHV status

comList <- list()
comList[["M-CLL_up"]] <- filter(resList, Gene == "IGHV.status", logFC>0,adj.P.Val < 0.1)$name
comList[["M-CLL_down"]] <- filter(resList, Gene == "IGHV.status", logFC<0,adj.P.Val < 0.1)$name
comList[["HP-CLL_up"]] <- filter(resTab,logFC > 0,adj.P.Val < 0.1)$name
comList[["HP-CLL_down"]] <- filter(resTab,logFC < 0,adj.P.Val < 0.1)$name

UpSetR::upset(UpSetR::fromList(comList), main.bar.color = colList[2], sets.bar.color = colList[4])

Boxplots of example proteins

protTab <- sumToTidy(protCLL, rowID = "uniprotID", colID = "patID")
plotTab <- protTab %>% filter(hgnc_symbol %in% nameList) %>%
  mutate(status = patMeta[match(patID, patMeta$Patient.ID),]$Methylation_Cluster,
         name = hgnc_symbol) %>%
  mutate(status = factor(status, levels = c("LP","IP","HP")))
pList <- plotBox(plotTab, pValTabel = resTab, y_lab = "Protein expression")
cowplot::plot_grid(plotlist= pList, ncol=2)

IP-specific proteins

resTab <- test_diff(fit, IP - (HP + LP)/2) %>%
  dplyr::rename(id = name, logFC = diff, t=t_statistic,
                  P.Value = pval, adj.P.Val = adj_pval) %>% 
    mutate(name = rowData(protCLL[id,])$hgnc_symbol) %>%
    select(name, id, logFC, t, P.Value, adj.P.Val) %>%  
    arrange(P.Value) %>% 
    as_tibble()
resTab.sig <- filter(resTab,adj.P.Val < 0.1)

How many cases show IP specific changes at 10% FDR?

nrow(resTab.sig)
[1] 6

Boxplots of IP-specific proteins

seleProts <- c("FLOT1", "DLST")
protTab <- sumToTidy(protCLL, rowID = "uniprotID", colID = "patID")
plotTab <- protTab %>% filter(hgnc_symbol %in% seleProts) %>%
  mutate(status = patMeta[match(patID, patMeta$Patient.ID),]$Methylation_Cluster,
         name = hgnc_symbol) %>%
  mutate(status = factor(status, levels = c("LP","IP","HP")))
pList <- plotBox(plotTab, pValTabel = resTab, y_lab = "Protein expression")
methBox <- cowplot::plot_grid(plotlist= pList, ncol=2)
methBox

Validation on peptide level

load("../output/pepCLL_lumos_enc.RData")
stratifier <- "IGHV.status"
plotList <- lapply(nameList, function(n) {
 mutStatus <- as.character(patMeta[match(colnames(pepCLL), patMeta$Patient.ID),][[stratifier]])
 names(mutStatus) <- colnames(pepCLL)
 plotPep(pepCLL, n, type = "count", stratifier = stratifier, mutStatus = mutStatus)
})
cowplot::plot_grid(plotlist = plotList, ncol=1)

Validation using timsTOF data

IGHV status

Load timsTOF data

load("../output/proteomic_timsTOF_enc.RData")
load("../output/deResList_timsTOF.RData")
resList <- filter(resList, Gene == "IGHV.status") %>%
  mutate(adj.P.Val = adj.P.IHW) %>% #use IHW corrected P-value
  mutate(Chr = rowData(protCLL[id,])$chromosome_name)
protTab <- sumToTidy(protCLL, rowID = "uniprotID", colID = "patID")
plotTab <- protTab %>% filter(hgnc_symbol %in% nameList) %>%
  mutate(IGHV = patMeta[match(patID, patMeta$Patient.ID),]$IGHV.status) %>%
  mutate(status = ifelse(IGHV %in% "M","M-CLL","U-CLL"),
         name = hgnc_symbol) %>%
  mutate(status = factor(status, levels = c("U-CLL","M-CLL")))
pList <- plotBox(plotTab, pValTabel = resList)
cowplot::plot_grid(plotlist= pList, ncol=2)

Methylation cluster

Process proteomics data

protMat <- assays(protCLL)[["count"]] #without imputation

Get methylation cluster information

designMat <- data.frame(row.names = colnames(protMat),
                        Mclust = factor(patMeta[match(colnames(protMat),patMeta$Patient.ID),]$Methylation_Cluster,
                                        levels = c("LP","IP","HP")))
designMat <- designMat[!is.na(designMat$Mclust),,drop=FALSE]
protMat <- protMat[,rownames(designMat)]

Fit the probailistic dropout model

fit <- proDA(protMat, design = designMat$Mclust)

Proteins differentially expressed between HP and LP group

resTab <- test_diff(fit, HP - LP) %>%
  dplyr::rename(id = name, logFC = diff, t=t_statistic,
                  P.Value = pval, adj.P.Val = adj_pval) %>% 
    mutate(name = rowData(protCLL[id,])$hgnc_symbol) %>%
    select(name, id, logFC, t, P.Value, adj.P.Val) %>%  
    arrange(P.Value) %>% 
    as_tibble()

Boxplots of example proteins

protTab <- sumToTidy(protCLL, rowID = "uniprotID", colID = "patID")
plotTab <- protTab %>% filter(hgnc_symbol %in% nameList) %>%
  mutate(status = patMeta[match(patID, patMeta$Patient.ID),]$Methylation_Cluster,
         name = hgnc_symbol) %>%
  mutate(status = factor(status, levels = c("LP","IP","HP")))
pList <- plotBox(plotTab, pValTabel = resTab, y_lab = "Protein expression")
cowplot::plot_grid(plotlist= pList, ncol=2)

IP-specific proteins

resTab <- test_diff(fit, IP - (HP + LP)/2) %>%
  dplyr::rename(id = name, logFC = diff, t=t_statistic,
                  P.Value = pval, adj.P.Val = adj_pval) %>% 
    mutate(name = rowData(protCLL[id,])$hgnc_symbol) %>%
    select(name, id, logFC, t, P.Value, adj.P.Val) %>%  
    arrange(P.Value) %>% 
    as_tibble()
resTab.sig <- filter(resTab,adj.P.Val < 0.1)

Boxplots of IP-specific proteins

seleProts <- c("FLOT1", "DLST")
protTab <- sumToTidy(protCLL, rowID = "uniprotID", colID = "patID")
plotTab <- protTab %>% filter(hgnc_symbol %in% seleProts) %>%
  mutate(status = patMeta[match(patID, patMeta$Patient.ID),]$Methylation_Cluster,
         name = hgnc_symbol) %>%
  mutate(status = factor(status, levels = c("LP","IP","HP")))
pList <- plotBox(plotTab, pValTabel = resTab, y_lab = "Protein expression")
methBox <- cowplot::plot_grid(plotlist= pList, ncol=2)
methBox

Assemble figures

Main figure 3

leftCol <- plot_grid(ighvVolcano, complexNet, ncol = 1, rel_heights = c(0.45,0.55),
                     labels = c("A","D"), label_size = 20)
rightCol <- plot_grid(ighvEnrich, protBox, ncol = 1,
                      rel_heights = c(0.5,0.5),
                      labels = c("B","C"), label_size=20)
#pdf("test.pdf", height = 16, width = 20)
plot_grid(leftCol, rightCol, rel_widths = c(0.45,0.55))

#dev.off()
#ggsave("test.pdf", height = 16, width = 20)

sessionInfo()
R version 3.6.0 (2019-04-26)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS  10.15.6

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
 [1] grid      parallel  stats4    stats     graphics  grDevices utils    
 [8] datasets  methods   base     

other attached packages:
 [1] piano_2.2.0                 latex2exp_0.4.0            
 [3] forcats_0.5.0               stringr_1.4.0              
 [5] dplyr_1.0.0                 purrr_0.3.4                
 [7] readr_1.3.1                 tidyr_1.1.0                
 [9] tibble_3.0.3                tidyverse_1.3.0            
[11] ggbeeswarm_0.6.0            cowplot_1.0.0              
[13] ComplexHeatmap_2.2.0        pheatmap_1.0.12            
[15] ggraph_2.0.3                ggplot2_3.3.2              
[17] igraph_1.2.5                tidygraph_1.2.0            
[19] proDA_1.1.2                 DESeq2_1.26.0              
[21] SummarizedExperiment_1.16.1 DelayedArray_0.12.3        
[23] BiocParallel_1.20.1         matrixStats_0.56.0         
[25] Biobase_2.46.0              GenomicRanges_1.38.0       
[27] GenomeInfoDb_1.22.1         IRanges_2.20.2             
[29] S4Vectors_0.24.4            BiocGenerics_0.32.0        
[31] limma_3.42.2               

loaded via a namespace (and not attached):
  [1] shinydashboard_0.7.1   tidyselect_1.1.0       RSQLite_2.2.0         
  [4] AnnotationDbi_1.48.0   htmlwidgets_1.5.1      maxstat_0.7-25        
  [7] munsell_0.5.0          codetools_0.2-16       DT_0.14               
 [10] withr_2.2.0            colorspace_1.4-1       knitr_1.29            
 [13] rstudioapi_0.11        ggsignif_0.6.0         labeling_0.3          
 [16] git2r_0.27.1           slam_0.1-47            GenomeInfoDbData_1.2.2
 [19] KMsurv_0.1-5           polyclip_1.10-0        bit64_0.9-7           
 [22] farver_2.0.3           rprojroot_1.3-2        vctrs_0.3.1           
 [25] generics_0.0.2         TH.data_1.0-10         xfun_0.15             
 [28] sets_1.0-18            R6_2.4.1               clue_0.3-57           
 [31] graphlayouts_0.7.0     locfit_1.5-9.4         fgsea_1.12.0          
 [34] bitops_1.0-6           assertthat_0.2.1       promises_1.1.1        
 [37] scales_1.1.1           multcomp_1.4-13        nnet_7.3-14           
 [40] beeswarm_0.2.3         gtable_0.3.0           sandwich_2.5-1        
 [43] workflowr_1.6.2        rlang_0.4.7            genefilter_1.68.0     
 [46] GlobalOptions_0.1.2    splines_3.6.0          rstatix_0.6.0         
 [49] acepack_1.4.1          broom_0.7.0            checkmate_2.0.0       
 [52] yaml_2.2.1             abind_1.4-5            modelr_0.1.8          
 [55] crosstalk_1.1.0.1      backports_1.1.8        httpuv_1.5.4          
 [58] Hmisc_4.4-0            relations_0.6-9        tools_3.6.0           
 [61] ellipsis_0.3.1         gplots_3.0.4           RColorBrewer_1.1-2    
 [64] plyr_1.8.6             Rcpp_1.0.5             visNetwork_2.0.9      
 [67] base64enc_0.1-3        zlibbioc_1.32.0        RCurl_1.98-1.2        
 [70] ggpubr_0.4.0           rpart_4.1-15           GetoptLong_1.0.2      
 [73] viridis_0.5.1          zoo_1.8-8              haven_2.3.1           
 [76] ggrepel_0.8.2          cluster_2.1.0          exactRankTests_0.8-31 
 [79] fs_1.4.2               magrittr_1.5           data.table_1.12.8     
 [82] openxlsx_4.1.5         circlize_0.4.10        survminer_0.4.7       
 [85] reprex_0.3.0           mvtnorm_1.1-1          shinyjs_1.1           
 [88] hms_0.5.3              mime_0.9               evaluate_0.14         
 [91] xtable_1.8-4           XML_3.98-1.20          rio_0.5.16            
 [94] jpeg_0.1-8.1           readxl_1.3.1           gridExtra_2.3         
 [97] shape_1.4.4            compiler_3.6.0         KernSmooth_2.23-17    
[100] crayon_1.3.4           htmltools_0.5.0        mgcv_1.8-31           
[103] later_1.1.0.1          Formula_1.2-3          geneplotter_1.64.0    
[106] lubridate_1.7.9        DBI_1.1.0              tweenr_1.0.1          
[109] dbplyr_1.4.4           MASS_7.3-51.6          jyluMisc_0.1.5        
[112] Matrix_1.2-18          car_3.0-8              cli_2.0.2             
[115] marray_1.64.0          gdata_2.18.0           km.ci_0.5-2           
[118] pkgconfig_2.0.3        foreign_0.8-71         xml2_1.3.2            
[121] annotate_1.64.0        vipor_0.4.5            XVector_0.26.0        
[124] drc_3.0-1              rvest_0.3.5            digest_0.6.25         
[127] fastmatch_1.1-0        rmarkdown_2.3          cellranger_1.1.0      
[130] survMisc_0.5.5         htmlTable_2.0.1        curl_4.3              
[133] shiny_1.5.0            gtools_3.8.2           rjson_0.2.20          
[136] nlme_3.1-148           lifecycle_0.2.0        jsonlite_1.7.0        
[139] carData_3.0-4          viridisLite_0.3.0      fansi_0.4.1           
[142] pillar_1.4.6           lattice_0.20-41        fastmap_1.0.1         
[145] httr_1.4.1             plotrix_3.7-8          survival_3.2-3        
[148] glue_1.4.1             UpSetR_1.4.0           zip_2.0.4             
[151] png_0.1-7              bit_4.0.4              ggforce_0.3.2         
[154] stringi_1.4.6          blob_1.2.1             caTools_1.18.0        
[157] latticeExtra_0.6-29    memoise_1.1.0