sortDomains: Sort one domain dataframe based on the other domain dataframe

Description Usage Arguments Value Author(s) Examples

View source: R/createDomainPlot.R

Description

Sort domain dataframe of one protein (either seed or ortholog) based on the dataframe of the its paired protein, in order to bring the common domain feature in the same order which make it easy for comparing.

Usage

1
sortDomains(seedDf, orthoDf)

Arguments

seedDf

data of seed protein

orthoDf

data of ortholog protein

Value

Dataframe contains sorted domain list.

Author(s)

Vinh Tran tran@bio.uni-frankfurt.de

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
# get domain data
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",]
seedDf <- subDf[subDf$orthoID != "101621at6656:DROME@7227@1:Q9VG04",]
# sort
sortDomains(seedDf, orthoDf)

## End(Not run)

PhyloProfile documentation built on March 27, 2021, 6:01 p.m.