Description Usage Arguments Value Examples
View source: R/DATAFRAME_MakeALineForAIsoProt.R
Make a dataframe to be use in a future data table that will represent the protein, the peptides that match this protein, the other proteins matched with these peptides. This function can handle the Canonical form and also the isoforms
1 2 3 4 5 6 | DATAFRAME_MakeALineForAIsoProt(
LeadingRazorProtein,
DT_Peptides,
BS_ProteinBank,
ProteinWidth = 60
)
|
LeadingRazorProtein |
Protein name as displayed in the MaxQuant seach file |
DT_Peptides |
Peptide data table since we are using 'Leading razor protein' and not Leading.razor.protein |
BS_ProteinBank |
AA StringSet protein bank. |
ProteinWidth |
Length of the protein displayed width. expressed in AA |
Dataframe with every elements needed in the displayed data frame Name name of the protein that will be displayed N_Peptides Number of peptides that match this protein PEPTIDES kable HTML ready to print table of the peptide that match this protein N_Match_Proteins Number of differents proteins that match this set of peptides Sequence HTML Ready to print sequence of the protein
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | library(data.table)
library(Biostrings)
library(DT)
PB_FilePath <- system.file("extdata",
"protein_bank.example.fasta",
package = "isoformnspectRe")
ProteinBank<-readAAStringSet(
PB_FilePath
)
P_FilePath <- system.file("extdata",
"peptides.example.txt",
package = "isoformnspectRe")
Peptides<-fread(
P_FilePath,
integer64="double")
names(ProteinBank) <- gsub(
" .*$",
"",
names(ProteinBank))
LeadingRazorProtein <-
"strngt.5372.8,start=14,stop=904,frame=2,flag=1,UNIPROT=sp|Q86U42-2|PABP2_HUMAN"
DF<-DATAFRAME_MakeALineForAIsoProt(LeadingRazorProtein,Peptides,ProteinBank)
datatable(DF,escape=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.