From: vandersm <vandersm@mail.uc.edu>
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/KEGGlincs@127888 bc3139a8-67e5-0310-9ffc-ced21a209358
... | ... |
@@ -11,7 +11,7 @@ Description: See what is going on 'under the hood' of KEGG pathways by |
11 | 11 |
obtained from KGML files. |
12 | 12 |
License: GPL-3 |
13 | 13 |
LazyData: true |
14 |
-RoxygenNote: 5.0.1 |
|
14 |
+RoxygenNote: 6.0.1 |
|
15 | 15 |
Depends: R (>= 3.3), KOdata, hgu133a.db, org.Hs.eg.db (>= 3.3.0) |
16 | 16 |
SystemRequirements: Cytoscape (>= 3.3.0), Java (>= 8) |
17 | 17 |
Suggests: BiocInstaller (>= 1.20.3), knitr, graph |
... | ... |
@@ -4,7 +4,7 @@ |
4 | 4 |
#' @param pathwayid A KEGG pathway ID of the form "hsa12345" |
5 | 5 |
#' (only human pathways currently) |
6 | 6 |
#' @return A data.frame object with either disease or drug information |
7 |
-#' @importFrom XML readHTMLTable |
|
7 |
+#' @import XML |
|
8 | 8 |
#' @export |
9 | 9 |
#' @examples |
10 | 10 |
#' RA_drug_table <- get_drug_table("hsa05323") |
... | ... |
@@ -41,5 +41,28 @@ edges <- edge_mapping_info(p53_edges) |
41 | 41 |
|
42 | 42 |
p53_graph_object <- get_graph_object(nodes, edges) |
43 | 43 |
|
44 |
-} |
|
44 |
+\dontrun{ |
|
45 |
+cyto_vis(p53_graph_object, "Default p53 Graph [no data added]") |
|
46 |
+ |
|
47 |
+#Workflow to visualize graph with data-dependent attributes: |
|
48 |
+ |
|
49 |
+p53_KGML <- get_KGML("hsa04115") |
|
50 |
+p53_KEGG_mappings <- expand_KEGG_mappings(p53_KGML) |
|
51 |
+nodes <- node_mapping_info(p53_KEGG_mappings) |
|
45 | 52 |
|
53 |
+p53_edges <- expand_KEGG_edges(p53_KGML, p53_KEGG_mappings) |
|
54 |
+ |
|
55 |
+p53_HA1E_data <- overlap_info(p53_KGML, p53_KEGG_mappings, "HA1E", |
|
56 |
+ data_type = "100_bing") |
|
57 |
+p53_edges_plus_data <- add_edge_data(p53_edges, p53_KEGG_mappings, |
|
58 |
+ p53_HA1E_data, c(3, 10,12), |
|
59 |
+ only_mapped = TRUE) |
|
60 |
+ |
|
61 |
+edges <- edge_mapping_info(p53_edges_plus_data, data_added = TRUE) |
|
62 |
+ |
|
63 |
+p53_plus_data_graph_object <- get_graph_object(nodes, edges) |
|
64 |
+ |
|
65 |
+cyto_vis(p53_plus_data_graph_object, "p53 Graph: Mapped Edges + HA1E Data", |
|
66 |
+ edge_width_attribute = "UP") |
|
67 |
+ } |
|
68 |
+} |
... | ... |
@@ -1,8 +1,8 @@ |
1 | 1 |
% Generated by roxygen2: do not edit by hand |
2 | 2 |
% Please edit documentation in R/get_dd_tables.R |
3 | 3 |
\name{get_drug_table} |
4 |
-\alias{get_disease_table} |
|
5 | 4 |
\alias{get_drug_table} |
5 |
+\alias{get_disease_table} |
|
6 | 6 |
\title{Import disease/drug tables from KEGG} |
7 | 7 |
\usage{ |
8 | 8 |
get_drug_table(pathwayid) |
... | ... |
@@ -23,4 +23,3 @@ selected pathway |
23 | 23 |
\examples{ |
24 | 24 |
RA_drug_table <- get_drug_table("hsa05323") |
25 | 25 |
} |
26 |
- |
... | ... |
@@ -1,8 +1,8 @@ |
1 | 1 |
% Generated by roxygen2: do not edit by hand |
2 | 2 |
% Please edit documentation in R/from_cyREST.R |
3 | 3 |
\name{toCytoscape} |
4 |
-\alias{mapAttributes} |
|
5 | 4 |
\alias{toCytoscape} |
5 |
+\alias{mapAttributes} |
|
6 | 6 |
\title{cyREST utility functions} |
7 | 7 |
\usage{ |
8 | 8 |
toCytoscape(igraphobj) |
... | ... |
@@ -26,4 +26,3 @@ A subset of the R utility functions available from/defined |
26 | 26 |
by cyREST. The function mapAttributes is called from within toCytoscape |
27 | 27 |
which, in turn, is called from within cyto_vis. |
28 | 28 |
} |
29 |
- |