R/pymol_str.R

Defines functions pymol_str

Documented in pymol_str

#' Preparatory function writing pymol scripts
#'
#' Function rearrange vector to string by adding + sign between the numbers.
#'
#' @param ind1 vector of numbers (residues)
#' @return string with + as a separator.
#' @examples
#' res<-c(1,5, 19, 100, 109)
#' pymol_str(res)
#' @export
  pymol_str<-function(ind1) {ind2<-paste(as.character(ind1), sep="' '", collapse="+")
  return(ind2)}

Try the HDXBoxeR package in your browser

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

HDXBoxeR documentation built on Sept. 11, 2024, 8:40 p.m.