public class DATranscript extends DAAnalyzedFeature implements Transcript, VegaFeature, XRefed
DAFeature.Status
DAObject.DAComparator
Modifier and Type | Field and Description |
---|---|
protected HashMap<ExternalDBType,Set<DAXRef>> |
typedXRefs |
protected Set<DAXRef> |
xrefs |
current, description, displayName, displayXRef, initialized, length, mappedObjectTypes, mappings, objectTypeMappings, status, thisSequence
comparaFactories, creationDate, modificationDate, species, stableID, version
daComparator, daoFactory, dbVersion, id, registry, schemaVersion
Constructor and Description |
---|
DATranscript() |
DATranscript(DAOCoreFactory daoFactory) |
Modifier and Type | Method and Description |
---|---|
void |
addExon(Exon exon)
Method used by the ExonDAO to add an Exon to the 'exonHash', hashed on the
'Rank' integer held by the Exon.
|
protected void |
addTranslation(DATranslation trl)
Package method to add a Translation to the 'translationHash',
hashed on the internal database ID of the Translation, and to set the
canonicalTranlation/ID where applicable.
|
void |
addTranslations(Collection<DATranslation> trls)
Method used by the TranslationDAO to add Translations to the 'translationHash',
hashed on the internal database ID of the Translation.
|
protected void |
addTypedXRefs(ExternalDBType type,
Collection<? extends XRef> xrefs) |
Integer |
convertChromosomeToPrimaryTranscriptPosition(Integer chromosomePosition)
Returns the mapped relative primaryTranscript position for a given Chromosome
(or other Toplevel genomic) position.
|
Integer |
convertChromosomeToProcessedTranscriptPosition(Integer chromosomePosition)
Converts an Integer position on the TopLevel-annotated Target (typically the Chromosome)
to the position on the processed (spliced) Transcript.
|
Integer |
convertPrimaryToProcessedTranscriptPosition(Integer primaryTranscriptPosition)
Returns the mapped position on the Processed transcript equivalent to the given
position on the Primary (unprocessed) transcript
|
Integer |
convertPrimaryTranscriptPositionToChromosome(Integer primaryTranscriptPosition)
Returns the mapped Chromosomal position for a given
primaryTranscript position.
|
Integer |
convertProcessedToPrimaryTranscriptPosition(Integer processedTranscriptPosition)
Returns the mapped position on the Primary transcript equivalent to the given
position on the processed transcript
|
Integer |
convertProcessedTranscriptPositionToChromosome(Integer processedTranscriptPosition)
Converts an Integer position on the processed (spliced) transcript
to the position on the TopLevel-annotated Target (typically the Chromosome).
|
TreeSet<String> |
getAllSynonyms() |
Set<DAXRef> |
getAllXRefs() |
String |
getBiotype() |
DATranslation |
getCanonicalTranslation()
Returns the canonical Translation for this Transcript (if there is one).
|
Integer |
getCanonicalTranslationID()
Returns the internal database ID for the Translation object marked as 'Canonical'.
|
String |
getCcdsID()
Returns any curated CCDS for this transcript.
|
Set<DAXRef> |
getCCDSXRefs() |
String |
getDisplayName() |
DAXRef |
getDisplayXRef()
Triggers lazyload if Transcript is not initialized.
|
Collection<DAExon> |
getExons()
Returns a Collection of Exons for this Transcript.
|
DAGene |
getGene()
Gets the Gene associated with this transcript, using the stableID for the
gene set on Transcript initialization.
|
Integer |
getGeneID() |
DADNASequence |
getPrimaryTranscript()
Returns a DADNASequence object representing the unprocessed primary Transcript.
|
Integer |
getPrimaryTranscriptLength()
Returns the length of the unprocessed (primary)
version of this Transcript.
|
RNASequence |
getPrimaryTranscriptRNASequence()
Preferred method to explicitly get the RNASequence object representing the
PrimaryTranscript.
|
String |
getPrimaryTranscriptRNASequenceAsString()
Preferred method to explicitly get a String representing the RNA sequence
of the PrimaryTranscript.
|
String |
getPrimaryTranscriptRNASequenceAsString(Integer start,
Integer stop)
Preferred method to explicitly get a String representing the RNA sequence
of the PrimaryTranscript, for the given range.
|
DADNASequence |
getProcessedTranscript()
Returns a DADNASequence object representing the processed (spliced exons)
version of this Transcript.
|
Integer |
getProcessedTranscriptLength()
Returns the length of the processed (spliced exons)
version of this Transcript.
|
RNASequence |
getProcessedTranscriptRNASequence()
Returns an RNASequence object representing the
Processed (RNA spliced) Transcript.
|
String |
getProcessedTranscriptRNASequenceAsString()
Returns a String representing the RNA sequence
of the Processed (RNA spliced) Transcript.
|
String |
getProcessedTranscriptRNASequenceAsString(Integer start,
Integer stop)
Returns a String representing the RNA sequence
of the Processed (RNA spliced) Transcript, for the given range.
|
RNASequence |
getRNASequence()
Deprecated.
|
String |
getRNASequenceAsString()
Deprecated.
|
String |
getRNASequenceAsString(Integer start,
Integer stop)
Deprecated.
|
TreeSet<String> |
getSynonyms(XRef xref) |
Collection<? extends Translation> |
getTranslations()
Returns all of the Translation objects associated with this Transcript
(typically there will only be one, the canonical translation, there may
also be no translation for a transcript).
|
ObjectType |
getType() |
String |
getVegaID()
Returns any curated VegaID for the Transcript, forcing lazy load if not set, and defaulting
to an empty string if absent (e.g. for all the invertebrate species in EnsemblGenomes).
|
Set<DAXRef> |
getVegaXRefs() |
protected Set<DAXRef> |
getXRefs(ExternalDBType type)
Beware: this method does not trigger lazyloading of typed XRefs.
|
boolean |
isCanonical()
Returns true if this Transcript has been annotated by Ensembl as 'Canonical',
according to the following rules:
A 'Canonical' Transcript is the longest CCDS model in a gene.
|
boolean |
isTranslated()
Returns whether this Transcript has (at least one, canonical) Translation.
|
void |
setBiotype(String biotype) |
void |
setCanonical(boolean canonical) |
void |
setCanonicalTranslationID(Integer canonicalTranslationID) |
void |
setDisplayXRef(DAXRef xref) |
void |
setGene(DAGene gene) |
void |
setGeneID(Integer geneID) |
getAnalysis, getAnalysisID, setAnalysisID
addMappedObjectType, addMapping, clearAllMappings, convertChromosomePositionToFeature, convertToTargetCoordinate, convertToTargetPosition, getAnnotationLevelMappings, getBuildLevelMappings, getChromosomeMapping, getChromosomeMapping, getChromosomeMappings, getCreationDate, getDescription, getFlankingTargetSequenceAsString, getId, getLength, getLoadedMappings, getLoadedMappings, getModificationDate, getPaddedFlankingTargetSequenceAsString, getSequence, getSequenceAsString, getSequenceAsString, getStatus, getTargetSequence, getTopLevelMappings, getTopLevelTargetCoordinates, getTopLevelTargetSequence, getVersion, inititializeTopLevel, isCurrent, isInitialized, isObjectTypeMapped, setCurrent, setDescription, setDisplayName, setInitialized, setLength, setStatus
getAssembly, getComparaDivision, getComparaFactory, getComparaFactory, getDaoFactory, getSpecies, getStableID, setCreationDate, setDBVersion, setModificationDate, setSpecies, setStableID, setVersion
getDBVersion, getHashID, getRegistry, getSchemaVersion, isLazyloadAllowed, setDaoFactory, setId, setLazyloadAllowed, setRegistry
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addMappedObjectType, getChromosomeMapping, getChromosomeMapping, getChromosomeMappings, isCurrent, isObjectTypeMapped
addMapping, clearAllMappings, getLoadedMappings, getLoadedMappings
getDBVersion, getHashID, getId, getSchemaVersion, setId
getAnalysis, getAnalysisID, setAnalysisID
protected HashMap<ExternalDBType,Set<DAXRef>> typedXRefs
public DATranscript()
public DATranscript(DAOCoreFactory daoFactory)
daoFactory
- public ObjectType getType()
getType
in interface IdentifiableObject
public Collection<? extends Translation> getTranslations()
getTranslations
in interface Transcript
public DATranslation getCanonicalTranslation()
getCanonicalTranslation
in interface Transcript
public String getBiotype()
public void setBiotype(String biotype)
public DAGene getGene()
getGene
in interface Transcript
public boolean isCanonical()
public void setCanonical(boolean canonical)
public String getDisplayName()
getDisplayName
in class DAFeature
public Collection<DAExon> getExons()
getExons
in interface Transcript
public void addExon(Exon exon)
exon
- public Integer getCanonicalTranslationID()
public void setCanonicalTranslationID(Integer canonicalTranslationID)
protected void addTranslation(DATranslation trl)
trl
- public void addTranslations(Collection<DATranslation> trls)
trls
- Collection<DATranslation>public boolean isTranslated()
isTranslated
in interface Transcript
public Integer convertChromosomeToPrimaryTranscriptPosition(Integer chromosomePosition)
chromosomePosition
- public Integer convertPrimaryTranscriptPositionToChromosome(Integer primaryTranscriptPosition)
primaryTranscriptPosition
- public Integer convertProcessedTranscriptPositionToChromosome(Integer processedTranscriptPosition) throws DAOException
processedTranscriptPosition
- IntegerDAOException
public Integer convertChromosomeToProcessedTranscriptPosition(Integer chromosomePosition) throws DAOException
chromosomePosition
- IntegerDAOException
public Integer convertProcessedToPrimaryTranscriptPosition(Integer processedTranscriptPosition) throws DAOException
processedTranscriptPosition
- DAOException
public Integer convertPrimaryToProcessedTranscriptPosition(Integer primaryTranscriptPosition) throws DAOException
primaryTranscriptPosition
- DAOException
public DADNASequence getProcessedTranscript() throws DAOException
DAOException
public Integer getProcessedTranscriptLength() throws DAOException
DAOException
public Integer getPrimaryTranscriptLength()
DAOException
public DADNASequence getPrimaryTranscript()
@Deprecated public RNASequence getRNASequence()
getRNASequence
in class DAFeature
public RNASequence getPrimaryTranscriptRNASequence()
@Deprecated public String getRNASequenceAsString()
getRNASequenceAsString
in class DAFeature
public String getPrimaryTranscriptRNASequenceAsString()
@Deprecated public String getRNASequenceAsString(Integer start, Integer stop) throws RangeException
getRNASequenceAsString
in class DAFeature
RangeException
public String getPrimaryTranscriptRNASequenceAsString(Integer start, Integer stop) throws RangeException
RangeException
public RNASequence getProcessedTranscriptRNASequence() throws DAOException
DAOException
public String getProcessedTranscriptRNASequenceAsString() throws DAOException
DAOException
public String getProcessedTranscriptRNASequenceAsString(Integer start, Integer stop) throws RangeException, DAOException
RangeException
DAOException
protected Set<DAXRef> getXRefs(ExternalDBType type)
type
- public DAXRef getDisplayXRef()
getDisplayXRef
in interface WithDisplayXRef
public void setDisplayXRef(DAXRef xref)
public String getVegaID()
getVegaID
in interface VegaFeature
public Set<DAXRef> getVegaXRefs()
getVegaXRefs
in interface VegaFeature
public Set<DAXRef> getCCDSXRefs()
getCCDSXRefs
in interface Transcript
public Set<DAXRef> getAllXRefs()
getAllXRefs
in interface XRefed
public TreeSet<String> getAllSynonyms()
getAllSynonyms
in interface XRefed
public TreeSet<String> getSynonyms(XRef xref)
getSynonyms
in interface XRefed
protected void addTypedXRefs(ExternalDBType type, Collection<? extends XRef> xrefs)
public String getCcdsID()
getCcdsID
in interface Transcript
JEnsembl: A Java API for Ensembl Data Access v1.78
© Roslin Institute 2010-14. GNU General Public License, version3