predict_counts_per_proteome: Predict counts of one or more proteins and one haplotype

View source: R/predict_counts_per_proteome.R

predict_counts_per_proteomeR Documentation

Predict counts of one or more proteins and one haplotype

Description

Predict the number of binders and the number of binders that overlap with at least one amino acid with a TMH for one or more proteins.

Usage

predict_counts_per_proteome(
  protein_sequences,
  haplotype,
  peptide_length,
  percentile,
  verbose = FALSE,
  ic50_prediction_tool
)

Arguments

protein_sequences

one or more protein sequences

haplotype

one MHC-I or MHC-II haplotype

peptide_length

length of the peptide in amino acids

percentile

how low the IC50 must be for the protein to be considered a binder. For example, 0.02 denotes that the protein must have an IC50 in the lowest 2 percent range. The default value is returned by get_ic50_percentile_binder.

verbose

set to TRUE for more output

ic50_prediction_tool

tool to predict the IC50 from a peptide. Possible values are:

  • mhcnuggetsr mhcnuggetsr, which uses MHCnuggets

  • mhcnuggetsr netmhc2pan, which uses NetMHC2pam

  • EpitopePrediction uses EpitopePrediction

Details

Use predict_counts to predict these counts for one protein.

Value

a tibble with

  1. n_binders number of epitopes that bind

  2. n_binders_tmh number of epitopes that bind and have one amino acid overlapping with a TMH

  3. n_spots number of spots for the n-mer

  4. n_spots_tmh number of spots that have one amino acid overlapping with a TMH

The number of will equal the number of proteins.

Author(s)

Richèl J.C. Bilderbeek

Examples

library(mhcnuggetsr)
library(pureseqtmr)

if (is_pureseqtm_installed()) {

  protein_sequences <- c(
    "SWINGTRANSMITWILLINGFASCINATEARISERISKGRATE",
    "FANTASTICALLYFAMILYVW"
  )

  predict_counts_per_proteome(
    protein_sequences = protein_sequences,
    haplotype = get_mhc1_haplotypes()[1],
    peptide_length = 9,
    percentile = 0.123,
    ic50_prediction_tool = "EpitopePrediction"
  )
}

richelbilderbeek/bbbq documentation built on July 27, 2023, 2:15 a.m.