public class Segment extends Object implements Comparable<Segment>
| Constructor and Description |
|---|
Segment(int start,
int end,
String id,
String strand) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Segment seg) |
int |
distance(Segment segment2) |
boolean |
equals(Object obj) |
int |
getEnd() |
String |
getId() |
int |
getLength()
Return the length of this annotation segment (number of bases in the segment).
|
int |
getStart() |
String |
getStrand() |
Segment |
merge(Segment mergee) |
boolean |
overlap(Segment segment2) |
boolean |
overlapPosition(int position)
Determine if the segment overlaps with position.
|
String |
toString() |
public int getStart()
public int getEnd()
public String getId()
public String getStrand()
public int compareTo(Segment seg)
compareTo in interface Comparable<Segment>public int getLength()
public boolean overlap(Segment segment2)
public int distance(Segment segment2)
public final boolean overlapPosition(int position)
position - query position.Copyright © 2017 Campagne Laboratory. All rights reserved.