This function generates replications of mass spectra that are consistent with common experimental data files
create_experimental_file(
peptides,
times = c(0.167, 1, 5, 25, 1440),
charge,
n_replicates = 3,
mass_deviations = 50,
intensity_deviations = NULL,
file_type = "DynamX"
)
a data frame of sequences (sequence
), Protein
,
and Start
, End
and parameters except times
that can be used for simulating mass spectra.
See simulate_theoretical_spectra
for more details
about the additional parameters.
a vector of times at which deuteration levels will be measured (seconds)
vector of charges of the peptide ion. If NULL, one value is sampled from vector 2:6. Default NULL.
number of technical replicates to create
mass deviation in parts per million. Either a single
number (then the error at each time point will be the same) or a vector of
the same length as number of unique time points in the experiment. The error
will be sampled from normal distribution with standard deviation equal to
optional, standard deviations of random noise
that will be added to intensities. Either a single number (then the error at
each time point will be the same) or a vector of the same length as number of
unique time points in the experiment. The error will be sampled from normal
distribution with these standard deviations.Default NULL
.
the type of file. Default to "DynamX".
data table. The table of HDX-MS results consistent with `file_type` format.
# NOT RUN {
peptides <- data.frame(sequence = c("FPTTKTY", "LVRKDLQN"),
protection_factor = c(10, 100))
create_experimental_file(peptides, charge = 1:3)
# }
Run the code above in your browser using DataLab