R/clean.fasta.name.R

#### author: Jinlong Zhang <jinlongzhang01@gmail.com>
#### institution: Kadoorie Farm and Botanic Garden, Hong Kong
#### package: phylotools
#### URL: http://github.com/helixcn/phylotools
#### date: 26 MAY 2015

clean.fasta.name <- function (infile = NULL, outfile= "name_cleaned.fasta") {
    res <- read.fasta(infile, clean_name = TRUE)
    dat2fasta(res, outfile = outfile)
    #### return(res)
    cat(paste(outfile, "has been saved to ", getwd(), "\n"))
}

Try the phylotools package in your browser

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

phylotools documentation built on May 2, 2019, 3:25 a.m.