write_fasta {nearBynding} | R Documentation

## write_fasta

### Description

Writes a FASTA file from a vector of sequences

### Usage

    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

    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")

[Package nearBynding version 1.4.0 Index]