View source: R/createDomainPlot.R
sortDomainsByList | R Documentation |
Sort domain dataframe of one protein based on a given list of ordered feature types
sortDomainsByList(domainDf = NULL, featureClassOrder = NULL)
domainDf |
domain dataframe |
featureClassOrder |
vector of ordered feature classes |
Dataframe contains sorted domain list.
Vinh Tran tran@bio.uni-frankfurt.de
# get domain data
seedID <- "101621at6656"
domainFile <- system.file(
"extdata", "domainFiles/101621at6656.domains",
package = "PhyloProfile", mustWork = TRUE
)
domainDf <- parseDomainInput(seedID, domainFile, "file")
# get seedDf and orthoDf
subDf <- domainDf[
domainDf$seedID ==
"101621at6656#101621at6656:AGRPL@224129@0:224129_0:001955:1",]
orthoDf <- subDf[subDf$orthoID == "101621at6656:DROME@7227@1:Q9VG04",]
featureClassOrder <- c("pfam", "smart", "tmhmm", "coils", "signalp", "seg",
"flps")
# sort
PhyloProfile:::sortDomainsByList(orthoDf, featureClassOrder)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.