knitr::opts_chunk$set(echo = TRUE)
The input file can be of many types as long as it can be converted to a data.frame
containing a number of columns with protein intensities and one column with protein identifiers. A protein identifier correspond to a unique entry in the UniProt database. Multiple protein identifiers can be associated with a single protein group.
Load an example dataset containing protein group intensities:
library(InteRact) data("proteinGroups_Cbl") names(proteinGroups_Cbl)[1:20]
Protein intensity column names start with "Intensity" :
idx_intensity_columns <- grep("^Intensity.", names(proteinGroups_Cbl)) print(names(proteinGroups_Cbl)[idx_intensity_columns][1:10])
Use the function identify_conditions()
to map conditions from intensity column names:
condition <- identify_conditions(proteinGroups_Cbl, Column_intensity_pattern = "^Intensity.", split = "_", bckg_pos = 1, time_pos = 2, bio_pos = 3, tech_pos = 4) print(condition)
preprocessed_data <- preprocess_data(proteinGroups_Cbl, Column_gene_name = "Gene.names", Column_score = "Score", Column_ID = "Protein.IDs", Column_Npep = NULL, Column_intensity_pattern = "^Intensity.", bait_gene_name = "Cbl", condition = condition, bckg_bait = "Cbl", bckg_ctrl = "WT" )
InteRact
Replace missing values with methode method
, compare protein intensities between bait and control backgrounds (bckg_bait
and bckg_ctrl
respectively) across experimental conditions:
res <- InteRact(preprocess_df = preprocessed_data, method = "none", pool_background = TRUE)
Identify prey proteins specifically enriched in the bait background :
res <- identify_interactors(res, p_val_thresh = 0.001, fold_change_thresh = 3, n_success_min = 2, consecutive_success = TRUE) names(res)
print(res$interactor)
Create a summary data.frame :
#Create a summary data frame sum_tbl <- summary_table(res) head(sum_tbl[, 1:10])
Generate volcano plots :
plot_volcanos(res, conditions = "030", p_val_thresh = 0.005, fold_change_thresh = 3)
Plot kinetics of recruitment:
plot_per_condition(res)
Compare protein intensities across condition for a given protein
plot_comparison(res, names = "Crkl")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.