library("prozor")
file <- system.file("extdata/fgcz_contaminants2021_20210929.fasta.gz", package = "prozor")
fasta <- read_fasta(file)[2:3]
names(fasta)[1] "zz|Y-FGCZCont00001|" "zz|Y-FGCZCont00002|"
signal <- data.frame(
Entry = c("Y-FGCZCont00001", "Y-FGCZCont00002"),
Signal.peptide = c("SIGNAL 1 20", "")
)
res <- remove_signal_peptide(fasta, signal)
nchar(fasta[[1]])[1] 148
nchar(res[[1]])[1] 128