Skip to contents

Align a peptide data to protein sequences for visualization

Usage

protein_map(data = NULL, fasta_path = NULL)

Arguments

data

a tidyproteomics data-object, specifically of peptide origin

fasta_path

a character string representing the path to a fasta file

Value

a list of protein mappings

Examples

library(dplyr, warn.conflicts = FALSE)
library(tidyproteomics)

hela_protein_map <- hela_peptides %>%
   protein_map(fasta = path_to_package_data('fasta'))
#>  Parsing FASTA file human.fasta
#>  Parsing FASTA file human.fasta ... done
#> 
#>  Sequence mapping
#>   Sequence mapping ■■■■■■■■■■■■■■■■                  50% | ETA:  2s
#>   Sequence mapping ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■  100% | ETA:  0s
#>  Sequence mapping

#>  Sequence mapping ... done
#>