View source: R/simulate_HD_exchange.R
get_HD_matrices | R Documentation |
Calculate matrices of simulated exchange required for obtaining empirical distribution.
get_HD_matrices( sequence, transition_probs, experiment_times, times_to_record, n_molecules = 100 )
sequence |
amino acid sequence of a peptide as a character vector |
transition_probs |
list of probabilities of exchange returned by the
|
experiment_times |
numeric vector of times at which exchange will happen |
times_to_record |
numeric vector of times for which deuteration level measurement should be made |
n_molecules |
number of peptide molecules |
At each time point in the time sequence:
change H
to D
with probability P(H -> D) in each entry of
the matrix from the previous iteration,
change D
to H
with probability P(D -> H) in each entry of
the matrix from the previous iteration.
Matrices are stored in a list of matrices (HD_matrices
) -
each matrix for the respective time point of the measurement times
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.