org.broad.igv.bbfile.ZoomDataBlock.getZoomData()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(3.3k)|赞(0)|评价(0)|浏览(69)

本文整理了Java中org.broad.igv.bbfile.ZoomDataBlock.getZoomData()方法的一些代码示例,展示了ZoomDataBlock.getZoomData()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZoomDataBlock.getZoomData()方法的具体详情如下:
包路径:org.broad.igv.bbfile.ZoomDataBlock
类名称:ZoomDataBlock
方法名:getZoomData

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;
}

相关文章