View source: R/pkg_RFmodel_trainer.R
train_RFmodel | R Documentation |
Trains a random forest model using a peptidome with reference information
train_RFmodel(peptidome, reference_name, total_trainingSet)
peptidome |
List of all possible peptide sequences for relevant proteome (total_trainingSet = FALSE) OR a list of peptide sequences in a custom training set (total_trainingSet = TRUE). Must also include peptide n of observations (n_obs_pep) and parent protein n of observations (n_obs_prot) in a desired reference, and peptide missed cleavages. |
reference_name |
Name of reference (same as column names) |
total_trainingSet |
If TRUE, model will be trained on all peptides in a custom input peptidome. If FALSE, peptides will be selected from whole input peptidome to create a training set of 10k peptides (same method as models provided in package). |
RF model for predicting peptide detectability
## Not run:
CPTAC_peptidome <- peptides_inReference(peptidome = SwissProt2018_peptidome,
reference_name = "CPTAC",
pep_reference = CPTAC_exp_counts,
exp_counts_col = "n_obs_pep",
detection_ratio = TRUE)
train_RFmodel(peptidome = CPTAC_peptidome,
reference_name = "CPTAC")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.