Class BioSequence
java.lang.Object
ubic.gemma.model.common.AbstractIdentifiable
ubic.gemma.model.common.AbstractDescribable
ubic.gemma.model.genome.biosequence.BioSequence
- All Implemented Interfaces:
Describable,Identifiable
The sequence of a biological polymer such as a protein or DNA. BioSequences may be artificial, such as Affymetrix reporter oligonucleotide chains, or they may be the sequence
of nucleotides associated with a gene product. This class only represents the sequence itself ("ATCGCCG..."), not the physical item, and not the database entry for the sequence.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanImportant note: Two objects with the same class and non-null ID must be considered equal.getId()getName()Obtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.getTaxon()getType()inthashCode()Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.voidsetBioSequence2GeneProduct(Set<BioSequence2GeneProduct> bioSequence2GeneProduct) voidsetFractionRepeats(Double fractionRepeats) voidsetIsApproximateLength(Boolean isApproximateLength) voidsetIsCircular(Boolean isCircular) voidvoidsetPolymerType(PolymerType polymerType) voidsetSequence(String sequence) voidsetSequenceDatabaseEntry(DatabaseEntry sequenceDatabaseEntry) voidvoidsetType(SequenceType type) Methods inherited from class ubic.gemma.model.common.AbstractDescribable
getDescription, setDescription, setName, toStringMethods inherited from class ubic.gemma.model.common.AbstractIdentifiable
setId
-
Constructor Details
-
BioSequence
public BioSequence()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceIdentifiable- Overrides:
getIdin classAbstractIdentifiable
-
getName
Description copied from interface:DescribableObtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.- Specified by:
getNamein interfaceDescribable- Overrides:
getNamein classAbstractDescribable
-
getBioSequence2GeneProduct
-
setBioSequence2GeneProduct
-
getFractionRepeats
- Returns:
- The fraction of the sequences determined to be made up of repeats (e.g., via repeat masker)
-
setFractionRepeats
-
getIsApproximateLength
-
setIsApproximateLength
-
getIsCircular
-
setIsCircular
-
getLength
-
setLength
-
getPolymerType
-
setPolymerType
-
getSequence
-
setSequence
- Parameters:
sequence- The actual nucleotic sequence as in ATGC
-
getSequenceDatabaseEntry
-
setSequenceDatabaseEntry
-
getTaxon
-
setTaxon
-
getType
-
setType
-
hashCode
public int hashCode()Description copied from class:AbstractIdentifiableImportant note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.- Overrides:
hashCodein classAbstractDescribable
-
equals
Description copied from class:AbstractIdentifiableImportant note: Two objects with the same class and non-null ID must be considered equal. If one or both IDs are nulls, the rest of the state can be used to determine equality.- Specified by:
equalsin classAbstractIdentifiable
-