本文整理了Java中org.broad.igv.bbfile.ZoomDataBlock.getZoomData()
方法的一些代码示例,展示了ZoomDataBlock.getZoomData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoomDataBlock.getZoomData()
方法的具体详情如下:
包路径:org.broad.igv.bbfile.ZoomDataBlock
类名称:ZoomDataBlock
方法名:getZoomData
暂无
代码示例来源:origin: igvteam/igv
private boolean getDataBlock(int leafItemIndex) {
// check for valid data block
if (leafHitList == null || leafItemIndex >= leafHitList.size())
return false;
// Perform a block read for indexed leaf item
leafHitItem = leafHitList.get(leafItemIndex);
// get the chromosome names associated with the hit region ID's
int startChromID = leafHitItem.getChromosomeBounds().getStartChromID();
int endChromID = leafHitItem.getChromosomeBounds().getEndChromID();
chromosomeMap = chromIDTree.getChromosomeIDMap(startChromID, endChromID);
boolean isLowToHigh = zoomDataTree.isIsLowToHigh();
int uncompressBufSize = zoomDataTree.getUncompressBuffSize();
// decompress leaf item data block for feature extraction
zoomDataBlock = new ZoomDataBlock(zoomLevel, fis, leafHitItem, chromosomeMap,
isLowToHigh, uncompressBufSize);
// get data block zoom data record list and set next index to first item
zoomRecordList = zoomDataBlock.getZoomData(selectionRegion, isContained);
zoomRecordIndex = 0;
// data block items available for iterator
if (zoomRecordList.size() > 0)
return true;
else
return false;
}
代码示例来源:origin: edu.toronto.cs.savant/savant-core
private boolean getDataBlock(int leafItemIndex) {
// check for valid data block
if (leafHitList == null || leafItemIndex >= leafHitList.size())
return false;
// Perform a block read for indexed leaf item
leafHitItem = leafHitList.get(leafItemIndex);
// get the chromosome names associated with the hit region ID's
int startChromID = leafHitItem.getChromosomeBounds().getStartChromID();
int endChromID = leafHitItem.getChromosomeBounds().getEndChromID();
chromosomeMap = chromIDTree.getChromosomeIDMap(startChromID, endChromID);
boolean isLowToHigh = zoomDataTree.isIsLowToHigh();
int uncompressBufSize = zoomDataTree.getUncompressBuffSize();
// decompress leaf item data block for feature extraction
zoomDataBlock = new ZoomDataBlock(zoomLevel, fis, leafHitItem, chromosomeMap,
isLowToHigh, uncompressBufSize);
// get data block zoom data record list and set next index to first item
zoomRecordList = zoomDataBlock.getZoomData(selectionRegion, isContained);
zoomRecordIndex = 0;
// data block items available for iterator
if (zoomRecordList.size() > 0)
return true;
else
return false;
}
代码示例来源:origin: pcingola/SnpEff
private boolean getDataBlock(int leafItemIndex) {
// check for valid data block
if (leafHitList == null || leafItemIndex >= leafHitList.size())
return false;
// Perform a block read for indexed leaf item
leafHitItem = leafHitList.get(leafItemIndex);
// get the chromosome names associated with the hit region ID's
int startChromID = leafHitItem.getChromosomeBounds().getStartChromID();
int endChromID = leafHitItem.getChromosomeBounds().getEndChromID();
chromosomeMap = chromIDTree.getChromosomeIDMap(startChromID, endChromID);
boolean isLowToHigh = zoomDataTree.isIsLowToHigh();
int uncompressBufSize = zoomDataTree.getUncompressBuffSize();
// decompress leaf item data block for feature extraction
zoomDataBlock = new ZoomDataBlock(zoomLevel, fis, leafHitItem, chromosomeMap,
isLowToHigh, uncompressBufSize);
// get data block zoom data record list and set next index to first item
zoomRecordList = zoomDataBlock.getZoomData(selectionRegion, isContained);
zoomRecordIndex = 0;
// data block items available for iterator
if (zoomRecordList.size() > 0)
return true;
else
return false;
}
内容来源于网络,如有侵权,请联系作者删除!