biocViews (version 1.40.1)

writeTopLevelView: Write the view for the root of a vocabulary to disk

Description

Given a directory and a vocabulary represented as a graphNEL containing a DAG of terms, write the top-level term to disk as HTML.

This assumes your vocabulary has a single term with no parents.

Usage

writeTopLevelView(dir, vocab)

Arguments

dir
A string giving a directory in which to write the HTML file
vocab
A graphNEL instance giving the DAG of terms. It should have a root node. That is, there should be exactly one node with no incoming edges.