Other packages > Find by keyword >

MHCtools  

Analysis of MHC Data in Non-Model Species
View on CRAN: Click here


Download and install MHCtools package within the R console
Install from CRAN:
install.packages("MHCtools")

Install from Github:
library("remotes")
install_github("cran/MHCtools")

Install by package version:
library("remotes")
install_version("MHCtools", "1.5.5")



Attach the package and use:
library("MHCtools")
Maintained by
Jacob Roved
[Scholar Profile | Author Map]
First Published: 2017-09-29
Latest Update: 2023-07-08
Description:
Fifteen tools for bioinformatics processing and analysis of major histocompatibility complex (MHC) data. The functions are tailored for amplicon data sets that have been filtered using the dada2 method (for more information on dada2, visit ), but even other types of data sets can be analyzed. The ReplMatch() function matches replicates in data sets in order to evaluate genotyping success. The GetReplTable() and GetReplStats() functions perform such an evaluation. The CreateFas() function creates a fasta file with all the sequences in the data set. The CreateSamplesFas() function creates individual fasta files for each sample in the data set. The DistCalc() function calculates Grantham, Sandberg, or p-distances from pairwise comparisons of all sequences in a data set, and mean distances of all pairwise comparisons within each sample in a data set. The function additionally outputs five tables with physico-chemical z-descriptor values (based on Sandberg et al. 1998) for each amino acid position in all sequences in the data set. These tables may be useful for further downstream analyses, such as estimation of MHC supertypes. The BootKmeans() function is a wrapper for the kmeans() function of the 'stats' package, which allows for bootstrapping. Bootstrapping k-estimates may be desirable in data sets, where e.g. BIC- vs. k-values do not produce clear inflection points ("elbows"). BootKmeans() performs multiple runs of kmeans() and estimates optimal k-values based on a user-defined threshold of BIC reduction. The method is an automated and bootstrapped version of visually inspecting elbow plots of BIC- vs. k-values. The ClusterMatch() function is a tool for evaluating whether different k-means() clustering models identify similar clusters, and summarize bootstrap model stats as means for different estimated values of k. It is designed to take files produced by the BootKmeans() function as input, but other data can be analysed if the descriptions of the required data formats are observed carefully. The PapaDiv() function compares parent pairs in the data set and calculate their joint MHC diversity, taking into account sequence variants that occur in both parents. The HpltFind() function infers putative haplotypes from families in the data set. The GetHpltTable() and GetHpltStats() functions evaluate the accuracy of the haplotype inference. The CreateHpltOccTable() function creates a binary (logical) haplotype-sequence occurrence matrix from the output of HpltFind(), for easy overview of which sequences are present in which haplotypes. The HpltMatch() function compares haplotypes to help identify overlapping and potentially identical types. The NestTablesXL() function translates the output from HpltFind() to an Excel workbook, that provides a convenient overview for evaluation and curating of the inferred putative haplotypes.
How to cite:
Jacob Roved (2017). MHCtools: Analysis of MHC Data in Non-Model Species. R package version 1.5.5, https://cran.r-project.org/web/packages/MHCtools. Accessed 09 Apr. 2025.
Previous versions and publish date:
1.0.0 (2017-09-29 18:50), 1.1.0 (2017-10-23 13:49), 1.1.1 (2019-02-04 22:03), 1.2.0 (2019-08-08 18:40), 1.2.1 (2019-08-11 17:20), 1.3.0 (2020-09-16 10:10), 1.4.0 (2021-09-14 13:10), 1.4.1 (2021-10-11 13:20), 1.4.2 (2022-05-23 20:10), 1.4.3 (2022-08-15 19:40), 1.5.0 (2022-10-19 23:47), 1.5.1 (2023-03-22 17:20), 1.5.2 (2023-07-01 12:30), 1.5.3 (2023-07-08 15:10), 1.5.4 (2025-01-15 14:50)
Other packages that cited MHCtools R package
View MHCtools citation profile
Other R packages that MHCtools depends, imports, suggests or enhances
Complete documentation for MHCtools
Downloads during the last 30 days
03/1003/1103/1203/1303/1403/1503/1603/1703/1803/2003/2103/2203/2303/2403/2503/2603/2703/2803/2903/3003/3104/0104/0204/0304/0404/0504/0604/0704/08Downloads for MHCtools0510152025303540TrendBars

Today's Hot Picks in Authors and Packages

quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
cvmdisc  
Cramer von Mises Tests for Discrete or Grouped Distributions
Implements Cramer-von Mises Statistics for testing fit to (1) fully specified discrete distributions ...
Download / Learn more Package Citations See dependency  
mmb  
Arbitrary Dependency Mixed Multivariate Bayesian Models
Supports Bayesian models with full and partial (hence arbitrary) dependencies between random variab ...
Download / Learn more Package Citations See dependency  
MultSurvTests  
Permutation Tests for Multivariate Survival Analysis
Multivariate version of the two-sample Gehan and logrank tests, as described in L.J Wei & J.M Lachin ...
Download / Learn more Package Citations See dependency  
fisheye  
Transform Base Maps Using Log-Azimuthal Projection
Base maps are transformed to focus on a specific location using an azimuthal logarithmic distance t ...
Download / Learn more Package Citations See dependency  
prettyglm  
Pretty Summaries of Generalized Linear Model Coefficients
One of the main advantages of using Generalised Linear Models is their interpretability. The goal ...
Download / Learn more Package Citations See dependency  

24,012

R Packages

207,311

Dependencies

64,867

Author Associations

24,013

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA