Package ubic.gemma.model.genome
Class PhysicalLocation
- java.lang.Object
-
- ubic.gemma.model.genome.ChromosomeLocation
-
- ubic.gemma.model.genome.PhysicalLocation
-
- All Implemented Interfaces:
Serializable
,Identifiable
public class PhysicalLocation extends ChromosomeLocation
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PhysicalLocation.Factory
-
Constructor Summary
Constructors Constructor Description PhysicalLocation()
No-arg constructor added to satisfy javabean contract
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
binFromRange(int start, int end)
int
compareTo(Object object)
static int
computeOverlap(long starta, long enda, long startb, long endb)
int
computeOverlap(PhysicalLocation other)
boolean
equals(Object object)
Returnstrue
if the argument is an ChromosomeLocation instance and all identifiers for this entity equal the identifiers of the argument entity.Integer
getBin()
Long
getNucleotide()
Integer
getNucleotideLength()
String
getStrand()
int
hashCode()
Returns a hash code based on this entity's identifiers.void
setBin(Integer bin)
void
setNucleotide(Long nucleotide)
void
setNucleotideLength(Integer nucleotideLength)
void
setStrand(String strand)
String
toString()
-
Methods inherited from class ubic.gemma.model.genome.ChromosomeLocation
getChromosome, getId, setChromosome, setId
-
-
-
-
Method Detail
-
computeOverlap
public static int computeOverlap(long starta, long enda, long startb, long endb)
-
binFromRange
public int binFromRange(int start, int end)
- Parameters:
start
- startend
- end- Returns:
- bin that this start-end segment is in
-
compareTo
public int compareTo(Object object)
- Specified by:
compareTo
in classChromosomeLocation
- See Also:
Comparable.compareTo(Object)
-
hashCode
public int hashCode()
Description copied from class:ChromosomeLocation
Returns a hash code based on this entity's identifiers.- Overrides:
hashCode
in classChromosomeLocation
-
equals
public boolean equals(Object object)
Description copied from class:ChromosomeLocation
Returnstrue
if the argument is an ChromosomeLocation instance and all identifiers for this entity equal the identifiers of the argument entity. Returnsfalse
otherwise.- Overrides:
equals
in classChromosomeLocation
-
computeOverlap
public int computeOverlap(PhysicalLocation other)
-
getBin
public Integer getBin()
- Returns:
- Index to speed up queries
-
setBin
public void setBin(Integer bin)
-
getNucleotide
public Long getNucleotide()
-
setNucleotide
public void setNucleotide(Long nucleotide)
-
getNucleotideLength
public Integer getNucleotideLength()
-
setNucleotideLength
public void setNucleotideLength(Integer nucleotideLength)
-
getStrand
public String getStrand()
-
setStrand
public void setStrand(String strand)
-
-