writeFasta: write fasta lists into file

View source: R/writeFasta.R

writeFastaR Documentation

write fasta lists into file

Description

peptides which do not have protein assignment drop out

Usage

writeFasta(file, ...)

Arguments

file

where to write

...

fasta list or single file

Value

writes a file.

Examples

#example how to create a protein db with decoy sequences
library(seqinr)
#library(prozor)
file = system.file("extdata/fgcz_contaminants2021_20210929.fasta.gz",package = "prozor")
fasta = readPeptideFasta(file = file)
revfasta <- reverseSeq(fasta)
decoyDB <- c(fasta,revfasta)
stopifnot(length(decoyDB) == 2 * length(fasta))
## Not run: 
writeFasta(decoyDB, file="test.fasta")

## End(Not run)

protViz/prozor documentation built on Oct. 17, 2023, 6:39 p.m.