indRender: indented textual rendering of nodes of a hierarchical graph

Description Usage Arguments Details Value Author(s) Examples

View source: R/indRender.R

Description

indented textual rendering of nodes of a hierarchical graph

Usage

1
indRender(klike, from=nodes(klike)[1], indent="  ")

Arguments

klike

a graph, with tree structure similar to KOgraph

from

a node name from which the rendering should proceed to all leaves

indent

token to use for indentation – will be replicated to depth of node to be rendered to its left

Details

Based on keggorthology read of KEGG orthology, March 2 2010. Specifically, we run wget on ftp://ftp.genome.jp/pub/kegg/brite/ko/ko00001.keg and use parsing and modeling code given in inst/keggHTML to generate a data frame respecting the hierarchy, and then keggDF2graph to construct the graph.

Value

NULL

Author(s)

Vince Carey <stvjc@channing.harvard.edu>

Examples

1
2
data(KOgraph)
indRender(KOgraph, "Human Diseases")

Example output

Loading required package: graph
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: 'BiocGenerics'

The following objects are masked from 'package:parallel':

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked from 'package:stats':

    IQR, mad, sd, var, xtabs

The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, append,
    as.data.frame, basename, cbind, colMeans, colSums, colnames,
    dirname, do.call, duplicated, eval, evalq, get, grep, grepl,
    intersect, is.unsorted, lapply, lengths, mapply, match, mget,
    order, paste, pmax, pmax.int, pmin, pmin.int, rank, rbind,
    rowMeans, rowSums, rownames, sapply, setdiff, sort, table, tapply,
    union, unique, unsplit, which, which.max, which.min

Loading required package: hgu95av2.db
Loading required package: AnnotationDbi
Loading required package: stats4
Loading required package: Biobase
Welcome to Bioconductor

    Vignettes contain introductory material; view with
    'browseVignettes()'. To cite Bioconductor, see
    'citation("Biobase")', and for packages 'citation("pkgname")'.

Loading required package: IRanges
Loading required package: S4Vectors

Attaching package: 'S4Vectors'

The following object is masked from 'package:base':

    expand.grid

Loading required package: org.Hs.eg.db


    Cancers 
      Pathways in cancer 
      Colorectal cancer 
      Pancreatic cancer 
      Glioma 
      Thyroid cancer 
      Acute myeloid leukemia 
      Chronic myeloid leukemia 
      Basal cell carcinoma 
      Melanoma 
      Renal cell carcinoma 
      Bladder cancer 
      Prostate cancer 
      Endometrial cancer 
      Small cell lung cancer 
      Non-small cell lung cancer 
    Immune System Diseases 
      Asthma 
      Systemic lupus erythematosus 
      Autoimmune thyroid disease 
      Allograft rejection 
      Graft-versus-host disease 
      Primary immunodeficiency 
    Neurodegenerative Diseases 
      Alzheimer's disease 
      Parkinson's disease 
      Amyotrophic lateral sclerosis (ALS) 
      Huntington's disease 
      Prion diseases 
    Circulatory Diseases 
      Hypertrophic cardiomyopathy (HCM) 
      Arrhythmogenic right ventricular cardiomyopathy (ARVC) 
      Dilated cardiomyopathy (DCM) 
      Viral myocarditis 
    Metabolic Diseases 
      Type I diabetes mellitus 
      Type II diabetes mellitus 
      Maturity onset diabetes of the young 
    Infectious Diseases 
      Vibrio cholerae infection 
      Vibrio cholerae pathogenic cycle 
      Epithelial cell signaling in Helicobacter pylori infection 
      Pathogenic Escherichia coli infection 

keggorthology documentation built on Nov. 8, 2020, 6:49 p.m.