library("prozor")
file <- system.file("extdata/IDResults.txt.gz", package = "prozor")
peptides <- unique(utils::read.delim(file)$peptideSeq)
fasta_file <- system.file("p1000_db1_example/Annotation_canSeq.fasta.gz", package = "prozor")
annot <- annotate_peptides(peptides, read_fasta(fasta_file))
coverage <- sequence_coverage(annot)
best <- coverage$protein_id[which.max(coverage$coverage)]
plot_coverage(residue_coverage(annot), best)