R/dat2fasta.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


dat2fasta <- function(dat, outfile = "out.fasta"){
    writeLines(paste(">", as.character(dat$seq.name), "\n", as.character(dat$seq.text), sep = ""), outfile )
    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.