Description Usage Arguments Value Author(s) See Also Examples
View source: R/createDomainPlot.R
Create architecture plot for both seed and orthologous protein. If domains of ortholog are missing, only architecture of seed protein will be plotted. NOTE: seed protein ID is the one being shown in the profile plot, which normally is also the orthologous group ID.
1 2 | createArchiPlot(info = NULL, domainDf = NULL, labelArchiSize = 12,
titleArchiSize = 12)
|
info |
a list contains seed and ortholog's IDs |
domainDf |
dataframe contains domain info for the seed and ortholog. This including the seed ID, orthologs IDs, sequence lengths, feature names, start and end positions, feature weights (optional) and the status to determine if that feature is important for comparison the architecture between 2 proteins* (e.g. seed protein vs ortholog) (optional). |
labelArchiSize |
lable size (in px). Default = 12. |
titleArchiSize |
title size (in px). Default = 12. |
A domain plot as arrangeGrob object. Use grid::grid.draw(plot) to render.
Vinh Tran tran@bio.uni-frankfurt.de
singleDomainPlotting
, sortDomains
,
parseDomainInput
, getQualColForVector
1 2 3 4 5 6 7 8 9 10 | seedID <- "101621at6656"
orthoID <- "101621at6656|AGRPL@224129@0|224129_0:001955|1"
info <- c(seedID, orthoID)
domainFile <- system.file(
"extdata", "domainFiles/101621at6656.domains",
package = "PhyloProfile", mustWork = TRUE
)
domainDf <- parseDomainInput(seedID, domainFile, "file")
plot <- createArchiPlot(info, domainDf, 9, 9)
grid::grid.draw(plot)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.