Home Manual Reference Source Test
import {PhylogenyWrapper} from '@phyloref/phyx/src/wrappers/PhylogenyWrapper.js'
public class | source

PhylogenyWrapper

Static Method Summary

Static Public Methods
public static

getErrorsInNewickString(newick: *): *

public static

getParsedNewick(newick: *): {"json": *}

public static

recurseNodes(node: *, func: *, nodeCount: number, parentCount: *): *

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

Method Summary

Public Methods
public

asJSONLD(fallbackIRI: *, newickParser: *): *

public

getNodeLabels(nodeType: string): *

public
public

getNodesAsJSONLD(baseIRI: *, newickParser: *): *

public

getParsedNewickWithIRIs(baseIRI: *, newickParser: *): *

public

getTaxonomicUnits(nodeType: string): *

public

getTaxonomicUnitsForNodeLabel(nodeLabel: *): *[]

Return a list of taxonomic units for a node label.

Static Public Methods

public static getErrorsInNewickString(newick: *): * source

Params:

NameTypeAttributeDescription
newick *

Return:

*

public static getParsedNewick(newick: *): {"json": *} source

Params:

NameTypeAttributeDescription
newick *

Return:

{"json": *}

public static recurseNodes(node: *, func: *, nodeCount: number, parentCount: *): * source

Params:

NameTypeAttributeDescription
node *
func *
nodeCount number
  • optional
  • default: 0
parentCount *
  • optional
  • default: undefined

Return:

*

Public Constructors

public constructor() source

Public Members

public defaultNomenCode: * source

public phylogeny: * source

Public Methods

public asJSONLD(fallbackIRI: *, newickParser: *): * source

Params:

NameTypeAttributeDescription
fallbackIRI *
newickParser *

Return:

*

public getNodeLabels(nodeType: string): * source

Params:

NameTypeAttributeDescription
nodeType string
  • optional
  • default: both

Return:

*

public getNodeLabelsMatchedBySpecifier(specifier: *): * source

Params:

NameTypeAttributeDescription
specifier *

Return:

*

public getNodesAsJSONLD(baseIRI: *, newickParser: *): * source

Params:

NameTypeAttributeDescription
baseIRI *
newickParser *

Return:

*

public getParsedNewickWithIRIs(baseIRI: *, newickParser: *): * source

Params:

NameTypeAttributeDescription
baseIRI *
newickParser *
  • optional

Return:

*

public getTaxonomicUnits(nodeType: string): * source

Params:

NameTypeAttributeDescription
nodeType string
  • optional
  • default: both

Return:

*

public getTaxonomicUnitsForNodeLabel(nodeLabel: *): *[] source

Return a list of taxonomic units for a node label.

If the additionalNodeProperties for this node label includes taxonomic units (using representsTaxonomicUnits = obo:CDAO_0000187), then those taxonomic units are used. Otherwise, one will be constructed using the default nomenclatural code set up when this PhylogenyWrapper was set up.

Params:

NameTypeAttributeDescription
nodeLabel *

Return:

*[]