knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

graphparse

Installation

# install.packages("devtools")
devtools::install_github("mailund/graphparse")

Example

Parsing a qpGraph file:

test_graph <- readr::read_file("data-raw/Basic_OngeEA_wArch.graph")
g <- graphparse::read_qpgraph(test_graph)
plot(g)
attr(g, "admixture_proportions")

Parsing a dot file:

test_graph <- readr::read_file("data-raw/Basic_OngeEA_wArch.dot")
g <- graphparse::read_dot(test_graph)
plot(g)
attr(g, "admixture_proportions")
test_graph <- readr::read_file("data-raw/test1.graph")
g <- graphparse::read_qpgraph(test_graph)
plot(g)
attr(g, "admixture_proportions")
test_graph <- readr::read_file("data-raw/BosGraph.dot")
g <- graphparse::read_dot(test_graph)
plot(g)


mailund/graphparse documentation built on May 29, 2019, 11:05 p.m.