Home Reference Source
public class | source

Sequence

Extends:

Identified → Sequence

Class to represent an SBOL2 Sequence.

Constructor Summary

Public Constructor
public

constructor(sbolDocument: *, uri: *)

Member Summary

Public Members
public set

elements(elements: string): *

Set the sequence elements for this sequence.

public get

Retrieve the sequence elements for this sequence.

public set

encoding(encoding: string | URI): *

Set the sequence encoding for this sequence.

public get

encoding: URI: *

Retrieve the sequence encoding for this sequence.

Public Constructors

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

Parameters:

NameTypeAttributeDescription
sbolDocument *
uri *

Public Members

public set elements(elements: string): * source

Set the sequence elements for this sequence.

The format of the elements is dependent on the encoding. For example, if this is a nucleotide sequence, the elements should be a string of nucleotide base pairs.

public get elements: string: * source

Retrieve the sequence elements for this sequence.

Returns:

string

[elements]

public set encoding(encoding: string | URI): * source

Set the sequence encoding for this sequence.

public get encoding: URI: * source

Retrieve the sequence encoding for this sequence.

Returns:

URI

[encoding]