Description Usage Arguments Value Examples
HTML_Pretty_Sequence Prepare an HTML ready
1 2 3 4 5 6 7 | HTML_Pretty_Sequence(
Sequence,
Peptides,
Rescue = NULL,
PerfectIsoformName = NULL,
LineWidth = 60
)
|
Sequence |
String of the protein AA Sequence |
Peptides |
data.frame of the peptides attributed to this protein |
Rescue |
Not Used for now |
PerfectIsoformName |
Name of the Isoform as observed in the |
LineWidth |
Number of AA before a new line (will not include the space inside) |
HTML string of the sequence embedded with features included as span
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | library(Biostrings)
PB_FilePath <- system.file("extdata",
"protein_bank.example.fasta",
package = "isoformnspectRe")
ProteinBank<-readAAStringSet(
PB_FilePath
)
Sequence <- as.vector(ProteinBank["Example"])
Peptides <- data.frame(
Start = c(2, 2, 240),
End = c(10, 11, 253),
Pep = c(1.9437e-06, 0.00014334, 0.0001654),
Proteins = c(
"strngt.11487.1 Q8WUM4-3 strngt.11487.3 strngt.11487.2",
"strngt.11487.1 Q8WUM4-3 strngt.11487.3 strngt.11487.2",
"strngt.11487.2"),
Sequence = c("ATFISVQLK", "ATFISVQLKK", "YFYFQEVFPVLAAK ")
)
Sequence <- HTML_Pretty_Sequence(Sequence,Peptides)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.