View source: R/check_mhc_haplotype_name.R
check_mhc_haplotype_name | R Documentation |
Check an MHC haplotype name
check_mhc_haplotype_name(mhc_haplotype, ic50_prediction_tool)
mhc_haplotype |
haplotype of either HMC-I or MHC-II. Use get_mhc1_haplotypes to get a list of all MHC-I haplotypes. Use get_mhc2_haplotypes to get a list of all MHC-II haplotypes. |
ic50_prediction_tool |
tool to predict the IC50 from a
peptide. Possible values are:
|
library(bbbq)
# EpitopePrediction can only do MHC-I
check_mhc_haplotype_name(
mhc_haplotype = get_mhc1_haplotypes()[1],
ic50_prediction_tool = "EpitopePrediction"
)
if (netmhc2pan::is_netmhc2pan_installed()) {
# NetMHCIIpan can only do MHC-II
check_mhc_haplotype_name(
mhc_haplotype = get_mhc2_haplotypes()[1],
ic50_prediction_tool = "netmhc2pan"
)
}
if (mhcnuggetsr::is_mhcnuggets_installed()) {
#' # MHCnuggets can do both MHC-I and MHC-II
check_mhc_haplotype_name(
mhc_haplotype = get_mhc1_haplotypes()[1],
ic50_prediction_tool = "mhcnuggetsr"
)
check_mhc_haplotype_name(
mhc_haplotype = get_mhc2_haplotypes()[1],
ic50_prediction_tool = "mhcnuggetsr"
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.