R/calc_hydrophobicity.R

Defines functions calc_hydrophobicity

Documented in calc_hydrophobicity

#' Calculate the hydrophobicity
#'
#' @references Osorio, D., Rondon-Villarreal, P. & Torres, R. Peptides: A package for data mining of antimicrobial peptides. The R Journal. 7(1), 4–14 (2015).
#' The imported function originates from the Peptides package (https://github.com/dosorio/Peptides/).
#'
#' @importFrom Peptides hydrophobicity
#'
#' @param seq A protein sequence

calc_hydrophobicity <- function(seq) {
  Hydrophobicity <- hydrophobicity(seq)

  as.data.frame(Hydrophobicity)
}

Try the ampir package in your browser

Any scripts or data that you put into this service are public.

ampir documentation built on June 29, 2021, 9:09 a.m.