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))
residues <- residue_coverage(annot)
head(residues) protein_id position residue n_peptides
1 sp|A0A075B6I9|LV746_HUMAN 1 M 0
2 sp|A0A075B6I9|LV746_HUMAN 2 A 0
3 sp|A0A075B6I9|LV746_HUMAN 3 W 0
4 sp|A0A075B6I9|LV746_HUMAN 4 T 0
5 sp|A0A075B6I9|LV746_HUMAN 5 P 0
6 sp|A0A075B6I9|LV746_HUMAN 6 L 0