Home Reference Source
public class | source

SequenceAnnotation

Extends:

Identified → SequenceAnnotation

Class to represent an SBOL2 SequenceAnnotation.

Constructor Summary

Public Constructor
public

constructor(sbolDocument: *, uri: *)

Member Summary

Public Members
public set

component(component: string | URI | Component): *

Set the component for this SequenceAnnotation.

public get

component: URI | Component: *

Retrieve the component for this SequenceAnnotation.

public get

locations: Location[]: *

Retrieve the list of locations assigned to this SequenceAnnotation.

public get

ranges: Range[]: *

Retrieve the list of range locations assigned to this SequenceAnnotation.

Method Summary

Public Methods
public

addLocation(location: string | URI | Range | Cut | GenericLocation)

Add a location to this SequenceAnnotation.

public

link()

Attempt to resolve the location(s) and component by URI.

Public Constructors

public constructor(sbolDocument: *, uri: *) source

Parameters:

NameTypeAttributeDescription
sbolDocument *
uri *

Public Members

public set component(component: string | URI | Component): * source

Set the component for this SequenceAnnotation.

public get component: URI | Component: * source

Retrieve the component for this SequenceAnnotation. May return a URI if the Component has not yet been resolved.

Returns:

URI | Component

public get locations: Location[]: * source

Retrieve the list of locations assigned to this SequenceAnnotation. There may be URIs present in this list if the location(s) have not yet been resolved.

Returns:

Location[]

public get ranges: Range[]: * source

Retrieve the list of range locations assigned to this SequenceAnnotation.

Returns:

Range[]

Public Methods

public addLocation(location: string | URI | Range | Cut | GenericLocation) source

Add a location to this SequenceAnnotation.

Parameters:

NameTypeAttributeDescription
location string | URI | Range | Cut | GenericLocation
  • optional

Attempt to resolve the location(s) and component by URI.