Learn R Programming

PathwaySpace (version 1.0.1)

getPathwaySpace,PathwaySpace-method: Accessors for fetching slots from a PathwaySpace object.

Description

getPathwaySpace retrives information from individual slots available in a PathwaySpace object.

Usage

# S4 method for PathwaySpace
getPathwaySpace(pts, what = "status")

Value

Content from slots in the PathwaySpace object.

Arguments

pts

A preprocessed PathwaySpace class object

what

A single character value specifying which information should be retrieved from the slots. Options: 'graph','gxy','gxyz','pars','misc','status','summits', 'summit_mask', and 'summit_contour'.

Examples

Run this code
# Load a demo igraph
data('gtoy1', package = 'PathwaySpace')

# Create a new PathwaySpace object
pts <- buildPathwaySpace(gtoy1, nrc = 100)
# note: adjust 'nrc' to increase image resolution

# Get the 'status' slot in pts
status <- getPathwaySpace(pts, what = 'status')

Run the code above in your browser using DataLab