Description Usage Arguments Value Examples
Alter a peptide sequence to have an harmonious presentation
1 | HTML_VECTOR_Peptide2Popover(Sequences, MaxNChar = 15)
|
Sequences |
Vector of peptides Sequence |
MaxNChar |
Maximum width size of the peptide |
string vector as a HTML span to have shorter form
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | library("DT")
library("data.table")
P_FilePath <- system.file("extdata",
"peptides.example.txt",
package = "isoformnspectRe")
Peptides<-fread(
P_FilePath,
integer64="double")
Peptides<-Peptides[,c("Sequence",
"Start position","End position")]
datatable(Peptides)
Peptides$Sequence<-HTML_VECTOR_Peptide2Popover(Peptides$Sequence)
datatable(Peptides,escape=FALSE,
options=list(
drawCallback=JS(
paste("$('[data-toggle=\"popover\"]').popover({container: 'body'});")
)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.