write_fasta: write_fasta

Description Usage Arguments Value Examples

View source: R/write_fasta.R

Description

Writes a FASTA file from a vector of sequences

Usage

1
write_fasta(sequences, names, file.out)

Arguments

sequences

A vector of sequences

names

A vector of names corresponding to the sequences

file.out

Name of output FASTA file; a string

Value

writes FASTA file into directory

Examples

1
2
3
4
5
6
7
8
9
sequences<-c(paste0(sample(c("A", "T", "G", "C"), 20, replace = TRUE),
                    collapse = ""),
            paste0(sample(c("A", "T", "G", "C"), 20, replace = TRUE),
                    collapse = ""),
            paste0(sample(c("A", "T", "G", "C"), 20, replace = TRUE),
                    collapse = ""))
write_fasta(sequences,
            c("one", "two", "three"),
            "test.fa")

nearBynding documentation built on Nov. 8, 2020, 8:15 p.m.