Class Region
java.lang.Object
pl.poznan.put.structure.pseudoknots.Region
- All Implemented Interfaces:
Comparable<Region>
- Direct Known Subclasses:
ImmutableRegion
A collection of pairs (BPSEQ entries) which are consecutive in sequence.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
begin()
final int
createRegions
(BpSeq bpSeq) Creates a list of regions from a secondary structure in BPSEQ format.int
end()
abstract List<BpSeq.Entry>
entries()
boolean
final int
length()
static Region
Merges many regions into a new one.final String
toString()
-
Constructor Details
-
Region
public Region()
-
-
Method Details
-
createRegions
Creates a list of regions from a secondary structure in BPSEQ format.- Parameters:
bpSeq
- The input BPSEQ structure.- Returns:
- A list of regions in the structure.
-
merge
Merges many regions into a new one.- Parameters:
regions
- An array of regions to merge.- Returns:
- A new intance of this class created by merging the input regions.
-
entries
- Returns:
- The list of BPSEQ entries in this region.
-
length
public final int length()- Returns:
- The number of BPSEQ entries in this region.
-
begin
@Default public int begin()- Returns:
- The first index of a region.
-
end
@Default public int end()- Returns:
- The last index of a region.
-
isRemoved
@Default @Auxiliary public boolean isRemoved()- Returns:
- True if this region was removed.
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Region>
-
toString
-