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
@Indexed public class BioSequence extends AbstractDescribable
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 Modifier and Type Class Description static class
BioSequence.Factory
-
Constructor Summary
Constructors Constructor Description BioSequence()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Important note: Two objects with the same class and non-null ID must be considered equal.Set<BioSequence2GeneProduct>
getBioSequence2GeneProduct()
Double
getFractionRepeats()
Long
getId()
Boolean
getIsApproximateLength()
Boolean
getIsCircular()
Long
getLength()
String
getName()
Obtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.PolymerType
getPolymerType()
String
getSequence()
DatabaseEntry
getSequenceDatabaseEntry()
Taxon
getTaxon()
SequenceType
getType()
int
hashCode()
Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.void
setBioSequence2GeneProduct(Set<BioSequence2GeneProduct> bioSequence2GeneProduct)
void
setFractionRepeats(Double fractionRepeats)
void
setIsApproximateLength(Boolean isApproximateLength)
void
setIsCircular(Boolean isCircular)
void
setLength(Long length)
void
setPolymerType(PolymerType polymerType)
void
setSequence(String sequence)
void
setSequenceDatabaseEntry(DatabaseEntry sequenceDatabaseEntry)
void
setTaxon(Taxon taxon)
void
setType(SequenceType type)
-
Methods inherited from class ubic.gemma.model.common.AbstractDescribable
getDescription, setDescription, setName, toString
-
Methods inherited from class ubic.gemma.model.common.AbstractIdentifiable
setId
-
-
-
-
Method Detail
-
getId
@DocumentId public Long getId()
- Specified by:
getId
in interfaceIdentifiable
- Overrides:
getId
in classAbstractIdentifiable
-
getName
@Field public String getName()
Description copied from interface:Describable
Obtain the name of an object is a possibly ambiguous human-readable identifier that need not be an external database reference.- Specified by:
getName
in interfaceDescribable
- Overrides:
getName
in classAbstractDescribable
-
getBioSequence2GeneProduct
public Set<BioSequence2GeneProduct> getBioSequence2GeneProduct()
-
setBioSequence2GeneProduct
public void setBioSequence2GeneProduct(Set<BioSequence2GeneProduct> bioSequence2GeneProduct)
-
getFractionRepeats
public Double getFractionRepeats()
- Returns:
- The fraction of the sequences determined to be made up of repeats (e.g., via repeat masker)
-
setFractionRepeats
public void setFractionRepeats(Double fractionRepeats)
-
getIsApproximateLength
public Boolean getIsApproximateLength()
-
setIsApproximateLength
public void setIsApproximateLength(Boolean isApproximateLength)
-
getIsCircular
public Boolean getIsCircular()
-
setIsCircular
public void setIsCircular(Boolean isCircular)
-
getLength
public Long getLength()
-
setLength
public void setLength(Long length)
-
getPolymerType
@Nullable public PolymerType getPolymerType()
-
setPolymerType
public void setPolymerType(@Nullable PolymerType polymerType)
-
getSequence
public String getSequence()
-
setSequence
public void setSequence(String sequence)
- Parameters:
sequence
- The actual nucleotic sequence as in ATGC
-
getSequenceDatabaseEntry
@IndexedEmbedded public DatabaseEntry getSequenceDatabaseEntry()
-
setSequenceDatabaseEntry
public void setSequenceDatabaseEntry(DatabaseEntry sequenceDatabaseEntry)
-
getTaxon
public Taxon getTaxon()
-
setTaxon
public void setTaxon(Taxon taxon)
-
getType
@Nullable public SequenceType getType()
-
setType
public void setType(@Nullable SequenceType type)
-
hashCode
public int hashCode()
Description copied from class:AbstractIdentifiable
Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.- Overrides:
hashCode
in classAbstractDescribable
-
equals
public boolean equals(Object object)
Description copied from class:AbstractIdentifiable
Important 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:
equals
in classAbstractIdentifiable
-
-