HTML_VECTOR_Peptide2Popover: Alter a peptide sequence to have an harmonious presentation

Description Usage Arguments Value Examples

View source: R/HTML.R

Description

Alter a peptide sequence to have an harmonious presentation

Usage

1
HTML_VECTOR_Peptide2Popover(Sequences, MaxNChar = 15)

Arguments

Sequences

Vector of peptides Sequence

MaxNChar

Maximum width size of the peptide

Value

string vector as a HTML span to have shorter form

Examples

 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'});")
 )))

47Lies/isoformnspectRe documentation built on May 29, 2021, 3 p.m.