| Title: | Analysis and Visualisation of Hydrogen/Deuterium Exchange Mass Spectrometry Data |
|---|---|
| Description: | Processing, analysis and visualization of Hydrogen Deuterium eXchange monitored by Mass Spectrometry experiments (HDX-MS). 'HaDeX2' introduces a new standardized and reproducible workflow for the analysis of the HDX-MS data, including uncertainty propagation, data aggregation and visualization on 3D structure. Additionally, it covers data exploration, quality control and generation of publication-quality figures. All functionalities are also available in the accompanying 'shiny' app. |
| Authors: | Weronika Puchala [cre, aut] (ORCID: <https://orcid.org/0000-0003-2163-1429>), Michal Burdukiewicz [aut] (ORCID: <https://orcid.org/0000-0001-8926-582X>), Dominik Rafacz [ctb], Krystyna Grzesiak [ctb] |
| Maintainer: | Weronika Puchala <[email protected]> |
| License: | GPL-3 |
| Version: | 1.0.0 |
| Built: | 2026-06-10 09:35:54 UTC |
| Source: | https://github.com/hadexversum/hadex2 |
The HaDeX2 package is a toolbox for the analysis of HDX-MS data.
Weronika Puchala, Michal Burdukiewicz.
Useful links:
Returns relation with confidence limits for each peptide.
add_stat_dependency( calc_dat, confidence_level = 0.98, theoretical = FALSE, fractional = TRUE )add_stat_dependency( calc_dat, confidence_level = 0.98, theoretical = FALSE, fractional = TRUE )
calc_dat |
data produced by |
confidence_level |
confidence limit - from range [0, 1]. |
theoretical |
|
fractional |
|
This function checks if the values are statistically significant based on provided criteria using Houde test.
calc_dat extended by column specifying if given peptide is relevant in given confidence limit. The value of the confidence limit is added as an attribute - as well as parameters used to calculate (theoretical/fractional).
calc_dat <- calculate_diff_uptake(alpha_dat) result <- add_stat_dependency(calc_dat) head(result)calc_dat <- calculate_diff_uptake(alpha_dat) result <- add_stat_dependency(calc_dat) head(result)
Originally published in: Bondarchuk, T. V., Shalak, V. F., Lozhko, D. M., Fatalska, A., Szczepanowski, R. H., Liudkovska, V., Tsuvariev, O. Y., Dadlez, M., El’skaya, A. V., & Negrutskii, B. S. (2022). Quaternary organization of the human eEF1B complex reveals unique multi-GEF domain assembly. Nucleic Acids Research, 50(16), 9490–9504. <doi:/10.1093/nar/gkac685>
Bondarchuk, T. V., Shalak, V. F., Lozhko, D. M., Fatalska, A., Szczepanowski, R. H., Liudkovska, V., Tsuvariev, O. Y., Dadlez, M., El’skaya, A. V., & Negrutskii, B. S.
Function aggregates the differential deuterium uptake values from
peptide level into single-amino resolution using 'weighted
approach' (defined in 'vignette("datafiles"))'. For
visualization use plot_aggregated_uptake
calculate_aggregated_diff_uptake(diff_uptake_dat, time_t)calculate_aggregated_diff_uptake(diff_uptake_dat, time_t)
diff_uptake_dat |
differential uptake data,
product of e.q. |
time_t |
chosen time point |
a data.frame object
diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) calculate_aggregated_diff_uptake(diff_uptake_dat, time_t = 5)diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) calculate_aggregated_diff_uptake(diff_uptake_dat, time_t = 5)
Function aggregates peptide-level information into residue level. Significance method indicates if the difference is significant or not - if the number of significant peptides over this residue is bigger than the number of insignificant.
calculate_aggregated_test_results( p_diff_uptake_conf_dat, method = c("significance", "weiss"), time_t = 1, skip_amino = 1 )calculate_aggregated_test_results( p_diff_uptake_conf_dat, method = c("significance", "weiss"), time_t = 1, skip_amino = 1 )
p_diff_uptake_conf_dat |
uptake data with confidence,
as produced by |
method |
method of aggregation: significance or weiss method |
time_t |
chosen time point |
skip_amino |
|
Only peptides without modification are aggregated.
a data.frame object
p_diff_uptake_dat <- create_p_diff_uptake_dataset(alpha_dat) p_diff_uptake_conf_dat <- create_p_diff_uptake_dataset_with_confidence(p_diff_uptake_dat) calculate_aggregated_test_results(p_diff_uptake_conf_dat, method = "significance") calculate_aggregated_test_results(p_diff_uptake_conf_dat, method = "weiss")p_diff_uptake_dat <- create_p_diff_uptake_dataset(alpha_dat) p_diff_uptake_conf_dat <- create_p_diff_uptake_dataset_with_confidence(p_diff_uptake_dat) calculate_aggregated_test_results(p_diff_uptake_conf_dat, method = "significance") calculate_aggregated_test_results(p_diff_uptake_conf_dat, method = "weiss")
Function aggregates the deuterium uptake values from
peptide level into single-amino resolution using 'weighted
approach' (defined in 'vignette("datafiles"))'. For
visualization use plot_aggregated_uptake
calculate_aggregated_uptake( kin_dat, state = unique(kin_dat[["State"]])[1], time_t )calculate_aggregated_uptake( kin_dat, state = unique(kin_dat[["State"]])[1], time_t )
kin_dat |
single state uptake data, product of e.q.
|
state |
state included in calculations |
time_t |
chosen time point |
a data.frame object
# disabled due to long execution time kin_dat <- create_uptake_dataset(alpha_dat, states = "Alpha_KSCN") head(create_aggregated_uptake_dataset(kin_dat))# disabled due to long execution time kin_dat <- create_uptake_dataset(alpha_dat, states = "Alpha_KSCN") head(create_aggregated_uptake_dataset(kin_dat))
Calculates area under the deuterium uptake curve
calculate_auc( uptake_dat, protein = uptake_dat[["Protein"]][1], state = uptake_dat[["State"]][1], preserve_values = FALSE )calculate_auc( uptake_dat, protein = uptake_dat[["Protein"]][1], state = uptake_dat[["State"]][1], preserve_values = FALSE )
uptake_dat |
data with deuterium uptake values,
calculated e.q. by |
protein |
chosen protein |
state |
state included in calculations |
preserve_values |
indicator if the original columns form uptake_dat should be preserve in the result |
The AUC is calculated on the data normalized to unit square by division by maximum values of exposure time and deuterium uptake, respectively.
a data.frame object
read_hdx
create_uptake_dataset
uptake_dat <- create_uptake_dataset(alpha_dat) head(calculate_auc(uptake_dat))uptake_dat <- create_uptake_dataset(alpha_dat) head(calculate_auc(uptake_dat))
Calculates back-exchange for a state
calculate_back_exchange( dat, protein = dat[["Protein"]][1], states = unique(dat[["State"]]), time_100 = max(dat[["Exposure"]]) )calculate_back_exchange( dat, protein = dat[["Protein"]][1], states = unique(dat[["State"]]), time_100 = max(dat[["Exposure"]]) )
dat |
data imported by the |
protein |
selected protein |
states |
selected biological states for given protein |
time_100 |
time point of measurement for fully deuterated sample |
Back-exchange is a reverse exchange phenomenon, important
to acknowledge when working with HDX data. This function calculates
back-exchange values for one biological state of the selected protein.
For visualization of back-exchange data use plot_coverage_heatmap
with displayed value specified as 'back-exchange'.
For the definition of back-exchange see the 'vignette("datafiles")'.
a data.frame object
read_hdx
plot_coverage_heatmap
head(calculate_back_exchange(alpha_dat))head(calculate_back_exchange(alpha_dat))
Calculates confidence limit values for prepared provided, based on chosen parameters.
calculate_confidence_limit_values( diff_uptake_dat, confidence_level = 0.98, theoretical = FALSE, fractional = TRUE, n_rep = NULL )calculate_confidence_limit_values( diff_uptake_dat, confidence_level = 0.98, theoretical = FALSE, fractional = TRUE, n_rep = NULL )
diff_uptake_dat |
differential data calculated using calculate_diff_uptake function |
confidence_level |
confidence level for the test, from range [0, 1] |
theoretical |
|
fractional |
|
n_rep |
number of replicates |
Function calculate_confidence_limit_values
calculates confidence limit using Houde test. The confidence limits
are calculated on whole provided dataset. If the user wishes to calculate
confidence limit for one, two or more time points, the provided data
should be adjusted accordingly.
range of confidence limit interval
Houde, D., Berkowitz, S.A., and Engen, J.R. (2011). The Utility of Hydrogen/Deuterium Exchange Mass Spectrometry in Biopharmaceutical Comparability Studies. J Pharm Sci 100, 2071–2086.
read_hdx
calculate_diff_uptake
create_diff_uptake_dataset
diff_uptake_dat <- calculate_diff_uptake(alpha_dat) calculate_confidence_limit_values(diff_uptake_dat)diff_uptake_dat <- calculate_diff_uptake(alpha_dat) calculate_confidence_limit_values(diff_uptake_dat)
Calculates differential deuterium uptake between two selected biological states.
calculate_diff_uptake( dat, protein = unique(dat[["Protein"]][1]), states = unique(dat[["State"]])[1:2], time_0 = min(dat[["Exposure"]]), time_t = unique(dat[["Exposure"]])[3], time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )calculate_diff_uptake( dat, protein = unique(dat[["Protein"]][1]), states = unique(dat[["State"]])[1:2], time_0 = min(dat[["Exposure"]]), time_t = unique(dat[["Exposure"]])[3], time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )
dat |
data imported by the |
protein |
chosen protein |
states |
vector of two states for chosen protein. Order is important, as the deuterium uptake difference is calculated as state_1 - state_2 |
time_0 |
minimal exchange control time point of measurement [min] |
time_t |
time point of the measurement for which the calculations are done [min] |
time_100 |
maximal exchange control time point of measurement [min] |
deut_part |
deuterium percentage in solution used in experiment, value from range [0, 1] |
Function calculate_diff_uptake calculates
differential values based on provided criteria for peptides for chosen
protein in selected states. The methods of calculation of deuterium uptake
difference, fractional deuterium uptake difference with respect to
minimal/maximal exchange controls or theoretical tabular values are
thoroughly described in the 'Data processing' article, as well as
law of propagation of uncertainty, used to calculate uncertainty.
a data.frame object.
read_hdx
calculate_state_uptake
diff_dat <- calculate_diff_uptake(alpha_dat) head(diff_dat)diff_dat <- calculate_diff_uptake(alpha_dat) head(diff_dat)
Calculate the measured mass (with the uncertainty of the measurement) as aggregated data from the replicates of the experiment.
calculate_exp_masses(dat)calculate_exp_masses(dat)
dat |
data as imported by the |
Each measurement is repeated at least three times to obtain reliable result and to calculate uncertainty of the measurement. For more information on how the data is aggregated or how the uncertainty is calculated, see the documentation.
a data.frame object.
read_hdx
calculate_exp_masses_per_replicate
calculate_state_uptake
calculate_exp_masses(alpha_dat)calculate_exp_masses(alpha_dat)
Calculate the measured mass from partial results, per each replicate of the experiment.
calculate_exp_masses_per_replicate(dat)calculate_exp_masses_per_replicate(dat)
dat |
data as imported by the |
Each replicate of the experiment generates measurements of the mass for obtained charge values for the peptide. This is an effect of the properties of mass spectrometry, that measures the mass to charge ratio (learn more about Mass Spectrometry in the documentation). The possible charge values depend on the sequence of the peptide. The separate measurement (for each replicate in given state in given time point) can be distinguished by the 'File' value.
a data.frame object.
read_hdx
calculate_exp_masses
calculate_state_uptake
head(calculate_exp_masses_per_replicate(alpha_dat))head(calculate_exp_masses_per_replicate(alpha_dat))
Calculate kinetics of the hydrogen-deuteration exchange for given peptide in given state.
calculate_kinetics( dat, protein = dat[["Protein"]][1], sequence = dat[["Sequence"]][1], state = dat[["State"]][1], start = dat[["Start"]][1], end = dat[["End"]][1], time_0 = min(dat[["Exposure"]]), time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )calculate_kinetics( dat, protein = dat[["Protein"]][1], sequence = dat[["Sequence"]][1], state = dat[["State"]][1], start = dat[["Start"]][1], end = dat[["End"]][1], time_0 = min(dat[["Exposure"]]), time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )
dat |
dat data imported by the |
protein |
protein chosen protein. |
sequence |
sequence of chosen peptide. |
state |
biological state of chosen peptide. |
start |
start position of chosen peptide. |
end |
end position of chosen peptide. |
time_0 |
minimal exchange control time point of measurement. |
time_100 |
maximal exchange control time point of measurement. |
deut_part |
deuterium percentage in solution used in experiment, value from range [0, 1]. |
The function calculates deuteration data for all available data points
for given peptide in chosen biological state..
All four variants (relative & theoretical combinations) of deuterium uptake computations
are supported. Manual correction of percentage of deuterium the protein was exposed
to during the exchange in theoretical calculations is provided.
To visualize obtained data we recommend using plot_uptake_curve function.
The first version doesn't support filled Modification and Fragment columns.
IMPORTANT! The kinetic data is often described as deuterium uptake curve data.
We use this terms interchangeable.
a data.frame object.
read_hdx
calculate_state_uptake
plot_uptake_curve
# by default: for the first peptide calculate_kinetics(alpha_dat)# by default: for the first peptide calculate_kinetics(alpha_dat)
Calculate the mass of the singly charged monoisotopic (or not) molecular ion of for given peptide.
calculate_MHP(Sequence, mono = FALSE)calculate_MHP(Sequence, mono = FALSE)
Sequence |
sequence of the peptide (string) or vector of sequences. Each letter of the sequence of the peptide represents different amino acid (three letter representation not allowed) |
mono |
logical value to determine if the mass should be monoisotopic or not. FALSE by default |
This function calculates the mass of the singly charged monoisotopic (or not) molecular ion for given peptide. It is the sum of the residue masses plus the masses of the terminating group (H and OH). The source of the masses can be found here: http://www.matrixscience.com/help/aa_help.html. Keep in mind that this function returns the value of an unmodified peptide.
vector of numeric MHP values of provided Sequences
read_hdx
calculate_state_uptake
calculate_MHP("CHERICHERILADY") calculate_MHP("CHERICHERILADY", mono = TRUE)calculate_MHP("CHERICHERILADY") calculate_MHP("CHERICHERILADY", mono = TRUE)
Create p-value dataset
calculate_p_value( dat, protein = unique(dat[["Protein"]])[1], state_1 = unique(dat[["State"]])[1], state_2 = unique(dat[["State"]])[2], p_adjustment_method = "none", confidence_level = 0.98 )calculate_p_value( dat, protein = unique(dat[["Protein"]])[1], state_1 = unique(dat[["State"]])[1], state_2 = unique(dat[["State"]])[2], p_adjustment_method = "none", confidence_level = 0.98 )
dat |
data imported by the |
protein |
chosen protein. |
state_1 |
biological state for chosen protein. From this state values the second state values are subtracted to get the deuterium uptake difference. |
state_2 |
biological state for chosen protein. This state values are subtracted from the first state values to get the deuterium uptake difference. |
p_adjustment_method |
method of adjustment P-values for multiple comparisons. Possible methods: "BH" (Benjamini & Hochberg correction), "bonferroni" (Bonferroni correction) and "none" (default). |
confidence_level |
confidence level for the t-test. |
This function calculates P-value based on the supplied data. Unpaired t-Student test (with supplied parameters) is used to establish if the null hypothesis (there is no difference between measured mass values between two selected biological states) can be rejected, based on the experimental mass values from replicates of the experiment - for peptide in given time point of measurement. For the peptides that have only one replicate of the measurement (in any state) the P-value cannot be calculated and is assigned with NA value.
a data.frame object.
read_hdx
calculate_exp_masses_per_replicate
plot_volcano
create_diff_uptake_dataset
create_p_diff_uptake_dataset
p_dat <- calculate_p_value(alpha_dat) head(p_dat)p_dat <- calculate_p_value(alpha_dat) head(p_dat)
Calculate kinetics of the hydrogen-deuteration exchange for given peptide in multiple biological states.
calculate_peptide_kinetics( dat, protein = dat[["Protein"]][1], sequence = dat[["Sequence"]][1], states = unique(dat[["State"]]), start = dat[["Start"]][1], end = dat[["End"]][1], time_0 = min(dat[["Exposure"]]), time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )calculate_peptide_kinetics( dat, protein = dat[["Protein"]][1], sequence = dat[["Sequence"]][1], states = unique(dat[["State"]]), start = dat[["Start"]][1], end = dat[["End"]][1], time_0 = min(dat[["Exposure"]]), time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )
dat |
dat data imported by the |
protein |
chosen protein. |
sequence |
sequence of chosen peptide. |
states |
vector of states (for chosen protein), for which the calculations are done. |
start |
start position of chosen peptide. |
end |
end position of chosen peptide. |
time_0 |
minimal exchange control time point of measurement. |
time_100 |
maximal exchange control time point of measurement. |
deut_part |
deuterium percentage in solution used in experiment, value from range [0, 1]. |
Function calculate_peptide_kinetics calculates
kinetic data for chosen peptide in chosen biological states.
It is a wrapper for calculate_kinetics but for multiple
states.
The output of this function can be visualized using plot_uptake_curve.
IMPORTANT! The kinetic data is often described as deuterium uptake curve data.
We use this terms interchangeable.
a data.frame object.
calculate_kinetics
calculate_state_uptake
plot_uptake_curve
# by default calculated for the first peptide from the peptide pool calculate_peptide_kinetics(alpha_dat)# by default calculated for the first peptide from the peptide pool calculate_peptide_kinetics(alpha_dat)
Calculates deuteration uptake based on supplied parameters.
calculate_state_uptake( dat, protein = unique(dat[["Protein"]])[1], state = unique(dat[["State"]])[1], time_0 = min(dat[dat[["Exposure"]] > 0, ][["Exposure"]]), time_t = unique(dat[["Exposure"]])[3], time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )calculate_state_uptake( dat, protein = unique(dat[["Protein"]])[1], state = unique(dat[["State"]])[1], time_0 = min(dat[dat[["Exposure"]] > 0, ][["Exposure"]]), time_t = unique(dat[["Exposure"]])[3], time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )
dat |
data as imported by the |
protein |
chosen protein |
state |
state included in calculations |
time_0 |
minimal exchange control |
time_t |
chosen time point |
time_100 |
maximal exchange control |
deut_part |
percentage of deuterium the protein was exposed to, value in range [0, 1] |
The function calculate_state_uptake calculates deuterium uptake
(in different forms) for all of the peptides in given protein in given state based
on supplied parameters: 'time_0', 'time_100' and 'time_t'. All four variants
(fractional) are supplied (mean values and uncertainty). Manual correction of
percentage of deuterium the protein was exposed to during the exchange
in theoretical calculations is provided.
Methods of calculation and uncertainty are profoundly discussed in the vignette.
a data.frame object
read_hdx
create_uptake_dataset
calculate_confidence_limit_values
add_stat_dependency
head(calculate_state_uptake(alpha_dat))head(calculate_state_uptake(alpha_dat))
This is a wrapper function for calculate_aggregated_diff_uptake,
which calculates aggregated differential uptake for only
one time point. This function returns values for all
time points from 'diff_uptake_dat'.
create_aggregated_diff_uptake_dataset(diff_uptake_dat)create_aggregated_diff_uptake_dataset(diff_uptake_dat)
diff_uptake_dat |
differential uptake data,
product of e.q. |
a data.frame object
# disabled due to long execution time diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) head(create_aggregated_diff_uptake_dataset(diff_uptake_dat))# disabled due to long execution time diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) head(create_aggregated_diff_uptake_dataset(diff_uptake_dat))
This is a wrapper function for calculate_aggregated_uptake,
which calculates aggregated uptake for only
one time point. This function returns values for all
time points from 'kin_dat'.
create_aggregated_uptake_dataset(kin_dat)create_aggregated_uptake_dataset(kin_dat)
kin_dat |
single state uptake data, product of e.q.
|
a data.frame object
# disabled due to long execution time kin_dat <- create_uptake_dataset(alpha_dat, states = "Alpha_KSCN") create_aggregated_uptake_dataset(kin_dat)# disabled due to long execution time kin_dat <- create_uptake_dataset(alpha_dat, states = "Alpha_KSCN") create_aggregated_uptake_dataset(kin_dat)
This function adds selected experimental maximal exchange control as a measurement for all biological states.
create_control_dataset( dat, control_protein = dat[["Protein"]][1], control_state = dat[["State"]][1], control_exposure = max(dat[["Exposure"]]) )create_control_dataset( dat, control_protein = dat[["Protein"]][1], control_state = dat[["State"]][1], control_exposure = max(dat[["Exposure"]]) )
dat |
data imported by the |
control_protein |
maximal exchange control protein, from dat. |
control_state |
maximal exchange control state, from dat. |
control_exposure |
maximal exchange control exposure (time point of measurement), from dat. |
Function create_control_dataset
creates a dataset (similar to the output of read_hdx
function), with maximal exchange control for all the states,
based on provided parameters. The other functions are operating
within a state, so the control is prepared for each state.
The chosen maximal exchange control is distinguishable by the value
'99999' in 'Exposure' control.
a data.frame object.
read_hdx
calculate_state_uptake
head(create_control_dataset(alpha_dat))head(create_control_dataset(alpha_dat))
Calculates differential deuterium uptake values between two states.
create_diff_uptake_dataset( dat, protein = unique(dat[["Protein"]])[1], state_1 = unique(dat[["State"]])[1], state_2 = unique(dat[["State"]])[2], time_0 = min(dat[["Exposure"]]), time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )create_diff_uptake_dataset( dat, protein = unique(dat[["Protein"]])[1], state_1 = unique(dat[["State"]])[1], state_2 = unique(dat[["State"]])[2], time_0 = min(dat[["Exposure"]]), time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )
dat |
data imported by the |
protein |
chosen protein. |
state_1 |
biological state for chosen protein. From this state values the second state values are subtracted to get the deuterium uptake difference. |
state_2 |
biological state for chosen protein. This state values are subtracted from the first state values to get the deuterium uptake difference. |
time_0 |
minimal exchange control time point of measurement [min]. |
time_100 |
maximal exchange control time point of measurement [min]. |
deut_part |
deuterium percentage in solution used in experiment, value from range [0, 1]. |
The function create_diff_uptake_dataset
generates a dataset with differential values between given biological states
(state_1 - state_2). For each peptide of chosen protein for time points of
measurement between minimal and maximal control time points of measurement
deuterium uptake difference, fractional deuterium uptake difference with
respect to controls or theoretical tabular values are calculated, with
combined and propagated uncertainty. Each peptide has an ID, based on its start
position.
Function output can be visualized as a differential (Woods) plot, butterfly
differential plot or chiclet differential plot.
a data.frame object.
read_hdx
calculate_diff_uptake
plot_differential_butterfly
plot_differential_chiclet
plot_differential
diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) head(diff_uptake_dat)diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) head(diff_uptake_dat)
Generates the data set of deuterium uptake between selected time points based on supplied peptide list.
create_kinetic_dataset( dat, peptide_list, protein = dat[["Protein"]][1], time_0 = min(dat[["Exposure"]]), time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )create_kinetic_dataset( dat, peptide_list, protein = dat[["Protein"]][1], time_0 = min(dat[["Exposure"]]), time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )
dat |
dat data imported by the |
peptide_list |
list of peptides for the calculation. |
protein |
chosen protein. |
time_0 |
minimal exchange control time point of measurement. |
time_100 |
maximal exchange control time point of measurement. |
deut_part |
deuterium percentage in solution used in experiment, value from range [0, 1]. |
This is a wrapper for calculate_kinetics, but for
the peptide list instead of one peptide.
a data.frame object.
calculate_kinetics
calculate_state_uptake
plot_uptake_curve
peptide_list <- data.frame(Sequence = c("GFGDLKSPAGL", "FGDLKSPAGL"), state = c("ALPHA_Gamma", "ALPHA_Gamma"), start = c(1, 2), end = c(11, 11)) create_kinetic_dataset(alpha_dat, peptide_list)peptide_list <- data.frame(Sequence = c("GFGDLKSPAGL", "FGDLKSPAGL"), state = c("ALPHA_Gamma", "ALPHA_Gamma"), start = c(1, 2), end = c(11, 11)) create_kinetic_dataset(alpha_dat, peptide_list)
Generates the data of frequency of overlap of each amino in the protein sequence.
create_overlap_distribution_dataset( dat, protein = dat[["Protein"]][1], state = dat[["State"]][1], start = min(dat[["Start"]]), end = max(dat[["End"]]), protein_sequence = reconstruct_sequence(dat) )create_overlap_distribution_dataset( dat, protein = dat[["Protein"]][1], state = dat[["State"]][1], start = min(dat[["Start"]]), end = max(dat[["End"]]), protein_sequence = reconstruct_sequence(dat) )
dat |
data imported by the |
protein |
chosen protein. |
state |
biological state for chosen protein. |
start |
start position of chosen protein. |
end |
end position of chosen protein. |
protein_sequence |
data produced by
|
This data frame presents how many times (by how many peptides) a amino position in protein sequence is covered. This data is available in the GUI.
a data.frame object.
create_overlap_distribution_dataset(alpha_dat)create_overlap_distribution_dataset(alpha_dat)
Creates differential deuterium uptake dataset with P-value from t-Student test for selected two biological states.
create_p_diff_uptake_dataset( dat, diff_uptake_dat = NULL, protein = unique(dat[["Protein"]])[1], state_1 = unique(dat[["State"]])[1], state_2 = unique(dat[["State"]])[2], p_adjustment_method = "none", confidence_level = 0.98, time_0 = min(dat[["Exposure"]]), time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )create_p_diff_uptake_dataset( dat, diff_uptake_dat = NULL, protein = unique(dat[["Protein"]])[1], state_1 = unique(dat[["State"]])[1], state_2 = unique(dat[["State"]])[2], p_adjustment_method = "none", confidence_level = 0.98, time_0 = min(dat[["Exposure"]]), time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )
dat |
data imported by the |
diff_uptake_dat |
differential uptake data |
protein |
chosen protein. |
state_1 |
biological state for chosen protein. From this state values the second state values are subtracted to get the deuterium uptake difference. |
state_2 |
biological state for chosen protein. This state values are subtracted from the first state values to get the deuterium uptake difference. |
p_adjustment_method |
method of adjustment P-values for multiple comparisons. Possible methods: "BH" (Benjamini & Hochberg correction), "bonferroni" (Bonferroni correction) and "none" (default). |
confidence_level |
confidence level for the t-test. |
time_0 |
minimal exchange control time point of measurement [min]. |
time_100 |
maximal exchange control time point of measurement [min]. |
deut_part |
deuterium percentage in solution used in experiment, value from range [0, 1]. |
For peptides in all of the time points of measurement (except for minimal and maximal exchange control) the deuterium uptake difference between state_1 and state_2 is calculated, with its uncertainty (combined and propagated as described in 'Data processing' article). For each peptide in time point the P-value is calculated using unpaired t-test. The deuterium uptake difference is calculated as the difference of measured masses in a given time point for two states. The tested hypothesis is that the mean masses for states from the replicates of the experiment are similar. The P-values indicates if the null hypothesis can be rejected - rejection of the hypothesis means that the difference between states is statistically significant at provided confidence level. The P-values can be adjusted using the provided method.
a data.frame object with calculated deuterium uptake difference
in different forms with their uncertainty, P-value and -log(P-value) for the peptides
from the provided data.
Hageman, T. S. & Weis, D. D. Reliable Identification of Significant Differences in Differential Hydrogen Exchange-Mass Spectrometry Measurements Using a Hybrid Significance Testing Approach. Anal Chem 91, 8008–8016 (2019).
read_hdx
calculate_exp_masses_per_replicate
p_diff_uptake_dat <- create_p_diff_uptake_dataset(alpha_dat) head(p_diff_uptake_dat)p_diff_uptake_dat <- create_p_diff_uptake_dataset(alpha_dat) head(p_diff_uptake_dat)
Create differential dataset with statistical validity
create_p_diff_uptake_dataset_with_confidence( p_diff_uptake_dat, houde_interval = NULL, houde_interval_times = NULL, theoretical = FALSE, fractional = FALSE )create_p_diff_uptake_dataset_with_confidence( p_diff_uptake_dat, houde_interval = NULL, houde_interval_times = NULL, theoretical = FALSE, fractional = FALSE )
p_diff_uptake_dat |
differential uptake data
alongside the P-value as calculated by
|
houde_interval |
interval value, as calculated by
|
houde_interval_times |
specified time points to be used in calculation |
theoretical |
|
fractional |
|
Function provides additional information on statistical relevance based on supplied data.
a data.frame object.
read_hdx
create_p_diff_uptake_dataset
calculate_confidence_limit_values
p_diff_uptake_dat <- create_p_diff_uptake_dataset(alpha_dat) p_diff_uptake_dat_confidence <- create_p_diff_uptake_dataset_with_confidence(p_diff_uptake_dat) head(p_diff_uptake_dat_confidence)p_diff_uptake_dat <- create_p_diff_uptake_dataset(alpha_dat) p_diff_uptake_dat_confidence <- create_p_diff_uptake_dataset_with_confidence(p_diff_uptake_dat) head(p_diff_uptake_dat_confidence)
Checks how the uncertainty changes in a function of maximal exchange control time of measurement.
create_quality_control_dataset( dat, protein = dat[["Protein"]][1], state_1 = unique(dat[["State"]])[1], state_2 = unique(dat[["State"]])[2], time_t = unique(dat[["Exposure"]])[2], time_0 = min(dat[["Exposure"]]), deut_part = 0.9 )create_quality_control_dataset( dat, protein = dat[["Protein"]][1], state_1 = unique(dat[["State"]])[1], state_2 = unique(dat[["State"]])[2], time_t = unique(dat[["Exposure"]])[2], time_0 = min(dat[["Exposure"]]), deut_part = 0.9 )
dat |
data imported by the |
protein |
chosen protein. |
state_1 |
first biological state. |
state_2 |
second biological state. |
time_t |
time point of the measurement for which the calculations are done. |
time_0 |
minimal exchange control time point of measurement. |
deut_part |
deuterium percentage in solution used in experiment, value from range [0, 1]. |
The function calculates mean uncertainty of all peptides and its uncertainty (standard error) based on given 'time_0' and 'time_t' as a function of 'time_100'. Both theoretical and experimental results for each state and their difference are supplied for comparison but only experimental calculations depends on 'time_100' variable. The results are either in form of fractional or absolute values depending on the 'fractional' parameter supplied by the user. This data can be useful for general overview of the experiment and analyze of the chosen time parameters.
data.frame object with mean uncertainty per different
'time_100' value.
The values are shown as percentages.
read_hdx
calculate_state_uptake
plot_quality_control
show_quality_control_data
create_quality_control_dataset(alpha_dat)create_quality_control_dataset(alpha_dat)
Create replicate data set suitable for replicate histogram, for one or multiple time points of measurement.
create_replicate_dataset( dat, time_t = NULL, protein = unique(dat[["Protein"]])[1], state = dat[["State"]][1] )create_replicate_dataset( dat, time_t = NULL, protein = unique(dat[["Protein"]])[1], state = dat[["State"]][1] )
dat |
data as imported by the |
time_t |
optional, for only one time point of
measurement. If value is NULL, all time point from
|
protein |
chosen protein. |
state |
biological state for chosen protein. |
The function create_replicate_dataset
creates a dataset with information about how many
replicates are for peptides in specific state in
time points of measurement.
a data.frame object.
plot_replicate_histogram
show_replicate_histogram_data
create_replicate_dataset(alpha_dat)create_replicate_dataset(alpha_dat)
Calculates deuterium uptake values for selected biological states in selected time point of measurements.
create_state_comparison_dataset( dat, protein = unique(dat[["Protein"]])[1], states = unique(dat[["State"]]), time_0 = min(dat[["Exposure"]]), time_t = unique(dat[["Exposure"]])[3], time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )create_state_comparison_dataset( dat, protein = unique(dat[["Protein"]])[1], states = unique(dat[["State"]]), time_0 = min(dat[["Exposure"]]), time_t = unique(dat[["Exposure"]])[3], time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )
dat |
data imported by the |
protein |
chosen protein. |
states |
vector of states (for chosen protein), for which the calculations are done. |
time_0 |
minimal exchange control time point of measurement [min]. |
time_t |
time point of the measurement for which the calculations are done [min]. |
time_100 |
maximal exchange control time point of measurement [min]. |
deut_part |
deuterium percentage in solution used in experiment, value from range [0, 1]. |
Function create_state_comparison_dataset is a
wrapper for calculate_state_uptake function, calls
this function for all (default) or chosen states in states vector.
a data.frame object.
read_hdx
calculate_state_uptake
comparison_dat <- create_state_comparison_dataset(alpha_dat) head(comparison_dat)comparison_dat <- create_state_comparison_dataset(alpha_dat) head(comparison_dat)
Calculates deuterium uptake values for one biological state.
create_state_uptake_dataset( dat, protein = unique(dat[["Protein"]])[1], state = (dat[["State"]])[1], time_0 = min(dat[dat[["Exposure"]] > 0, ][["Exposure"]]), time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )create_state_uptake_dataset( dat, protein = unique(dat[["Protein"]])[1], state = (dat[["State"]])[1], time_0 = min(dat[dat[["Exposure"]] > 0, ][["Exposure"]]), time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )
dat |
data imported by the |
protein |
chosen protein. |
state |
biological state for chosen protein. |
time_0 |
minimal exchange control time point of measurement [min]. |
time_100 |
maximal exchange control time point of measurement [min]. |
deut_part |
deuterium percentage in solution used in experiment, value from range [0, 1]. |
The function create_uptake_dataset generates
a dataset with deuterium uptake values in different forms. For each
peptide in chosen protein in chosen state for time points of measurement
between minimal and maximal control time points of measurement deuterium
uptake, fractional deuterium uptake with respect to controls or theoretical
tabular values are calculated, with combined and propagated uncertainty.
Each peptide has an ID, based on its start position.
This data can be presented in a form of comparison plot, butterfly plot or
chiclet plot.
a data.frame object.
read_hdx
calculate_state_uptake
state_uptake_dat <- create_state_uptake_dataset(alpha_dat) head(state_uptake_dat)state_uptake_dat <- create_state_uptake_dataset(alpha_dat) head(state_uptake_dat)
Calculates deuterium uptake values for selected biological states in multiple time points of measurements.
create_uptake_dataset( dat, protein = unique(dat[["Protein"]])[1], states = unique(dat[["State"]]), time_0 = min(dat[["Exposure"]]), time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )create_uptake_dataset( dat, protein = unique(dat[["Protein"]])[1], states = unique(dat[["State"]]), time_0 = min(dat[["Exposure"]]), time_100 = max(dat[["Exposure"]]), deut_part = 0.9 )
dat |
data imported by the |
protein |
chosen protein. |
states |
list of biological states for chosen protein. |
time_0 |
minimal exchange control time point of measurement [min]. |
time_100 |
maximal exchange control time point of measurement [min]. |
deut_part |
deuterium percentage in solution used in experiment, value from range [0, 1]. |
Function create_uptake_dataset generates
a dataset with deuterium uptake values in different forms. For each
peptide in chosen protein in chosen states for time points of measurement
between minimal and maximal control time points of measurement deuterium
uptake, fractional deuterium uptake with respect to controls or theoretical
tabular values are calculated, with combined and propagated uncertainty.
Each peptide has an ID, based on its start position.
This function is a wrapper for create_state_uptake_dataset
but for multiple states.
The output of this function can be presented in a form of
comparison plot.
a data.frame object.
read_hdx
calculate_state_uptake
create_state_uptake_dataset
uptake_dat <- create_uptake_dataset(alpha_dat, states = c("Alpha_KSCN", "ALPHA_Gamma")) head(uptake_dat)uptake_dat <- create_uptake_dataset(alpha_dat, states = c("Alpha_KSCN", "ALPHA_Gamma")) head(uptake_dat)
Calculates the number of replicates from the experimental data.
get_n_replicates(dat, protein = dat[["Protein"]][1])get_n_replicates(dat, protein = dat[["Protein"]][1])
dat |
data imported by the |
protein |
chosen protein |
Calculate the number of replicates of experiment.
a numeric value.
get_n_replicates(alpha_dat)get_n_replicates(alpha_dat)
Gets the peptide sequence based on selected parameters (start and end position, modification).
get_peptide_sequence( dat, protein = dat[["Protein"]][1], start, end, modification = FALSE )get_peptide_sequence( dat, protein = dat[["Protein"]][1], start, end, modification = FALSE )
dat |
any data frame that contains following information: protein, sequence, start, end, modification. |
protein |
chosen protein. |
start |
start position of the peptide of interest. |
end |
end position of the peptide of interest. |
modification |
logical value to indicate if peptide of interest has modification or not. |
Function returns peptide sequence for selected parameters. Peptide sequence is often required to properly identify peptide of interest, and to avoid mistakes sequence is returned by the function. Moreover, function uses the modification value to select peptide sequence.
a character value.
get_peptide_sequence(alpha_dat, start = 1, end = 11)get_peptide_sequence(alpha_dat, start = 1, end = 11)
Calculate protein coverage by the peptides in selected biological state or states.
get_protein_coverage( dat, protein = dat[["Protein"]][1], states = unique(dat[["State"]]), protein_length = NULL )get_protein_coverage( dat, protein = dat[["Protein"]][1], states = unique(dat[["State"]]), protein_length = NULL )
dat |
data imported by the |
protein |
selected protein |
states |
selected biological states |
protein_length |
|
Function get_protein_coverage calculates the
percentage coverage of the protein sequence, rounded to two decimal places.
a numeric percentage value (rounded to two decimal places).
get_protein_coverage(alpha_dat) get_protein_coverage(alpha_dat, protein_length = 230)get_protein_coverage(alpha_dat) get_protein_coverage(alpha_dat, protein_length = 230)
Calculates the protein redundancy in the whole experiment (all biological states).
get_protein_redundancy(dat, protein_length = NULL)get_protein_redundancy(dat, protein_length = NULL)
dat |
data imported by the |
protein_length |
|
Function get_protein_redundancy calculates the redundancy
of the protein, based on provided experimental data.
a numeric value.
get_protein_redundancy(alpha_dat)get_protein_redundancy(alpha_dat)
Get list of peptides with their standard deviation.
get_replicate_list_sd( dat, protein = dat[["Protein"]][1], state = dat[["State"]][1], time_t = unique(dat[["Exposure"]])[3] )get_replicate_list_sd( dat, protein = dat[["Protein"]][1], state = dat[["State"]][1], time_t = unique(dat[["Exposure"]])[3] )
dat |
data as imported by the |
protein |
chosen protein. |
state |
biological state for chosen protein. |
time_t |
time point of the measurement. |
Function gets the pepitde list in selected state with their standard deviation of measurement, calculated from the technical replicates. It is used for selection for measurement variability plot.
a data.frame object.
get_replicate_list_sd(alpha_dat)get_replicate_list_sd(alpha_dat)
Get residue positions
get_residue_positions(dat)get_residue_positions(dat)
dat |
data imported by the |
Prepares data table for high-resolution values. It creates a long data frame with each position in the sequence accompanied by the amino acid placed in this position.
a data.frame object.
# disabled due to long execution time get_residue_positions(alpha_dat)# disabled due to long execution time get_residue_positions(alpha_dat)
This function provides a set of color codes associated with aggregated values to be presented on 3D structure.
get_structure_color( aggregated_dat, differential = FALSE, fractional = TRUE, theoretical = FALSE, time_t )get_structure_color( aggregated_dat, differential = FALSE, fractional = TRUE, theoretical = FALSE, time_t )
aggregated_dat |
aggregated data, either for single uptake or differential |
differential |
indicator if the aggregated_dat contains differential results |
fractional |
indicator if fractional values are used |
theoretical |
indicator if theoretical values are used |
time_t |
time point from aggregated_dat to be shown on the structure |
a list
# disabled due to long execution time diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) diff_aggregated_dat <- create_aggregated_diff_uptake_dataset(diff_uptake_dat) get_structure_color(diff_aggregated_dat, differential = TRUE, time_t = 1)# disabled due to long execution time diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) diff_aggregated_dat <- create_aggregated_diff_uptake_dataset(diff_uptake_dat) get_structure_color(diff_aggregated_dat, differential = TRUE, time_t = 1)
Shows how to launch graphical user interface from HaDeXGUI package. If the GUI package is not installed, it asks user whether to install it.
HaDeX_GUI()HaDeX_GUI()
No return value, called for side effects
Any ad-blocking software may cause malfunctions.
This function HaDeXifies plot. It adds HaDeX logo and ggplot theme.
HaDeXify(plt)HaDeXify(plt)
plt |
ggplot object. Plot to HaDeXify. |
Function adds the logo of HaDeX package in the left down corner of the plot and the HaDeX theme.
a ggplot object.
read_hdx
plot_differential
plot_butterfly
diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) HaDeXify(plot_differential(diff_uptake_dat))diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) HaDeXify(plot_differential(diff_uptake_dat))
Installs GUI package from GitHub
install_GUI()install_GUI()
No return value, called for side effects
Indicates presence or absence of HaDeXGUI package.
is_GUI_installed()is_GUI_installed()
logical value indicating availability of GUI package
Plots aggregated uptake difference
plot_aggregated_differential_uptake( aggregated_diff_dat, fractional = TRUE, theoretical = FALSE, time_100 = max(unique(aggregated_diff_dat[["Exposure"]])), panels = FALSE, interactive = FALSE )plot_aggregated_differential_uptake( aggregated_diff_dat, fractional = TRUE, theoretical = FALSE, time_100 = max(unique(aggregated_diff_dat[["Exposure"]])), panels = FALSE, interactive = FALSE )
aggregated_diff_dat |
aggregated differential
uptake data as calculated by |
fractional |
|
theoretical |
|
time_100 |
maximal exchange control time point of measurement [min] |
panels |
|
interactive |
|
a ggplot object
create_diff_uptake_dataset
create_aggregated_diff_uptake_dataset
# disabled due to long execution time diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) aggregated_diff_dat <- create_aggregated_diff_uptake_dataset(diff_uptake_dat) plot_aggregated_differential_uptake(aggregated_diff_dat, panels = FALSE) plot_aggregated_differential_uptake(aggregated_diff_dat, fractional = FALSE, theoretical = TRUE, panels = FALSE) plot_aggregated_differential_uptake(aggregated_diff_dat, theoretical = TRUE, panels = TRUE)# disabled due to long execution time diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) aggregated_diff_dat <- create_aggregated_diff_uptake_dataset(diff_uptake_dat) plot_aggregated_differential_uptake(aggregated_diff_dat, panels = FALSE) plot_aggregated_differential_uptake(aggregated_diff_dat, fractional = FALSE, theoretical = TRUE, panels = FALSE) plot_aggregated_differential_uptake(aggregated_diff_dat, theoretical = TRUE, panels = TRUE)
Plots aggregated uptake
plot_aggregated_uptake( aggregated_dat, fractional = TRUE, theoretical = FALSE, time_100 = max(unique(aggregated_dat[["Exposure"]])), panels = FALSE, interactive = FALSE )plot_aggregated_uptake( aggregated_dat, fractional = TRUE, theoretical = FALSE, time_100 = max(unique(aggregated_dat[["Exposure"]])), panels = FALSE, interactive = FALSE )
aggregated_dat |
aggregated differential
uptake data as calculated by |
fractional |
|
theoretical |
|
time_100 |
maximal exchange control time point of measurement [min] |
panels |
|
interactive |
|
a ggplot object
# disabled due to long execution time kin_dat <- create_uptake_dataset(alpha_dat, states = "Alpha_KSCN") aggregated_dat <- create_aggregated_uptake_dataset(kin_dat) plot_aggregated_uptake(aggregated_dat, panels = FALSE) plot_aggregated_uptake(aggregated_dat, fractional = FALSE, panels = FALSE) plot_aggregated_uptake(aggregated_dat, fractional = FALSE, theoretical = TRUE, panels = TRUE)# disabled due to long execution time kin_dat <- create_uptake_dataset(alpha_dat, states = "Alpha_KSCN") aggregated_dat <- create_aggregated_uptake_dataset(kin_dat) plot_aggregated_uptake(aggregated_dat, panels = FALSE) plot_aggregated_uptake(aggregated_dat, fractional = FALSE, panels = FALSE) plot_aggregated_uptake(aggregated_dat, fractional = FALSE, theoretical = TRUE, panels = TRUE)
Function plots the aggregated data (either one state deuterium uptake or differential deuterium uptake) on the 3d structure.
plot_aggregated_uptake_structure( aggregated_dat, differential = FALSE, fractional = TRUE, theoretical = FALSE, time_t, pdb_file_path )plot_aggregated_uptake_structure( aggregated_dat, differential = FALSE, fractional = TRUE, theoretical = FALSE, time_t, pdb_file_path )
aggregated_dat |
aggregated data, either for single uptake or differential |
differential |
indicator if the aggregated_dat contains differential results |
fractional |
indicator if fractional values are used |
theoretical |
indicator if theoretical values are used |
time_t |
time point from aggregated_dat to be shown on the structure |
pdb_file_path |
file path to the pdb file |
a r3dmol object.
library(shiny) # disabled due to its long time and producing 3rdmol object diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) diff_aggregated_dat <- create_aggregated_diff_uptake_dataset(diff_uptake_dat) pdb_file_path <- system.file(package = "HaDeX2", "HaDeX/data/Model_eEF1Balpha.pdb") plot_aggregated_uptake_structure(diff_aggregated_dat, differential = TRUE, time_t = 1, pdb_file_path = pdb_file_path) kin_dat <- create_uptake_dataset(alpha_dat, states = "Alpha_KSCN" ) aggregated_dat <- create_aggregated_uptake_dataset(kin_dat) plot_aggregated_uptake_structure(aggregated_dat, differential = FALSE, time_t = 1, pdb_file_path = pdb_file_path)library(shiny) # disabled due to its long time and producing 3rdmol object diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) diff_aggregated_dat <- create_aggregated_diff_uptake_dataset(diff_uptake_dat) pdb_file_path <- system.file(package = "HaDeX2", "HaDeX/data/Model_eEF1Balpha.pdb") plot_aggregated_uptake_structure(diff_aggregated_dat, differential = TRUE, time_t = 1, pdb_file_path = pdb_file_path) kin_dat <- create_uptake_dataset(alpha_dat, states = "Alpha_KSCN" ) aggregated_dat <- create_aggregated_uptake_dataset(kin_dat) plot_aggregated_uptake_structure(aggregated_dat, differential = FALSE, time_t = 1, pdb_file_path = pdb_file_path)
Generates amino distribution based on the protein sequence and shows if the amino acid is hydrophobic or hydrophylic.
plot_amino_distribution( position_in_sequence, hydro_properties, protein, charge_colors, interactive = getOption("hadex_use_interactive_plots") )plot_amino_distribution( position_in_sequence, hydro_properties, protein, charge_colors, interactive = getOption("hadex_use_interactive_plots") )
position_in_sequence |
custom format |
hydro_properties |
data with hydrophobic properties |
protein |
chosen protein |
charge_colors |
vector of desired colors |
interactive |
|
The data for this function is not packaged yet.
a ggplot object.
Butterfly plot of deuterium uptake values in time for one biological state.
plot_butterfly( uptake_dat, theoretical = FALSE, fractional = FALSE, uncertainty_type = "ribbon", interactive = getOption("hadex_use_interactive_plots") )plot_butterfly( uptake_dat, theoretical = FALSE, fractional = FALSE, uncertainty_type = "ribbon", interactive = getOption("hadex_use_interactive_plots") )
uptake_dat |
data produced by |
theoretical |
|
fractional |
|
uncertainty_type |
type of presenting uncertainty, possible values: "ribbon", "bars" or "bars + line". |
interactive |
|
Function plot_butterfly generates butterfly plot
based on provided data and parameters. On X-axis there is peptide ID. On the Y-axis
there is deuterium uptake in chosen form. Data from multiple time points of
measurement is presented.
a ggplot object.
state_uptake_dat <- create_state_uptake_dataset(alpha_dat) plot_butterfly(state_uptake_dat)state_uptake_dat <- create_state_uptake_dataset(alpha_dat) plot_butterfly(state_uptake_dat)
Chiclet plot of deuterium uptake values in time for one biological state.
plot_chiclet( uptake_dat, theoretical = FALSE, fractional = FALSE, show_uncertainty = FALSE, interactive = getOption("hadex_use_interactive_plots") )plot_chiclet( uptake_dat, theoretical = FALSE, fractional = FALSE, show_uncertainty = FALSE, interactive = getOption("hadex_use_interactive_plots") )
uptake_dat |
produced by |
theoretical |
|
fractional |
|
show_uncertainty |
|
interactive |
|
Function plot_chiclet produces a chiclet
plot based on the same dataset as butterfly plot, as it is the different
form of presenting the same data. On X-axis there is a peptide ID. On
Y-axis are time points of measurement. Each tile for a peptide in time has
a color value representing the deuterium uptake, in a form based on
provided criteria (e.q. fractional). Each tile has a plus sign, which size
represent the uncertainty of measurement for chosen value.
a ggplot object.
state_uptake_dat <- create_state_uptake_dataset(alpha_dat) plot_chiclet(state_uptake_dat)state_uptake_dat <- create_state_uptake_dataset(alpha_dat) plot_chiclet(state_uptake_dat)
Plot the peptide coverage of the protein sequence
plot_coverage( dat, protein = dat[["Protein"]][1], states = NULL, show_blanks = TRUE, interactive = getOption("hadex_use_interactive_plots") )plot_coverage( dat, protein = dat[["Protein"]][1], states = NULL, show_blanks = TRUE, interactive = getOption("hadex_use_interactive_plots") )
dat |
data imported by the |
protein |
selected protein |
states |
selected biological states for given protein |
show_blanks |
|
interactive |
|
The function plot_coverage generates
sequence coverage plot based on experimental data for
selected protein in selected biological states. Only non-duplicated
peptides are shown on the plot, next to each other.
The aim of this plot is to see the dependence between position of the peptide on the protein sequence. Their position on y-axis does not contain any information.
a ggplot object
read_hdx
plot_position_frequency
plot_coverage(alpha_dat) plot_coverage(alpha_dat, show_blanks = FALSE) diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) plot_coverage(diff_uptake_dat)plot_coverage(alpha_dat) plot_coverage(alpha_dat, show_blanks = FALSE) diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) plot_coverage(diff_uptake_dat)
Coverage heatmap with color indicating specific value
plot_coverage_heatmap( x_dat, protein = x_dat[["Protein"]][1], state = NULL, value = NULL, time_t = NULL, interactive = getOption("hadex_use_interactive_plots") )plot_coverage_heatmap( x_dat, protein = x_dat[["Protein"]][1], state = NULL, value = NULL, time_t = NULL, interactive = getOption("hadex_use_interactive_plots") )
x_dat |
data created using calculate_ or create_ function |
protein |
selected protein |
state |
selected biological state |
value |
value to be presented |
time_t |
chosen time point |
interactive |
|
Plots standard protein coverage but colored with desired value.
a ggplot object
uptake_dat <- create_uptake_dataset(alpha_dat, states = "Alpha_KSCN") plot_coverage_heatmap(uptake_dat) plot_coverage_heatmap(x_dat = uptake_dat, value = "frac_deut_uptake", time_t = 0.167) plot_coverage_heatmap(uptake_dat, value = "err_frac_deut_uptake", time_t = 0.167) diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) plot_coverage_heatmap(diff_uptake_dat) plot_coverage_heatmap(diff_uptake_dat, value = "diff_frac_deut_uptake") plot_coverage_heatmap(diff_uptake_dat, value = "diff_frac_deut_uptake", time_t = 0.167) plot_coverage_heatmap(diff_uptake_dat, value = "err_diff_frac_deut_uptake", time_t = 0.167) auc_dat <- calculate_auc(create_uptake_dataset(alpha_dat)) plot_coverage_heatmap(auc_dat, value = "auc") bex_dat <- calculate_back_exchange(alpha_dat, state = "Alpha_KSCN") plot_coverage_heatmap(bex_dat, value = "back_exchange")uptake_dat <- create_uptake_dataset(alpha_dat, states = "Alpha_KSCN") plot_coverage_heatmap(uptake_dat) plot_coverage_heatmap(x_dat = uptake_dat, value = "frac_deut_uptake", time_t = 0.167) plot_coverage_heatmap(uptake_dat, value = "err_frac_deut_uptake", time_t = 0.167) diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) plot_coverage_heatmap(diff_uptake_dat) plot_coverage_heatmap(diff_uptake_dat, value = "diff_frac_deut_uptake") plot_coverage_heatmap(diff_uptake_dat, value = "diff_frac_deut_uptake", time_t = 0.167) plot_coverage_heatmap(diff_uptake_dat, value = "err_diff_frac_deut_uptake", time_t = 0.167) auc_dat <- calculate_auc(create_uptake_dataset(alpha_dat)) plot_coverage_heatmap(auc_dat, value = "auc") bex_dat <- calculate_back_exchange(alpha_dat, state = "Alpha_KSCN") plot_coverage_heatmap(bex_dat, value = "back_exchange")
Woods plot of differential deuterium uptake values between two biological states in time point.
plot_differential( diff_uptake_dat = NULL, diff_p_uptake_dat = NULL, skip_amino = 0, time_t = NULL, theoretical = FALSE, fractional = FALSE, show_houde_interval = FALSE, hide_houde_insignificant = FALSE, show_tstud_confidence = FALSE, hide_tstud_insignificant = FALSE, confidence_level = 0.98, all_times = FALSE, line_size = 1.5, interactive = getOption("hadex_use_interactive_plots") )plot_differential( diff_uptake_dat = NULL, diff_p_uptake_dat = NULL, skip_amino = 0, time_t = NULL, theoretical = FALSE, fractional = FALSE, show_houde_interval = FALSE, hide_houde_insignificant = FALSE, show_tstud_confidence = FALSE, hide_tstud_insignificant = FALSE, confidence_level = 0.98, all_times = FALSE, line_size = 1.5, interactive = getOption("hadex_use_interactive_plots") )
diff_uptake_dat |
produced by |
diff_p_uptake_dat |
produced by |
skip_amino |
|
time_t |
time point of measurement, if only one should be displayed on the plot. |
theoretical |
|
fractional |
|
show_houde_interval |
|
hide_houde_insignificant |
|
show_tstud_confidence |
|
hide_tstud_insignificant |
|
confidence_level |
confidence level for the test, from range [0, 1]. |
all_times |
|
line_size |
line size of the lines displayed on the plot. |
interactive |
|
Function plot_differential presents
provided data in a form of differential (Woods) plot. The plot shows
difference in exchange for two biological states, selected in
generation of dataset at one time point of measurement. On X-axis
there is a position in a sequence, with length of a segment of each
peptide representing its length. On Y-axis there
is deuterium uptake difference in chosen form. Error bars represents
the combined and propagated uncertainty.
For Woods Plot there is available Houde test and t-Student test to
see the statistically significant peptides. Selecting both of them
simultaneously results in hybrid testing, as described in Weis et al.
The statistically significant values are in color (red if the
difference is positive, blue if negative), and the insignificant values are
grey.
a [ggplot2::ggplot()] object.
Hageman, T. S. & Weis, D. D. Reliable Identification of Significant Differences in Differential Hydrogen Exchange-Mass Spectrometry Measurements Using a Hybrid Significance Testing Approach. Anal Chem 91, 8008–8016 (2019).
create_diff_uptake_dataset
calculate_diff_uptake
show_diff_uptake_data
# disabled due to long execution time diff_uptake_dat <- calculate_diff_uptake(alpha_dat, states = c("ALPHA_Gamma", "Alpha_KSCN"), time_t = 0.167) plot_differential(diff_uptake_dat = diff_uptake_dat, time_t = 0.167) plot_differential(diff_uptake_dat = diff_uptake_dat, time_t = 0.167, show_houde_interval = TRUE) plot_differential(diff_uptake_dat = diff_uptake_dat, time_t = 0.167, skip_amino = 0) plot_differential(diff_uptake_dat = diff_uptake_dat, time_t = 0.167, line_size = 1) plot_differential(diff_uptake_dat = diff_uptake_dat, all_times = TRUE) plot_differential(diff_uptake_dat = diff_uptake_dat, all_times = TRUE, show_houde_interval = TRUE) plot_differential(diff_uptake_dat = diff_uptake_dat, all_times = TRUE, show_houde_interval = TRUE, hide_houde_insignificant = TRUE) diff_p_uptake_dat <- create_p_diff_uptake_dataset(alpha_dat, state_1 = "Alpha_KSCN", state_2 = "ALPHA_Gamma") plot_differential(diff_p_uptake_dat = diff_p_uptake_dat, all_times = TRUE, show_tstud_confidence = TRUE) plot_differential(diff_p_uptake_dat = diff_p_uptake_dat, all_times = FALSE, time_t = 0.167, show_tstud_confidence = TRUE, show_houde_interval = TRUE) plot_differential(diff_p_uptake_dat = diff_p_uptake_dat, show_tstud_confidence = TRUE, show_houde_interval = TRUE, all_times = FALSE) plot_differential(diff_p_uptake_dat = diff_p_uptake_dat, show_tstud_confidence = TRUE, show_houde_interval = TRUE, all_times = FALSE, hide_houde_insignificant = TRUE) plot_differential(diff_p_uptake_dat = diff_p_uptake_dat, show_tstud_confidence = TRUE, show_houde_interval = TRUE, all_times = FALSE, hide_houde_insignificant = TRUE, hide_tstud_insignificant = TRUE)# disabled due to long execution time diff_uptake_dat <- calculate_diff_uptake(alpha_dat, states = c("ALPHA_Gamma", "Alpha_KSCN"), time_t = 0.167) plot_differential(diff_uptake_dat = diff_uptake_dat, time_t = 0.167) plot_differential(diff_uptake_dat = diff_uptake_dat, time_t = 0.167, show_houde_interval = TRUE) plot_differential(diff_uptake_dat = diff_uptake_dat, time_t = 0.167, skip_amino = 0) plot_differential(diff_uptake_dat = diff_uptake_dat, time_t = 0.167, line_size = 1) plot_differential(diff_uptake_dat = diff_uptake_dat, all_times = TRUE) plot_differential(diff_uptake_dat = diff_uptake_dat, all_times = TRUE, show_houde_interval = TRUE) plot_differential(diff_uptake_dat = diff_uptake_dat, all_times = TRUE, show_houde_interval = TRUE, hide_houde_insignificant = TRUE) diff_p_uptake_dat <- create_p_diff_uptake_dataset(alpha_dat, state_1 = "Alpha_KSCN", state_2 = "ALPHA_Gamma") plot_differential(diff_p_uptake_dat = diff_p_uptake_dat, all_times = TRUE, show_tstud_confidence = TRUE) plot_differential(diff_p_uptake_dat = diff_p_uptake_dat, all_times = FALSE, time_t = 0.167, show_tstud_confidence = TRUE, show_houde_interval = TRUE) plot_differential(diff_p_uptake_dat = diff_p_uptake_dat, show_tstud_confidence = TRUE, show_houde_interval = TRUE, all_times = FALSE) plot_differential(diff_p_uptake_dat = diff_p_uptake_dat, show_tstud_confidence = TRUE, show_houde_interval = TRUE, all_times = FALSE, hide_houde_insignificant = TRUE) plot_differential(diff_p_uptake_dat = diff_p_uptake_dat, show_tstud_confidence = TRUE, show_houde_interval = TRUE, all_times = FALSE, hide_houde_insignificant = TRUE, hide_tstud_insignificant = TRUE)
Butterfly plot of differential deuterium uptake values between two biological states in time.
plot_differential_butterfly( diff_uptake_dat = NULL, diff_p_uptake_dat = NULL, theoretical = FALSE, fractional = FALSE, show_houde_interval = FALSE, show_tstud_confidence = FALSE, uncertainty_type = "ribbon", confidence_level = 0.98, interactive = getOption("hadex_use_interactive_plots") )plot_differential_butterfly( diff_uptake_dat = NULL, diff_p_uptake_dat = NULL, theoretical = FALSE, fractional = FALSE, show_houde_interval = FALSE, show_tstud_confidence = FALSE, uncertainty_type = "ribbon", confidence_level = 0.98, interactive = getOption("hadex_use_interactive_plots") )
diff_uptake_dat |
data produced by |
diff_p_uptake_dat |
differential uptake data
alongside the P-value as calculated by
|
theoretical |
|
fractional |
|
show_houde_interval |
|
show_tstud_confidence |
|
uncertainty_type |
type of presenting uncertainty, possible values: "ribbon", "bars" or "bars + line" |
confidence_level |
confidence level for the test, from range [0, 1] Important if selected show_confidence_limit |
interactive |
|
Function plot_differential_butterfly generates
differential butterfly plot based on provided data and parameters. On X-axis
there is peptide ID. On the Y-axis there is deuterium uptake difference in
chosen form. Data from multiple time points of measurement is presented.
If chosen, there are confidence limits based on Houde test on provided
confidence level.
a [ggplot2::ggplot()] object.
Houde, D., Berkowitz, S.A., and Engen, J.R. (2011). The Utility of Hydrogen/Deuterium Exchange Mass Spectrometry in Biopharmaceutical Comparability Studies. J Pharm Sci 100, 2071–2086.
read_hdx
create_diff_uptake_dataset
calculate_diff_uptake
diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) plot_differential_butterfly(diff_uptake_dat = diff_uptake_dat) plot_differential_butterfly(diff_uptake_dat = diff_uptake_dat, show_houde_interval = TRUE) diff_p_uptake_dat <- create_p_diff_uptake_dataset(alpha_dat) plot_differential_butterfly(diff_p_uptake_dat = diff_p_uptake_dat, show_tstud_confidence = TRUE)diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) plot_differential_butterfly(diff_uptake_dat = diff_uptake_dat) plot_differential_butterfly(diff_uptake_dat = diff_uptake_dat, show_houde_interval = TRUE) diff_p_uptake_dat <- create_p_diff_uptake_dataset(alpha_dat) plot_differential_butterfly(diff_p_uptake_dat = diff_p_uptake_dat, show_tstud_confidence = TRUE)
Chiclet plot of differential deuterium uptake values between two biological states in time.
plot_differential_chiclet( diff_uptake_dat = NULL, diff_p_uptake_dat = NULL, theoretical = FALSE, fractional = FALSE, show_houde_interval = FALSE, show_tstud_confidence = FALSE, confidence_level = 0.98, show_uncertainty = FALSE, interactive = getOption("hadex_use_interactive_plots") )plot_differential_chiclet( diff_uptake_dat = NULL, diff_p_uptake_dat = NULL, theoretical = FALSE, fractional = FALSE, show_houde_interval = FALSE, show_tstud_confidence = FALSE, confidence_level = 0.98, show_uncertainty = FALSE, interactive = getOption("hadex_use_interactive_plots") )
diff_uptake_dat |
data produced by |
diff_p_uptake_dat |
differential uptake data
alongside the P-value as calculated by
|
theoretical |
|
fractional |
|
show_houde_interval |
|
show_tstud_confidence |
|
confidence_level |
confidence level for the test, from range [0, 1] Important if selected show_confidence_limit |
show_uncertainty |
|
interactive |
|
Function plot_differential_chiclet generates
chiclet differential plot based on provided data and parameters.
On X-axis there is a peptide ID. On Y-axis are time points
of measurement. Each tile for a peptide in time has a color value
representing the deuterium uptake difference between chosen states,
in a form based on provided criteria (e.q. fractional). Each tile has
a plus sign, which size represent the uncertainty of measurement for
chosen value.
a [ggplot2::ggplot()] object.
create_diff_uptake_dataset
calculate_diff_uptake
diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) plot_differential_chiclet(diff_uptake_dat) plot_differential_chiclet(diff_uptake_dat, show_houde_interval = TRUE) diff_p_uptake_dat <- create_p_diff_uptake_dataset(alpha_dat) plot_differential_chiclet(diff_p_uptake_dat = diff_p_uptake_dat, show_tstud_confidence = TRUE) plot_differential_chiclet(diff_p_uptake_dat = diff_p_uptake_dat, show_tstud_confidence = TRUE, show_houde_interval = TRUE)diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) plot_differential_chiclet(diff_uptake_dat) plot_differential_chiclet(diff_uptake_dat, show_houde_interval = TRUE) diff_p_uptake_dat <- create_p_diff_uptake_dataset(alpha_dat) plot_differential_chiclet(diff_p_uptake_dat = diff_p_uptake_dat, show_tstud_confidence = TRUE) plot_differential_chiclet(diff_p_uptake_dat = diff_p_uptake_dat, show_tstud_confidence = TRUE, show_houde_interval = TRUE)
Differential uptake curve for one peptide between two biological states.
plot_differential_uptake_curve( diff_uptake_dat = NULL, diff_p_uptake_dat = NULL, sequence = NULL, theoretical = FALSE, fractional = FALSE, uncertainty_type = "ribbon", log_x = TRUE, show_houde_interval = FALSE, show_tstud_confidence = FALSE, interactive = getOption("hadex_use_interactive_plots") )plot_differential_uptake_curve( diff_uptake_dat = NULL, diff_p_uptake_dat = NULL, sequence = NULL, theoretical = FALSE, fractional = FALSE, uncertainty_type = "ribbon", log_x = TRUE, show_houde_interval = FALSE, show_tstud_confidence = FALSE, interactive = getOption("hadex_use_interactive_plots") )
diff_uptake_dat |
produced by |
diff_p_uptake_dat |
differential uptake data
alongside the P-value as calculated by
|
sequence |
sequence of chosen peptide |
theoretical |
|
fractional |
|
uncertainty_type |
type of presenting uncertainty, possible values: "ribbon", "bars" or "bars + line" |
log_x |
|
show_houde_interval |
|
show_tstud_confidence |
|
interactive |
|
This plot shows the differential deuterium uptake between two biological states for selected peptides in different time points. The possibility to plot multiple differences (between state and mutant) for the peptide will be added soon.
a ggplot object.
read_hdx
create_diff_uptake_dataset
calculate_diff_uptake
diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) plot_differential_uptake_curve(diff_uptake_dat = diff_uptake_dat, sequence = "GDLKSPAGL") diff_p_uptake_dat <- create_p_diff_uptake_dataset(alpha_dat) plot_differential_uptake_curve(diff_p_uptake_dat = diff_p_uptake_dat, sequence = "GDLKSPAGL", show_houde_interval = TRUE) plot_differential_uptake_curve(diff_p_uptake_dat = diff_p_uptake_dat, sequence = "GDLKSPAGL", show_houde_interval = TRUE, show_tstud_confidence = TRUE) plot_differential_uptake_curve(diff_p_uptake_dat = diff_p_uptake_dat, sequence = "GDLKSPAGL", show_tstud_confidence = TRUE)diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) plot_differential_uptake_curve(diff_uptake_dat = diff_uptake_dat, sequence = "GDLKSPAGL") diff_p_uptake_dat <- create_p_diff_uptake_dataset(alpha_dat) plot_differential_uptake_curve(diff_p_uptake_dat = diff_p_uptake_dat, sequence = "GDLKSPAGL", show_houde_interval = TRUE) plot_differential_uptake_curve(diff_p_uptake_dat = diff_p_uptake_dat, sequence = "GDLKSPAGL", show_houde_interval = TRUE, show_tstud_confidence = TRUE) plot_differential_uptake_curve(diff_p_uptake_dat = diff_p_uptake_dat, sequence = "GDLKSPAGL", show_tstud_confidence = TRUE)
Manhattan plot with p-values from the t-Student test and peptide position.
plot_manhattan( p_dat, skip_amino = 0, plot_title = NULL, separate_times = TRUE, times = NULL, confidence_level = NULL, show_confidence_limit = TRUE, show_peptide_position = FALSE, interactive = getOption("hadex_use_interactive_plots") )plot_manhattan( p_dat, skip_amino = 0, plot_title = NULL, separate_times = TRUE, times = NULL, confidence_level = NULL, show_confidence_limit = TRUE, show_peptide_position = FALSE, interactive = getOption("hadex_use_interactive_plots") )
p_dat |
data produced by the |
skip_amino |
|
plot_title |
title for the plot. If not provided, it is constructed in a form: "Differences between state_1 and state_2" |
separate_times |
|
times |
vector of time points of measurements to be included in the plot. |
confidence_level |
confidence level for the test, from range [0, 1]. |
show_confidence_limit |
logical, indicates if the hybrid testing confidence intervals are shown. |
show_peptide_position |
|
interactive |
|
The manhattan plot presents the P-values from t-student test, to see the regions of the protein with statistically significant changes between two biological states. On X-axis there is a position in a sequence, with length of a segment of each peptide representing its length. On Y-axis there is P-value from t-Student test.
a ggplot object.
Hageman, T. S. & Weis, D. D. Reliable Identification of Significant Differences in Differential Hydrogen Exchange-Mass Spectrometry Measurements Using a Hybrid Significance Testing Approach. Anal Chem 91, 8008–8016 (2019).
read_hdx
create_p_diff_uptake_dataset
p_dat <- create_p_diff_uptake_dataset(alpha_dat) plot_manhattan(p_dat) plot_manhattan(p_dat, separate_times = FALSE) plot_manhattan(p_dat, show_peptide_position = TRUE, separate_times = FALSE) plot_manhattan(p_dat, separate_times = FALSE, show_confidence_limit = FALSE)p_dat <- create_p_diff_uptake_dataset(alpha_dat) plot_manhattan(p_dat) plot_manhattan(p_dat, separate_times = FALSE) plot_manhattan(p_dat, show_peptide_position = TRUE, separate_times = FALSE) plot_manhattan(p_dat, separate_times = FALSE, show_confidence_limit = FALSE)
Generates overlapping peptide plot based on supplied data and parameters.
plot_overlap(dat, protein = dat[["Protein"]][1], state = dat[["State"]][1])plot_overlap(dat, protein = dat[["Protein"]][1], state = dat[["State"]][1])
dat |
data imported by the |
protein |
protein included in calculations |
state |
state included in calculations |
The overlap plot presents all the peptides in given state on the protein sequence. This plot is visible in GUI.
a ggplot object.
plot_overlap(alpha_dat)plot_overlap(alpha_dat)
Generates overlap distribution plot based on supplied data and parameters.
plot_overlap_distribution( overlap_dist_dat, start = 1, end = max(overlap_dist_dat[["pos"]]), interactive = getOption("hadex_use_interactive_plots") )plot_overlap_distribution( overlap_dist_dat, start = 1, end = max(overlap_dist_dat[["pos"]]), interactive = getOption("hadex_use_interactive_plots") )
overlap_dist_dat |
produced by |
start |
start start position of chosen protein. |
end |
end position of chosen protein. |
interactive |
|
This plot presents how many times (by how many peptides) a amino position in protein sequence is covered. This plot is visible in GUI.
a ggplot object.
read_hdx
reconstruct_sequence
create_overlap_distribution_dataset
overlap_dist_dat <- create_overlap_distribution_dataset(alpha_dat) plot_overlap_distribution(overlap_dist_dat)overlap_dist_dat <- create_overlap_distribution_dataset(alpha_dat) plot_overlap_distribution(overlap_dist_dat)
Plot the charge measurements from replicates for peptide in specific time point.
plot_peptide_charge_measurement( dat, protein = dat[["Protein"]][1], state = dat[["State"]][1], sequence = dat[["Sequence"]][1], time_t = unique(dat[["Exposure"]])[3] )plot_peptide_charge_measurement( dat, protein = dat[["Protein"]][1], state = dat[["State"]][1], sequence = dat[["Sequence"]][1], time_t = unique(dat[["Exposure"]])[3] )
dat |
data as imported by the |
protein |
chosen protein. |
state |
biological state for chosen protein. |
sequence |
sequence of chosen peptide. |
time_t |
time point of the measurement. |
This function shows the measurements of charge from different replicates for specific peptide in specific state in specific time point of measurement on the plot.
a [ggplot2::ggplot()] object.
read_hdx
show_peptide_charge_measurement
plot_peptide_charge_measurement(alpha_dat)plot_peptide_charge_measurement(alpha_dat)
Plot the mass measurements from replicates for peptide in specific time point.
plot_peptide_mass_measurement( dat, protein = dat[["Protein"]][1], state = dat[["State"]][1], sequence = dat[["Sequence"]][1], show_charge_values = TRUE, time_t = unique(dat[["Exposure"]])[3], interactive = getOption("hadex_use_interactive_plots") )plot_peptide_mass_measurement( dat, protein = dat[["Protein"]][1], state = dat[["State"]][1], sequence = dat[["Sequence"]][1], show_charge_values = TRUE, time_t = unique(dat[["Exposure"]])[3], interactive = getOption("hadex_use_interactive_plots") )
dat |
data produced by
|
protein |
chosen protein |
state |
biological state for chosen protein |
sequence |
sequence of chosen peptide |
show_charge_values |
|
time_t |
chosen time point |
interactive |
|
This function shows the measurements of mass from different replicates for specific peptide in specific state in specific time point of measurement on the plot. Moreover, on the plot is shown the average mass from the replicates, used later in calculations. The ribbon next to the dotted average mass indicates the uncertainty.
a [ggplot2::ggplot()] object.
read_hdx
calculate_exp_masses_per_replicate
calculate_exp_masses
calculate_state_uptake
calculate_diff_uptake
plot_peptide_mass_measurement(alpha_dat, sequence = "FGSDDEEESEEAKRLRE") plot_peptide_mass_measurement(alpha_dat, sequence = "FGSDDEEESEEAKRLRE", show_charge_values = FALSE)plot_peptide_mass_measurement(alpha_dat, sequence = "FGSDDEEESEEAKRLRE") plot_peptide_mass_measurement(alpha_dat, sequence = "FGSDDEEESEEAKRLRE", show_charge_values = FALSE)
Plot the frequency of coverage for protein sequence
plot_position_frequency( dat, protein = dat[["Protein"]][1], state = dat[["State"]][1] )plot_position_frequency( dat, protein = dat[["Protein"]][1], state = dat[["State"]][1] )
dat |
data as imported by the |
protein |
selected protein |
state |
selected biological state for given protein |
The function plot_position_frequency generates a
histogram of the coverage frequency in selected biological states
for selected protein.
The position frequency plot presents how many times each position of
the sequence is covered by different peptides.
a ggplot object.
plot_position_frequency(alpha_dat)plot_position_frequency(alpha_dat)
Generates quality control plot based on supplied data.
plot_quality_control(qc_dat)plot_quality_control(qc_dat)
qc_dat |
data produced by |
This plot presents the mean uncertainty in function of selected maximal exchange control time of measurement. This plot is visible in GUI.
a [ggplot2::ggplot()] object.
create_quality_control_dataset
show_quality_control_data
qc_dat <- create_quality_control_dataset(alpha_dat) plot_quality_control(qc_dat)qc_dat <- create_quality_control_dataset(alpha_dat) plot_quality_control(qc_dat)
Plot histogram on number of replicates per peptide in one or multiple time point of measurement.
plot_replicate_histogram( rep_dat, time_points = FALSE, interactive = getOption("hadex_use_interactive_plots") )plot_replicate_histogram( rep_dat, time_points = FALSE, interactive = getOption("hadex_use_interactive_plots") )
rep_dat |
replicate data, created by
|
time_points |
|
interactive |
|
The function shows three versions of replicate
histogram, based on supplied rep_dat and time_points.
If time_points is selected, the histogram shows the number
of replicates for time points of measurement, to spot
if there were troubles with samples for specific time point of
measurement. Then, on the X-axis is Exposure (in minutes) and
on the Y-axis number of replicates.
If time_points is not selected, on the X-axis there are
peptide ID, and on the Y-axis there are numbers of replicates.
If rep_dat contains data from one time point
of measurement, the histogram colors reflect the
number of replicates to highlight the outliers.
If rep_dat contains multiple time point of
measurement, the colors help to distinguish between
them.
a [ggplot2::ggplot()] object.
create_replicate_dataset
show_replicate_histogram_data
rep_dat <- create_replicate_dataset(alpha_dat) plot_replicate_histogram(rep_dat) plot_replicate_histogram(rep_dat, time_points = TRUE) rep_dat <- create_replicate_dataset(alpha_dat, time_t = 0.167) plot_replicate_histogram(rep_dat)rep_dat <- create_replicate_dataset(alpha_dat) plot_replicate_histogram(rep_dat) plot_replicate_histogram(rep_dat, time_points = TRUE) rep_dat <- create_replicate_dataset(alpha_dat, time_t = 0.167) plot_replicate_histogram(rep_dat)
Plot the mass uptake curve for selected peptide to see the difference between replicates.
plot_replicate_mass_uptake( dat, protein = dat[["Protein"]][1], state = dat[["State"]][1], sequence = dat[["Sequence"]][1], aggregated = FALSE, log_x = TRUE, interactive = getOption("hadex_use_interactive_plots") )plot_replicate_mass_uptake( dat, protein = dat[["Protein"]][1], state = dat[["State"]][1], sequence = dat[["Sequence"]][1], aggregated = FALSE, log_x = TRUE, interactive = getOption("hadex_use_interactive_plots") )
dat |
data imported by the |
protein |
selected protein |
state |
selected biological state for given protein |
sequence |
selected peptide sequence for given protein in given biological state |
aggregated |
|
log_x |
|
interactive |
|
The function plot_replicate_mass_uptake
generates a plot showing the mass uptake for selected protein
in replicates of the experiments. The values can be presented
in two ways: as aggregated values for each replicate, or before
aggregation - measured values for charge values within a replicate.
The mass uptake is generated by subtracting the MHP mass of a peptide
from measured mass and the mass uptake is presented in Daltons.
a ggplot object.
read_hdx
calculate_exp_masses_per_replicate
plot_replicate_mass_uptake(alpha_dat) plot_replicate_mass_uptake(alpha_dat, aggregated = TRUE)plot_replicate_mass_uptake(alpha_dat) plot_replicate_mass_uptake(alpha_dat, aggregated = TRUE)
Comparison plot of deuterium uptake values in time point for biological states.
plot_state_comparison( uptake_dat, skip_amino = 0, theoretical = FALSE, fractional = FALSE, line_size = 1.5, all_times = FALSE, time_t = NULL, interactive = getOption("hadex_use_interactive_plots") )plot_state_comparison( uptake_dat, skip_amino = 0, theoretical = FALSE, fractional = FALSE, line_size = 1.5, all_times = FALSE, time_t = NULL, interactive = getOption("hadex_use_interactive_plots") )
uptake_dat |
data produced by |
skip_amino |
|
theoretical |
|
fractional |
|
line_size |
line size for the plot |
all_times |
|
time_t |
chosen time point |
interactive |
|
The function plot_state_comparison generates
a comparison plot, presenting deuterium uptake values of peptides
from selected protein in selected biological states at one time point
of measurement at once.
On X-axis there is a position in a sequence, with length of a segment
of each peptide representing its length. On Y-axis there
is deuterium uptake in selected form. Error bars represents the combined
and propagated uncertainty.
a ggplot object
read_hdx
calculate_state_uptake
uptake_dat <- calculate_state_uptake(alpha_dat) plot_state_comparison(uptake_dat) plot_state_comparison(uptake_dat, all_times = TRUE) plot_state_comparison(uptake_dat, fractional = TRUE, all_times = TRUE)uptake_dat <- calculate_state_uptake(alpha_dat) plot_state_comparison(uptake_dat) plot_state_comparison(uptake_dat, all_times = TRUE) plot_state_comparison(uptake_dat, fractional = TRUE, all_times = TRUE)
Plot the uncertainty of the mass measurements - for aggregated data or before aggregation - to see if there is a region with uncertainty higher than acceptable
plot_uncertainty( dat, protein = dat[["Protein"]][1], state = dat[["State"]][1], skip_amino = 0, aggregated = TRUE, separate_times = TRUE, show_threshold = TRUE, interactive = getOption("hadex_use_interactive_plots") )plot_uncertainty( dat, protein = dat[["Protein"]][1], state = dat[["State"]][1], skip_amino = 0, aggregated = TRUE, separate_times = TRUE, show_threshold = TRUE, interactive = getOption("hadex_use_interactive_plots") )
dat |
data imported by the |
protein |
selected protein |
state |
selected biological state for given protein |
skip_amino |
|
aggregated |
|
separate_times |
|
show_threshold |
|
interactive |
|
The function plot_uncertainty generates
a plot of uncertainty of mass measurement of each peptide from
selected protein in selected biological state. The values can be presented
in two ways: as aggregated values for each replicate, or before
aggregation - measured values for charge values within a replicate.
On X-axis there is a position in a sequence, with length of a segment
of each peptide representing its length. On Y-axis there
is uncertainty of the measurement in Daltons.
The threshold is set to 1 Da, as this value is associated with exchange.
a ggplot object.
plot_uncertainty(alpha_dat) plot_uncertainty(alpha_dat, aggregated = FALSE) plot_uncertainty(alpha_dat, aggregated = FALSE, separate_times = FALSE) plot_uncertainty(alpha_dat, skip_amino = 1)plot_uncertainty(alpha_dat) plot_uncertainty(alpha_dat, aggregated = FALSE) plot_uncertainty(alpha_dat, aggregated = FALSE, separate_times = FALSE) plot_uncertainty(alpha_dat, skip_amino = 1)
Plot deuterium uptake curve for selected peptides
plot_uptake_curve( uc_dat, theoretical = FALSE, fractional = FALSE, uncertainty_type = "ribbon", log_x = TRUE, interactive = getOption("hadex_use_interactive_plots") )plot_uptake_curve( uc_dat, theoretical = FALSE, fractional = FALSE, uncertainty_type = "ribbon", log_x = TRUE, interactive = getOption("hadex_use_interactive_plots") )
uc_dat |
data produced by |
theoretical |
|
fractional |
|
uncertainty_type |
type of uncertainty presentation, possible values: "ribbon", "bars" or "bars + line" |
log_x |
|
interactive |
|
The function plot_uptake_curve generates
the deuterium uptake curve for selected peptides
from selected protein.
On X-axis there are time points of measurements. On Y-axis there
is deuterium uptake in selected form. The combined and propagated
uncertainty can be presented as ribbons or error bars.
a ggplot object.
read_hdx
calculate_kinetics
calculate_peptide_kinetics
create_kinetic_dataset
uc_dat <- calculate_kinetics(alpha_dat, protein = "db_eEF1Ba", sequence = "GFGDLKSPAGL", state = "Alpha_KSCN", start = 1, end = 11, time_0 = 0, time_100 = 1440) plot_uptake_curve(uc_dat = uc_dat, theoretical = FALSE, fractional = TRUE)uc_dat <- calculate_kinetics(alpha_dat, protein = "db_eEF1Ba", sequence = "GFGDLKSPAGL", state = "Alpha_KSCN", start = 1, end = 11, time_0 = 0, time_100 = 1440) plot_uptake_curve(uc_dat = uc_dat, theoretical = FALSE, fractional = TRUE)
Volcano plot for differential deuterium uptake between two biological states
plot_volcano( p_dat, state_1 = "", state_2 = "", adjust_axes = TRUE, show_confidence_limits = FALSE, confidence_level = 0.98, color_times = TRUE, show_insignificant_grey = FALSE, hide_insignificant = FALSE, fractional = FALSE, theoretical = FALSE, interactive = getOption("hadex_use_interactive_plots") )plot_volcano( p_dat, state_1 = "", state_2 = "", adjust_axes = TRUE, show_confidence_limits = FALSE, confidence_level = 0.98, color_times = TRUE, show_insignificant_grey = FALSE, hide_insignificant = FALSE, fractional = FALSE, theoretical = FALSE, interactive = getOption("hadex_use_interactive_plots") )
p_dat |
data produced by the |
state_1 |
selected biological state for given protein |
state_2 |
selected biological state for given protein |
adjust_axes |
|
show_confidence_limits |
|
confidence_level |
confidence level for the test, from range [0, 1]. It should be the same as used to prepare p_dat |
color_times |
|
show_insignificant_grey |
|
hide_insignificant |
|
fractional |
|
theoretical |
|
interactive |
|
The function plot_volcano generates the
volcano plot based on supplied p_dat.
On X-axis there is differential deuterium uptake in selected form.
On Y-axis there is the P-value from t-Student test between two
biological states. Based on selected confidence level, the confidence
limits are calculated to indicate statistically significant values -
shown as red dotted lines. The values that are in upper left and right
corners pass the hybrid test.
a ggplot object.
Hageman, T. S. & Weis, D. D. Reliable Identification of Significant Differences in Differential Hydrogen Exchange-Mass Spectrometry Measurements Using a Hybrid Significance Testing Approach. Anal Chem 91, 8008–8016 (2019).
Houde, D., Berkowitz, S.A., and Engen, J.R. (2011). The Utility of Hydrogen/Deuterium Exchange Mass Spectrometry in Biopharmaceutical Comparability Studies. J Pharm Sci 100, 2071–2086.
p_dat <- create_p_diff_uptake_dataset(alpha_dat) plot_volcano(p_dat, show_confidence_limits = TRUE) plot_volcano(p_dat, show_confidence_limits = TRUE, show_insignificant_grey = TRUE) plot_volcano(p_dat, show_confidence_limits = TRUE, hide_insignificant = TRUE)p_dat <- create_p_diff_uptake_dataset(alpha_dat) plot_volcano(p_dat, show_confidence_limits = TRUE) plot_volcano(p_dat, show_confidence_limits = TRUE, show_insignificant_grey = TRUE) plot_volcano(p_dat, show_confidence_limits = TRUE, hide_insignificant = TRUE)
This function produces the data in format suitable for HDX-Viewer. If necessary, this result can be downloaded as the csv file with download indicator set to true.
prepare_hdxviewer_export( x_dat, differential = FALSE, fractional = TRUE, theoretical = FALSE, download = FALSE, file_path = tempdir() )prepare_hdxviewer_export( x_dat, differential = FALSE, fractional = TRUE, theoretical = FALSE, download = FALSE, file_path = tempdir() )
x_dat |
one state deuterium uptake data or differential uptake data |
differential |
indicator of x_dat type |
fractional |
indicator if fractional values are used |
theoretical |
indicator if theoretical values are used |
download |
indicator if the result should be downloaded as csv file |
file_path |
path for saving downloaded file |
a data.frame object
# disabled due to long execution time kin_dat <- create_uptake_dataset(alpha_dat, states = "Alpha_KSCN" ) aggregated_dat <- create_aggregated_uptake_dataset(kin_dat) diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) diff_aggregated_dat <- create_aggregated_diff_uptake_dataset(diff_uptake_dat) prepare_hdxviewer_export(aggregated_dat, differential = FALSE) # prepare_hdxviewer_export(aggregated_dat, differential = TRUE) # shouldnt work prepare_hdxviewer_export(diff_aggregated_dat, differential = TRUE) # prepare_hdxviewer_export(aggregated_dat, differential = FALSE, download = TRUE) # writes a file# disabled due to long execution time kin_dat <- create_uptake_dataset(alpha_dat, states = "Alpha_KSCN" ) aggregated_dat <- create_aggregated_uptake_dataset(kin_dat) diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) diff_aggregated_dat <- create_aggregated_diff_uptake_dataset(diff_uptake_dat) prepare_hdxviewer_export(aggregated_dat, differential = FALSE) # prepare_hdxviewer_export(aggregated_dat, differential = TRUE) # shouldnt work prepare_hdxviewer_export(diff_aggregated_dat, differential = TRUE) # prepare_hdxviewer_export(aggregated_dat, differential = FALSE, download = TRUE) # writes a file
Import HDX-MS datafile and validate its content
read_hdx(filename, separator = ",")read_hdx(filename, separator = ",")
filename |
a file supplied by the user. Formats allowed: .csv, .xlsx and .xls. |
separator |
a value separating the columns. |
The function read_hdx generates a
dataset read from the supplied datafile. The files produced
by DynamX 3.0 or 2.0 in 'cluster data' format and 'tables'
file from HDeXaminer are handled.
Moreover, the data should include at least two replicates
of the experiment to calculate the uncertainty of the measurement.
For the files of HDeXaminer origin, the rows with no complete
information (e.q. missing 'Exp Cent' value) are removed. The 'Confidence'
column is preserved as the user should have impact on accepting rows based
on their Confidence flag. Moreover, those files need action from the user
- to confirm data processing (e.q. FD time point), choose accepted
confidence values and make some change of the labels using
update_hdexaminer_file function.
For further information check the documentation.
IMPORTANT! The files of HDeXaminer origin MUST be processed by
hand or by update_hdexaminer_file function to fit
the input of processing functions e.q. calculate_state_uptake
or calculate_diff_uptake.
a data.frame object
update_hdexaminer_file
create_control_dataset
calculate_state_uptake
dat <- read_hdx(system.file(package = "HaDeX2", "HaDeX/data/alpha.csv")) head(dat)dat <- read_hdx(system.file(package = "HaDeX2", "HaDeX/data/alpha.csv")) head(dat)
Reconstruct protein sequence from experimental data
reconstruct_sequence( dat, protein = dat[["Protein"]][1], states = unique(dat[["State"]]), end = NULL )reconstruct_sequence( dat, protein = dat[["Protein"]][1], states = unique(dat[["State"]]), end = NULL )
dat |
data read by |
protein |
selected protein |
states |
selected biological states for given protein |
end |
|
The function reconstruct_sequence
generates protein sequence from supplied experimental data.
For a position not covered, letter x is shown.
If the C-terminus of protein is not covered, there is a
possibility to manually fix the protein length by passing
a value to the 'end' parameter.
a character object.
reconstruct_sequence(alpha_dat)reconstruct_sequence(alpha_dat)
Function plots the aggregated uptake data with regard to submitted parameters in a friendly form. Designed for GUI.
show_aggregated_uptake_data( aggregated_dat, differential = FALSE, fractional = TRUE, theoretical = FALSE )show_aggregated_uptake_data( aggregated_dat, differential = FALSE, fractional = TRUE, theoretical = FALSE )
aggregated_dat |
aggregated uptake data |
differential |
indicator if the aggregated_dat is single-state or differential |
fractional |
|
theoretical |
|
a data.frame object
# disabled due to long execution time kin_dat <- create_uptake_dataset(alpha_dat, states = "Alpha_KSCN") aggregated_dat <- create_aggregated_uptake_dataset(kin_dat) show_aggregated_uptake_data(aggregated_dat) diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) aggregated_diff_dat <- create_aggregated_diff_uptake_dataset(diff_uptake_dat) show_aggregated_uptake_data(aggregated_diff_dat, differential = TRUE)# disabled due to long execution time kin_dat <- create_uptake_dataset(alpha_dat, states = "Alpha_KSCN") aggregated_dat <- create_aggregated_uptake_dataset(kin_dat) show_aggregated_uptake_data(aggregated_dat) diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) aggregated_diff_dat <- create_aggregated_diff_uptake_dataset(diff_uptake_dat) show_aggregated_uptake_data(aggregated_diff_dat, differential = TRUE)
This function prepares the data used in coverage heatmap to be shown in user-friendly way.
show_coverage_heatmap_data(x_dat, value = NULL)show_coverage_heatmap_data(x_dat, value = NULL)
x_dat |
data created using calculate_ or create_ function |
value |
value to be presented |
a data.table object
# auc data auc_dat <- calculate_auc(create_uptake_dataset(alpha_dat)) show_coverage_heatmap_data(auc_dat, value = "auc") # back-exchange bex_dat <- calculate_back_exchange(alpha_dat) show_coverage_heatmap_data(bex_dat, value = "back_exchange")# auc data auc_dat <- calculate_auc(create_uptake_dataset(alpha_dat)) show_coverage_heatmap_data(auc_dat, value = "auc") # back-exchange bex_dat <- calculate_back_exchange(alpha_dat) show_coverage_heatmap_data(bex_dat, value = "back_exchange")
Present differential deuterium uptake values in selected form
show_diff_uptake_data( diff_uptake_dat, theoretical = FALSE, fractional = FALSE, renamed = TRUE )show_diff_uptake_data( diff_uptake_dat, theoretical = FALSE, fractional = FALSE, renamed = TRUE )
diff_uptake_dat |
data produced by
|
theoretical |
|
fractional |
|
renamed |
|
The function show_uptake_data generates a subsets
of the diff_uptake_dat based on selected parameters.
The numerical values are rounded to 4 places. The names of columns
are changed to user-friendly ones.
a data.frame object
read_hdx
create_diff_uptake_dataset
diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) head(show_diff_uptake_data(diff_uptake_dat))diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) head(show_diff_uptake_data(diff_uptake_dat))
Present differential deuterium uptake values in selected form, accompanied by the significance
show_diff_uptake_data_confidence( diff_uptake_dat, theoretical = FALSE, fractional = FALSE, confidence_level = 0.98, hybrid = FALSE )show_diff_uptake_data_confidence( diff_uptake_dat, theoretical = FALSE, fractional = FALSE, confidence_level = 0.98, hybrid = FALSE )
diff_uptake_dat |
data produced by |
theoretical |
|
fractional |
|
confidence_level |
confidence level for the test, from range [0, 1]. |
hybrid |
|
The function show_uptake_data generates a subsets
of the uptake dat based on selected parameters. It contains the information
if the value is statistically significant at selected confidence level.
The numerical values are rounded to 4 places. The names of columns
are changed to user-friendly ones.
a data.frame object
create_diff_uptake_dataset
plot_differential
diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) show_diff_uptake_data_confidence(diff_uptake_dat)diff_uptake_dat <- create_diff_uptake_dataset(alpha_dat) show_diff_uptake_data_confidence(diff_uptake_dat)
Presents peptide overlap on protein sequence data, based on the supplied parameters.
show_overlap_data( dat, protein = dat[["Protein"]][1], state = dat[["State"]][1], start = min(dat[["Start"]]), end = max(dat[["End"]]) )show_overlap_data( dat, protein = dat[["Protein"]][1], state = dat[["State"]][1], start = min(dat[["Start"]]), end = max(dat[["End"]]) )
dat |
data imported by the |
protein |
chosen protein. |
state |
biological state for chosen protein. |
start |
start position of chosen protein. |
end |
end position of chosen protein. |
The data frame presents all the peptides in given state, with its start and end position on the protein sequence. This data is available in the GUI.
a data.frame object.
show_overlap_data(alpha_dat)show_overlap_data(alpha_dat)
Present differential deuterium uptake values in selected form
show_p_diff_uptake_data( p_diff_uptake_dat, theoretical = FALSE, fractional = FALSE, renamed = TRUE )show_p_diff_uptake_data( p_diff_uptake_dat, theoretical = FALSE, fractional = FALSE, renamed = TRUE )
p_diff_uptake_dat |
data produced by
|
theoretical |
|
fractional |
|
renamed |
|
The function show_uptake_data generates a subsets
of the diff_uptake_dat based on selected parameters.
The numerical values are rounded to 4 places. The names of columns
are changed to user-friendly ones.
a data.frame object
read_hdx
create_diff_uptake_dataset
p_diff_uptake_dat <- create_p_diff_uptake_dataset(alpha_dat) head(show_p_diff_uptake_data(p_diff_uptake_dat))p_diff_uptake_dat <- create_p_diff_uptake_dataset(alpha_dat) head(show_p_diff_uptake_data(p_diff_uptake_dat))
Show the charge measurements from replicates for peptide in specific time point.
show_peptide_charge_measurement( dat, protein = dat[["Protein"]][1], state = dat[["State"]][1], sequence = dat[["Sequence"]][1], time_t = unique(dat[["Exposure"]])[3] )show_peptide_charge_measurement( dat, protein = dat[["Protein"]][1], state = dat[["State"]][1], sequence = dat[["Sequence"]][1], time_t = unique(dat[["Exposure"]])[3] )
dat |
data as imported by the |
protein |
chosen protein. |
state |
biological state for chosen protein. |
sequence |
sequence of chosen peptide. |
time_t |
time point of the measurement. |
This function shows the measurements of charge from different replicates for specific peptide in specific state in specific time point of measurement.
a data.frame object.
read_hdx
plot_peptide_charge_measurement
show_peptide_charge_measurement(alpha_dat)show_peptide_charge_measurement(alpha_dat)
Show the mass measurements from replicates for peptide in specific time point.
show_peptide_mass_measurement( rep_mass_dat, protein = rep_mass_dat[["Protein"]][1], state = rep_mass_dat[["State"]][1], sequence = rep_mass_dat[["Sequence"]][1], time_t = unique(rep_mass_dat[["Exposure"]])[3] )show_peptide_mass_measurement( rep_mass_dat, protein = rep_mass_dat[["Protein"]][1], state = rep_mass_dat[["State"]][1], sequence = rep_mass_dat[["Sequence"]][1], time_t = unique(rep_mass_dat[["Exposure"]])[3] )
rep_mass_dat |
data produced by
|
protein |
chosen protein. |
state |
biological state for chosen protein. |
sequence |
sequence of chosen peptide. |
time_t |
time point of the measurement. |
This function shows the measurements of mass from different replicates for specific peptide in specific state in specific time point of measurement.
a data.frame object.
read_hdx
calculate_exp_masses_per_replicate
calculate_exp_masses
calculate_state_uptake
calculate_diff_uptake
rep_mass_dat <- calculate_exp_masses_per_replicate(alpha_dat) show_peptide_mass_measurement(rep_mass_dat)rep_mass_dat <- calculate_exp_masses_per_replicate(alpha_dat) show_peptide_mass_measurement(rep_mass_dat)
Generates quality control data, based on the supplied parameters.
show_quality_control_data(qc_dat)show_quality_control_data(qc_dat)
qc_dat |
data produced by |
This data frame presents the mean uncertainty in function of selected maximal exchange control time of measurement. This data is available in the GUI.
a data.frame object.
create_quality_control_dataset
plot_quality_control
qc_dat <- create_quality_control_dataset(alpha_dat) show_quality_control_data(qc_dat)qc_dat <- create_quality_control_dataset(alpha_dat) show_quality_control_data(qc_dat)
Show histogram data on number of replicates per peptide in one or multiple time point of measurement.
show_replicate_histogram_data(rep_dat)show_replicate_histogram_data(rep_dat)
rep_dat |
replicate data, created by
|
The function shows the information about number of replicates for peptides in one or multiple time point of measurement, depends on supplied data.
a data.frame object.
create_replicate_dataset
plot_replicate_histogram
rep_dat <- create_replicate_dataset(alpha_dat) show_replicate_histogram_data(rep_dat)rep_dat <- create_replicate_dataset(alpha_dat) show_replicate_histogram_data(rep_dat)
Show summary table
show_summary_data( dat, confidence_level = "", protein_length = max(dat[["End"]]) )show_summary_data( dat, confidence_level = "", protein_length = max(dat[["End"]]) )
dat |
data imported by the |
confidence_level |
confidence level for the test, from range [0, 1]. |
protein_length |
the length of the protein sequence |
The format in the table is suggested by the community and should be provided for experimental data.
a data.table object
Masson, G.R., Burke, J.E., Ahn, N.G., Anand, G.S., Borchers, C., Brier, S., Bou-Assaf, G.M., Engen, J.R., Englander, S.W., Faber, J., et al. (2019). Recommendations for performing, interpreting and reporting hydrogen deuterium exchange mass spectrometry (HDX-MS) experiments. Nat Methods 16, 595–602
show_summary_data(alpha_dat)show_summary_data(alpha_dat)
Present deuterium uptake curve data
show_uc_data(uc_dat, theoretical = FALSE, fractional = FALSE)show_uc_data(uc_dat, theoretical = FALSE, fractional = FALSE)
uc_dat |
calculated kinetic data by |
theoretical |
|
fractional |
|
The function show_uptake_data generates a subsets
of the uc_dat based on selected parameters.
The numerical values are rounded to 4 places. The names of columns
are changed to user-friendly ones.
a data.frame object
read_hdx
calculate_kinetics
calculate_peptide_kinetics
uc_dat <- calculate_kinetics(alpha_dat, sequence = "GFGDLKSPAGL", state = "ALPHA_Gamma", start = 1, end = 11) show_uc_data(uc_dat)uc_dat <- calculate_kinetics(alpha_dat, sequence = "GFGDLKSPAGL", state = "ALPHA_Gamma", start = 1, end = 11) show_uc_data(uc_dat)
Present deuterium uptake values in selected form
show_uptake_data( uptake_dat, theoretical = FALSE, fractional = FALSE, renamed = TRUE )show_uptake_data( uptake_dat, theoretical = FALSE, fractional = FALSE, renamed = TRUE )
uptake_dat |
data produced by |
theoretical |
|
fractional |
|
renamed |
|
The function show_uptake_data generates a subsets
of the uptake_dat based on selected parameters.
The numerical values are rounded to 4 places. The names of columns
are changed to user-friendly ones.
a data.frame object
read_hdx
create_uptake_dataset
uptake_dat <- create_uptake_dataset(alpha_dat) show_uptake_data(uptake_dat)uptake_dat <- create_uptake_dataset(alpha_dat) show_uptake_data(uptake_dat)
Update data from HDeXaminer file
update_hdexaminer_file( dat, fd_time, old_protein_name = NULL, new_protein_name = NULL, old_state_name = NULL, new_state_name = NULL, confidence = c("High", "Medium") )update_hdexaminer_file( dat, fd_time, old_protein_name = NULL, new_protein_name = NULL, old_state_name = NULL, new_state_name = NULL, confidence = c("High", "Medium") )
dat |
data imported by the |
fd_time |
time point [min] for fully deuterated sample |
old_protein_name |
protein name to be changed |
new_protein_name |
new name for old_protein_name |
old_state_name |
state names to be changed |
new_state_name |
new names for old_state_name |
confidence |
vector of accepted confidence values (internal flag from HDeXaminer). By default only accepted values are 'Medium' and 'High', with 'Low' excluded |
The function update_hdexaminer_file
changes the data read from HDeXaminer file.
Data from HDeXaminer is condensed and automated
data retrieving may be corrected by the user.
The original file has a mark "FD" for fully deuterated
data instead of numerical value for time point
(provided in minutes) that is not consistent for workflow
and not enough for precise data description.
Moreover, the data about both protein and state is included
in one column and for detailed information
function update_hdexaminer_file allows to change them.
a data.frame object
read_hdx
calculate_kinetics
plot_coverage
plot_position_frequency
reconstruct_sequence