R/gnames.fas.R

gnames.fas <-
function(x = NULL)
{
   if(!inherits(x, "fasta")){
   stop("Make sure the data is a fasta object.")}
   if(is.null(x))
   {stop("You have to specify the input data.")}
   result = x[grepl(">", x)]
   result = gsub(">", "", result)
   return(result)
}

Try the seqRFLP package in your browser

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

seqRFLP documentation built on May 2, 2019, 6:02 a.m.