create_archi_plot: Create protein's domain architecure plot

Description Usage Arguments Value Author(s) See Also Examples

Description

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.

Usage

1
create_archi_plot(info, domain_df, label_archi_size, title_archi_size)

Arguments

info

a list contains seed and orthologs IDs

domain_df

dataframe contains domain info

label_archi_size

lable size (in px)

title_archi_size

title size (in px)

Value

A plot as arrangeGrob object. Use grid::grid.draw(plot) to render.

Author(s)

Vinh Tran tran@bio.uni-frankfurt.de

See Also

domain_plotting, sort_domains, parse_domain_input, get_qual_col_for_vector

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
seedID <- "OG_1009"
orthoID <- "A.thaliana@3702@241736"
info <- c(seedID, orthoID)
domain_file <- system.file(
    "extdata", "domain_files/OG_1009.domains",
    package = "phyloprofile", mustWork = TRUE
)
domain_df <- parse_domain_input(seedID, domain_file, "file")
plot <- create_archi_plot(info, domain_df, 9, 9)
grid::grid.draw(plot)

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