htsjdk.samtools.util.Histogram.getValueLabel()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(163)

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

Histogram.getValueLabel介绍

暂无

代码示例

代码示例来源:origin: samtools/htsjdk

for (final Histogram<HKEY> histo : nonEmptyHistograms) {
  out.append(SEPARATOR);
  out.append(StringUtil.assertCharactersNotInString(histo.getValueLabel(), '\t', '\n'));

代码示例来源:origin: com.github.samtools/htsjdk

for (final Histogram<HKEY> histo : nonEmptyHistograms) {
  out.append(SEPARATOR);
  out.append(StringUtil.assertCharactersNotInString(histo.getValueLabel(), '\t', '\n'));

代码示例来源:origin: org.seqdoop/htsjdk

for (final Histogram<HKEY> histo : nonEmptyHistograms) {
  out.append(SEPARATOR);
  out.append(StringUtil.assertCharactersNotInString(histo.getValueLabel(), '\t', '\n'));

代码示例来源:origin: samtools/htsjdk

@Test
public void testLabels() {
  final int[] is = {4,4,5,5,5};
  final Histogram<Integer> histo = new Histogram<>("FOO", "BAR");
  for (final int i : is) histo.increment(i);
  Assert.assertEquals(histo.getBinLabel(),"FOO");
  Assert.assertEquals(histo.getValueLabel(),"BAR");
}

代码示例来源:origin: broadinstitute/picard

@Override
public void test() throws IOException {
  final MetricsFile<DuplicationMetrics, Double> metricsOutput = testMetrics();
  // Check contents of set size bin against expected values
  if (!expectedSetSizeMap.isEmpty()) {
    boolean checked = false;
    for (final Histogram<Double> histo : metricsOutput.getAllHistograms()) {
      final String label = histo.getValueLabel();
      for (final Double bin : histo.keySet()) {
        final String binStr = String.valueOf(bin);
        final List<String> labelBinStr = Arrays.asList(label, binStr);
        if (expectedSetSizeMap.containsKey(labelBinStr)) {
          checked = true;
          Histogram.Bin<Double> binValue = histo.get(bin);
          final double actual = binValue.getValue();
          final double expected = expectedSetSizeMap.get(labelBinStr);
          Assert.assertEquals(actual, expected);
        }
      }
    }
    if (!checked) {
      Assert.fail("Could not not find matching entry for expectedSetSizeMap in metrics.");
    }
  }
}

代码示例来源:origin: broadinstitute/picard

if (histogram.getValueLabel().equals("count_WHOLE_GENOME")) {
  Assert.assertEquals(histogram.get(0).getValue(), 1080d);
} else {

代码示例来源:origin: broadinstitute/picard

if (histogram.getValueLabel().equals("count_WHOLE_GENOME")) {
  Assert.assertEquals(histogram.get(0).getValue(), 274d);
} else {

相关文章