if (FALSE) {
sq_dna <- sq(c("ACTGCTG", "CTTAGA", "CCCT", "CTGAATGT"),
alphabet = "dna_bsc")
write_fasta(sq_dna,
c("bat", "cat", "rat", "elephant_swallowed_by_A_snake"),
tempfile())
}
# It can be a part of tidyverse pipeline:
library(dplyr)
fasta_file <- system.file(package = "tidysq", "examples/example_aa.fasta")
read_fasta(fasta_file) %>%
mutate(name = toupper(name)) %>%
write_fasta(tempfile())
Run the code above in your browser using DataLab