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

Description Usage Arguments Value Author(s) Examples

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
sort_domains(seed_df, ortho_df)

Arguments

seed_df

data of seed protein

ortho_df

data of ortholog protein

Value

sorted domain list (dataframe)

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
## Not run: 
# get domain data
domain_file <- system.file(
    "extdata", "domain_files/OG_1009.domains",
    package = "phyloprofile", mustWork = TRUE
)
domain_df <- parse_domain_input(seedID, domain_file, "file")
# get seed_df and ortho_df
sub_df <- domain_df[domain_df$seedID == "OG_1009#A.thaliana@3702@241736",]
ortho_df <- dplyr::filter(sub_df, orthoID == "A.thaliana@3702@241736")
seed_df <- dplyr::filter(sub_df, orthoID != "A.thaliana@3702@241736")
# sort
sort_domains(seed_df, ortho_df)

## End(Not run)

trvinh/test documentation built on May 9, 2019, 2:26 a.m.