public class GenomicIndexUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BIN_GENOMIC_SPAN
Reports the total amount of genomic data that any bin can index.
|
static int[] |
LEVEL_STARTS
What is the starting bin for each level?
|
static int |
MAX_BINS
Reports the maximum number of bins that can appear in a binning index.
|
static int |
MAX_LINEAR_INDEX_SIZE |
static int |
UNSET_GENOMIC_LOCATION
E.g.
|
Constructor and Description |
---|
GenomicIndexUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
binTolevel(int bin)
Return the binning index level for the given bin.
|
static java.lang.String |
getBinSummaryString(int bin)
Return a summary string describing the bin level, level size, and genomic territory covered by the
bin.
|
static int |
levelToSize(int level)
Return the binning index bin size for bins in the given bin.
|
static int |
regionToBin(int beg,
int end)
calculate the bin given an alignment in [beg,end)
Described in "The Human Genome Browser at UCSC.
|
static int |
regionToBin(int beg,
int end,
int minShift,
int binDepth)
calculate the bin given an alignment in [beg,end)
Described in "The Human Genome Browser at UCSC.
|
static java.util.BitSet |
regionToBins(int startPos,
int endPos)
Get candidate bins for the specified region
|
static java.util.BitSet |
regionToBins(int startPos,
int endPos,
int minShift,
int binDepth)
Get candidate bins for the specified region
|
public static final int BIN_GENOMIC_SPAN
public static final int[] LEVEL_STARTS
public static final int MAX_BINS
public static final int MAX_LINEAR_INDEX_SIZE
public static final int UNSET_GENOMIC_LOCATION
public static int binTolevel(int bin)
bin
- the bin to analyzepublic static int levelToSize(int level)
level
- the level to analyzepublic static java.lang.String getBinSummaryString(int bin)
bin
- input binpublic static int regionToBin(int beg, int end)
beg
- 0-based start of read (inclusive)end
- 0-based end of read (exclusive)public static int regionToBin(int beg, int end, int minShift, int binDepth)
beg
- 0-based start of read (inclusive)end
- 0-based end of read (exclusive)minShift
- minimum bin width (2^minShift)binDepth
- number of levels in the binning scheme (including bin 0)public static java.util.BitSet regionToBins(int startPos, int endPos)
startPos
- 1-based start of target region, inclusive.endPos
- 1-based end of target region, inclusive.public static java.util.BitSet regionToBins(int startPos, int endPos, int minShift, int binDepth)
startPos
- 1-based start of target region, inclusive.endPos
- 1-based end of target region, inclusive.minShift
- minimum bin width (2^minShift).binDepth
- number of levels in the binning scheme (including bin 0).