Description Usage Arguments Value Plot Colors References See Also Examples
View source: R/structuralTendency.R
Convenient graphing for the structuralTendency
function.
1 2 3 4 5 6 7 8 9 10 11 |
sequence |
amino acid sequence (or pathway to a fasta file) as a character string. Supports multiple sequences / files, as a character vector of strings. |
graphType |
character string, required.
graphType must be set to c("pie", "bar", "none").
When |
summarize |
logical value, FALSE by default.
When |
proteinName, |
optional character string. NA by default. Used to either add the name of the protein to the plot title. |
alphabetical |
logical value, FALSE by default.
Order of residues on plot axis. Only relevant when
|
disorderPromoting, disorderNeutral, orderPromoting |
character vectors of individual residues to be matched with the input sequence. Defaults:
It is not recommended to change these. |
... |
additional arguments to be passed to
|
a data frame containing each residue from the sequence matched with its structural tendency, defined by disorderPromoting, disorderNeutral, and orderPromoting.
For users who wish to keep a common aesthetic, the following colors are
used when graphType = "bar" or "pie"
Disorder Neutral = "#F0B5B3"
Disorder Promoting = "darkolivegreen3" or "#A2CD5A"
Order Promoting = "darkorchid1" or "#BF3EFF"
Uversky, V. N. (2013). A decade and a half of protein intrinsic disorder:
Biology still waits for physics. Protein Science, 22(6), 693-724.
https://doi.org/10.1002/pro.2261.
Kulkarni, Prakash, and Vladimir N. Uversky. "Intrinsically
disordered proteins: the dark horse of the dark proteome."
Proteomics 18.21-22 (2018): 1800061.
https://doi.org/10.1002/pmic.201800061.
Other structural tendency:
structuralTendency()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | #Amino acid sequences can be character strings
aaString <- "ACDEFGHIKLMNPQRSTVWY"
#Amino acid sequences can also be character vectors
aaVector <- c("A", "C", "D", "E", "F",
"G", "H", "I", "K", "L",
"M", "N", "P", "Q", "R",
"S", "T", "V", "W", "Y")
#Alternatively, .fasta files can also be used by providing
##The path to the file as a character string
structuralTendencyPlot(aaString)
structuralTendencyPlot(aaVector)
#The plot can be a pie chart (default)
structuralTendencyPlot(aaString,
graphType = "pie")
#Or the plot can be a bar graph
structuralTendencyPlot(aaString,
graphType = "bar")
#To display general tendency rather than residues, set summarize = T
structuralTendencyPlot(aaString,
graphType = "pie",
summarize = TRUE)
structuralTendencyPlot(aaString,
graphType = "bar",
summarize = TRUE)
#If you wish to export this as a dataframe, set graphType = "none"
exampleDF <- structuralTendencyPlot(aaString,
graphType = "none")
head(exampleDF)
#If using a different definition of disordered residues
##These residues are labeled as such from Dunker et al (2001),
##"Intrinsically disordered protein."
structuralTendencyPlot(aaString,
disorderPromoting = c("A", "R", "G", "Q", "S", "P", "E", "K"),
disorderNeutral = c("H", "M", "T", "D"),
orderPromoting = c("W", "C", "F", "I", "Y", "V", "L", "N"),
graphType = "bar",
alphabetical = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.