gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-16 09:21:31 26 4
gpt4 key购买 nike

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

ZoomLevelIterator.<init>介绍

[英]Default constructor. This is provided to support return of a subclassed "empty" iterator
[中]默认构造函数。这是为了支持返回子类“空”迭代器

代码示例

代码示例来源:origin: edu.toronto.cs.savant/savant-core

ZoomLevelIterator zoomIterator = new ZoomLevelIterator(fis, chromosomeIDTree,
    zoomDataTree, zoomLevel, selectionRegion, contained);

代码示例来源:origin: pcingola/SnpEff

ZoomLevelIterator zoomIterator = new ZoomLevelIterator(fis, chromosomeIDTree,
    zoomDataTree, zoomLevel, selectionRegion, contained);

代码示例来源:origin: edu.toronto.cs.savant/savant-core

/**
 * Returns an iterator for zoom level records for all chromosome regions.
 * <p/>
 * Note: the BBFile can be BigBed or BigWig.
 * <p/>
 * Parameters:
 * zoomLevel - zoom level for data extraction; levels start at 1
 * <p/>
 * Returns:
 * Iterator to provide BedFeature(s) for the requested chromosome region.
 * Error conditions:
 * 1) An empty iterator is returned if region has no data available
 */
public ZoomLevelIterator getZoomLevelIterator(int zoomLevel) {
  // check for valid zoom level
  if (zoomLevel < 1 || zoomLevel > zoomLevelCount)
    throw new RuntimeException("Error: ZoomLevelIterator zoom level is out of range\n");
  // get the appropriate zoom level R+ zoom data index tree
  RPTree zoomDataTree = zoomLevels.getZoomLevelRPTree(zoomLevel);
  // get all regions bounds
  RPChromosomeRegion selectionRegion = zoomDataTree.getChromosomeBounds();
  // compose an iterator
  boolean contained = true;   //all regions are contained
  ZoomLevelIterator zoomIterator = new ZoomLevelIterator(fis, chromosomeIDTree,
      zoomDataTree, zoomLevel, selectionRegion, contained);
  return zoomIterator;
}

代码示例来源:origin: pcingola/SnpEff

/**
 * Returns an iterator for zoom level records for all chromosome regions.
 * <p/>
 * Note: the BBFile can be BigBed or BigWig.
 * <p/>
 * Parameters:
 * zoomLevel - zoom level for data extraction; levels start at 1
 * <p/>
 * Returns:
 * Iterator to provide BedFeature(s) for the requested chromosome region.
 * Error conditions:
 * 1) An empty iterator is returned if region has no data available
 */
public ZoomLevelIterator getZoomLevelIterator(int zoomLevel) {
  // check for valid zoom level
  if (zoomLevel < 1 || zoomLevel > zoomLevelCount)
    throw new RuntimeException("Error: ZoomLevelIterator zoom level is out of range\n");
  // get the appropriate zoom level R+ zoom data index tree
  RPTree zoomDataTree = zoomLevels.getZoomLevelRPTree(zoomLevel);
  // get all regions bounds
  RPChromosomeRegion selectionRegion = zoomDataTree.getChromosomeBounds();
  // compose an iterator
  boolean contained = true;   //all regions are contained
  ZoomLevelIterator zoomIterator = new ZoomLevelIterator(fis, chromosomeIDTree,
      zoomDataTree, zoomLevel, selectionRegion, contained);
  return zoomIterator;
}

代码示例来源:origin: igvteam/igv

/**
 * Returns an iterator for zoom level records for all chromosome regions.
 * <p/>
 * Note: the BBFile can be BigBed or BigWig.
 * <p/>
 * Parameters:
 * zoomLevel - zoom level for data extraction; levels start at 1
 * <p/>
 * Returns:
 * Iterator to provide BedFeature(s) for the requested chromosome region.
 * Error conditions:
 * 1) An empty iterator is returned if region has no data available
 */
synchronized public ZoomLevelIterator getZoomLevelIterator(int zoomLevel) {
  // check for valid zoom level
  if (zoomLevel < 1 || zoomLevel > zoomLevelCount)
    throw new RuntimeException("Error: ZoomLevelIterator zoom level is out of range\n");
  // get the appropriate zoom level R+ zoom data index tree
  RPTree zoomDataTree = zoomLevels.getZoomLevelRPTree(zoomLevel);
  // get all regions bounds
  RPChromosomeRegion selectionRegion = zoomDataTree.getChromosomeBounds();
  // compose an iterator
  boolean contained = true;   //all regions are contained
  ZoomLevelIterator zoomIterator = new ZoomLevelIterator(fis, chromosomeIDTree,
      zoomDataTree, zoomLevel, selectionRegion, contained);
  return zoomIterator;
}

代码示例来源:origin: igvteam/igv

ZoomLevelIterator zoomIterator = new ZoomLevelIterator(fis, chromosomeIDTree,
    zoomDataTree, zoomLevel, selectionRegion, contained);

代码示例来源:origin: edu.toronto.cs.savant/savant-core

ZoomLevelIterator zoomIterator = new ZoomLevelIterator(fis, chromosomeIDTree,
    zoomDataTree, zoomLevel, selectionRegion, contained);

代码示例来源:origin: pcingola/SnpEff

ZoomLevelIterator zoomIterator = new ZoomLevelIterator(fis, chromosomeIDTree,
    zoomDataTree, zoomLevel, selectionRegion, contained);

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com