public class SequenceOntology extends Object
Modifier and Type | Field and Description |
---|---|
static URI |
CDS
A contiguous sequence which begins with, and includes, a start codon, and ends with, and includes, a stop codon
(SO:0000316).
|
static URI |
CIRCULAR
A quality of a nucleotide polymer that has no terminal nucleotide residues.
|
static URI |
DNA
An attribute describing a sequence consisting of nucleobases bound to a
repeating unit made of a 2-deoxy-D-ribose ring connected to a phosphate backbone.
|
static URI |
DOUBLE
A stand attribute that it indicates it is composed of a double strand.
|
static URI |
ENGINEERED_GENE
A gene that is engineered (SO:0000280).
|
static URI |
ENGINEERED_REGION
A region that is engineered (SO:0000804).
|
static URI |
FIVE_PRIME_UTR
A region at the 5' end of a mature transcript (preceding the initiation codon) that is not translated into a
protein (SO:0000204).
|
static URI |
GENE
A region (or regions) that includes all of the sequence elements necessary to encode a functional transcript.
|
static URI |
INSULATOR
A transcriptional cis regulatory region that, when located between a CM and a gene's promoter, prevents the CRM
from modulating that genes expression (SO:0000627)
|
static URI |
LINEAR
A quality of a nucleotide polymer that has a 3'-terminal residue and a 5'-terminal residue.
|
static URI |
MRNA
Messenger RNA is the intermediate molecule between DNA and protein.
|
static URI |
NAMESPACE
Namespace of the Sequence Ontology (http://identifiers.org/so/).
|
static URI |
OPERATOR
A regulatory element of an operon to which activators or repressors bind, thereby effecting translation of genes
in that operon (SO:0000057).
|
static URI |
ORIGIN_OF_REPLICATION
The origin of replication; starting site for duplication of a nucleic acid molecule to give two identical copies
(SO:0000296).
|
static URI |
PRIMER_BINDING_SITE
Non-covalent primer binding site for initiation of replication, transcription, or reverse transcription (SO:0005850)
|
static URI |
PROMOTER
A regulatory_region composed of the TSS(s) and binding sites for TF_complexes of the basal transcription
machinery (SO:0000167).
|
static URI |
RESTRICTION_ENZYME_RECOGNITION_SITE
Represents a region of a DNA molecule which is a nucleotide region (usually a palindrome) that is recognized by a
restriction enzyme (SO:0001687).
|
static URI |
RIBOSOME_ENTRY_SITE
Region in mRNA where ribosome assembles (SO:0000139)
|
static URI |
RNA
An attribute describing a sequence consisting of nucleobases bound to a repeating
unit made of a D-ribose ring connected to a phosphate backbone.
|
static URI |
SEQUENCE_FEATURE
Any extent of continuous biological sequence.
|
static URI |
SGRNA
A small RNA oligo, typically about 20 bases, that guides the cas nuclease to a target DNA sequence in the
CRISPR/cas mutagenesis method.
|
static URI |
SINGLE
A stand attribute that it indicates it is composed of a single strand.
|
static URI |
STRAND_ATTRIBUTE
Attributes added to describe the different kinds of replicon.
|
static URI |
TERMINATOR
The sequence of DNA located either at the end of the transcript that causes RNA polymerase to terminate
transcription (SO:0000141).
|
static URI |
TOPOLOGY_ATTRIBUTE
Attributes added to describe the different kinds of replicon.
|
Constructor and Description |
---|
SequenceOntology()
Construct an SO ontology and reads the OBO definition file, if it has not been read in before.
|
Modifier and Type | Method and Description |
---|---|
Set<String> |
getDescendantNamesOf(String parentId)
Returns the set of child names that are descendants of a given parent ID.
|
Set<String> |
getDescendantNamesOf(URI parentURI)
Returns the set of child names that are descendants of a given parent URI.
|
Set<String> |
getDescendantsOf(String parentId)
Returns the set of child IDs that are descendants of the given parent ID.
|
Set<String> |
getDescendantsOf(URI parentURI)
Returns the set of child IDs that are descendants of the given parent URI.
|
Set<URI> |
getDescendantURIsOf(String parentId)
Returns the set of child URIs that are descendants of the given parent ID.
|
Set<URI> |
getDescendantURIsOf(URI parentURI)
Returns the set of child URIs that are descendants of the given parent URI.
|
String |
getId(String stanzaName)
Returns the ID of the stanza whose name matches the given stanza name.
|
String |
getId(URI termURI)
Returns the extracted ID of the given term's URI.
|
String |
getName(String stanzaId)
Returns the name field of the stanza that matches the ID referred by the given stanza URI.
|
String |
getName(URI termURI)
Returns the name field of the stanza that matches the ID for the given term URI.
|
URI |
getURIbyId(String stanzaId)
Creates a URI by appending the given stanza ID to the end of the
Sequence Ontology (SO) namespace,i.e.
|
URI |
getURIbyName(String stanzaName)
Returns the URI that is composed of the Sequence Ontology (SO) namespace, i.e.
|
boolean |
isDescendantOf(String Id1,
String Id2)
Returns
true if the stanza with Id1 is a descendant of the stanza with Id2. |
boolean |
isDescendantOf(URI childURI,
URI parentURI)
Returns
true if the stanza with childURI is a descendant of the stanza with parentURI. |
public static final URI NAMESPACE
public static final URI PROMOTER
public static final URI OPERATOR
public static final URI CDS
public static final URI FIVE_PRIME_UTR
public static final URI TERMINATOR
public static final URI INSULATOR
public static final URI ORIGIN_OF_REPLICATION
public static final URI PRIMER_BINDING_SITE
public static final URI RIBOSOME_ENTRY_SITE
public static final URI GENE
public static final URI MRNA
public static final URI RESTRICTION_ENZYME_RECOGNITION_SITE
public static final URI ENGINEERED_GENE
public static final URI ENGINEERED_REGION
public static final URI SEQUENCE_FEATURE
public static final URI SGRNA
public static final URI STRAND_ATTRIBUTE
public static final URI SINGLE
public static final URI DOUBLE
public static final URI TOPOLOGY_ATTRIBUTE
public static final URI LINEAR
public static final URI CIRCULAR
public static final URI DNA
public static final URI RNA
public SequenceOntology()
public final String getId(URI termURI)
termURI
- the identity URI of a termpublic final String getId(String stanzaName)
stanzaName
- the name of a stanzanull
if no match is found.public final String getName(URI termURI)
termURI
- the identity URI of a termpublic final String getName(String stanzaId)
stanzaId
- the ID of a stanzanull
if this no match was foundpublic final URI getURIbyName(String stanzaName)
stanzaName
- the name of a termpublic final URI getURIbyId(String stanzaId)
stanzaId
- the ID of a stanzapublic boolean isDescendantOf(String Id1, String Id2)
true
if the stanza with Id1 is a descendant of the stanza with Id2.Id1
- ID of the first stanzaId2
- ID of the second stanzatrue
if the stanza with Id1 is a descendant of the stanza with Id2, or false
otherwisepublic final boolean isDescendantOf(URI childURI, URI parentURI)
true
if the stanza with childURI is a descendant of the stanza with parentURI. This method first
extracts IDs for the child and parent, and then passes them to isDescendantOf(String, String)
.childURI
- the URI of the child stanzaparentURI
- the URI of the parent stanzatrue
if the stanza with childURI is a descendant of the stanza with parentURI, or false
otherwisepublic Set<String> getDescendantsOf(String parentId)
parentId
- the ID of the parent stanzapublic final Set<String> getDescendantsOf(URI parentURI)
parentURI
- the URI of the parent stanzapublic final Set<URI> getDescendantURIsOf(String parentId)
parentId
- the ID of the parent stanzapublic final Set<URI> getDescendantURIsOf(URI parentURI)
parentURI
- the URI of the parent stanzapublic final Set<String> getDescendantNamesOf(String parentId)
parentId
- the ID of the parent stanzapublic final Set<String> getDescendantNamesOf(URI parentURI)
parentURI
- the URI of the parent stanza