Defines functions is_protein_name_line

Documented in is_protein_name_line

#' Is the line of text the name of a protein, as used within
#' a FASTA filename?
#' @param line line of text from a FASTA filename
#' @return \link{TRUE} if the line can be the name of a protein in a FASTA file
#' @examples
#' is_protein_name_line(">5H2A_CRIGR")
#' @author Richèl J.C. Bilderbeek
#' @export
is_protein_name_line <- function(line) {
  if (!is.character(line)) return(FALSE)
  substr(line, 1, 1) == ">"

Try the pureseqtmr package in your browser

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

pureseqtmr documentation built on July 30, 2020, 5:13 p.m.