library("prozor")
file <- system.file("extdata/fgcz_contaminants2021_20210929.fasta.gz", package = "prozor")
fasta <- read_fasta(file)
decoy_db <- c(fasta, reverse_seq(fasta))
out <- tempfile(fileext = ".fasta")
write_fasta(decoy_db, out)
length(read_fasta(out))[1] 998
unlink(out)