domain_plotting: Create architecure plot for a single protein

Description Usage Arguments Value Author(s) See Also Examples

Description

Create architecure plot for a single protein

Usage

1
2
domain_plotting(df, geneID, sep, label_size, title_size, min_start, 
    max_end, color_scheme)

Arguments

df

domain dataframe for ploting

geneID

ID of seed or orthologous protein

sep

separate indicator for title

label_size

lable size

title_size

title size

min_start

the smallest start position of all domains

max_end

the highest stop position of all domains

color_scheme

color scheme for all domain types

Value

A ggplot object

Author(s)

Vinh Tran tran@bio.uni-frankfurt.de

See Also

get_qual_col_for_vector, parse_domain_input

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
## 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")
df <- domain_df[domain_df$orthoID == "A.thaliana@3702@241736",]
# create color scheme for all domain types
all_features <- levels(as.factor(df$feature))
all_colors <- get_qual_col_for_vector(all_features)
color_scheme <- structure(
    all_colors,
    .Names = all_features
)
# other parameters
geneID <- "A.thaliana@3702@241736"
sep <- "|"
label_size <- 9
title_size <- 9
min_start <- min(df$start)
max_end <- max(df$end)
# do plotting
domain_plotting(
    df,
    geneID,
    sep,
    label_size, title_size,
    min_start, max_end,
    color_scheme
)

## End(Not run)

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