本文整理汇总了Java中htsjdk.variant.vcf.VCFConstants.PASSES_FILTERS_v4方法的典型用法代码示例。如果您正苦于以下问题:Java VCFConstants.PASSES_FILTERS_v4方法的具体用法?Java VCFConstants.PASSES_FILTERS_v4怎么用?Java VCFConstants.PASSES_FILTERS_v4使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类htsjdk.variant.vcf.VCFConstants
的用法示例。
在下文中一共展示了VCFConstants.PASSES_FILTERS_v4方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: generateFilterString
import htsjdk.variant.vcf.VCFConstants; //导入方法依赖的package包/类
protected String generateFilterString(final double lod) {
String filterString = null;
if (TS_FILTER_LEVEL != null) {
for (int i = tranches.size() - 1; i >= 0; i--) {
final TruthSensitivityTranche tranche = tranches.get(i);
if (lod >= tranche.minVQSLod) {
if (i == tranches.size() - 1) {
filterString = VCFConstants.PASSES_FILTERS_v4;
} else {
filterString = tranche.name;
}
break;
}
}
if (filterString == null) {
filterString = tranches.get(0).name + "+";
}
} else {
filterString = (lod < VQSLOD_CUTOFF ? LOW_VQSLOD_FILTER_NAME : VCFConstants.PASSES_FILTERS_v4);
}
return filterString;
}
示例2: getFilterString
import htsjdk.variant.vcf.VCFConstants; //导入方法依赖的package包/类
public String getFilterString() {
if (filters.isEmpty()) {
return VCFConstants.PASSES_FILTERS_v4;
} else {
return filters.stream().sorted().map(Enum<EvaluationFilter>::name)
.collect(Collectors.joining(VCFConstants.FILTER_CODE_SEPARATOR));
}
}
示例3: genotypeFiltering
import htsjdk.variant.vcf.VCFConstants; //导入方法依赖的package包/类
@DataProvider(name = "GenotypeFiltering")
public Object[][] genotypeFiltering() {
return new Object[][]{
{VCFConstants.PASSES_FILTERS_v4, "Foo", "Foo"},
{"Foo", "Bar", "Foo;Bar"},
{"Foo", "Bar;Baz", "Foo;Bar;Baz"},
{"Foo;Baz", "Bar", "Foo;Baz;Bar"},
{null, "Foo", "Foo"},
{VCFConstants.UNFILTERED, "Foo", "Foo"},
};
}
示例4: getFilterString
import htsjdk.variant.vcf.VCFConstants; //导入方法依赖的package包/类
private String getFilterString(final VariantContext vc) {
if (vc.isFiltered()) {
return ParsingUtils.join(";", ParsingUtils.sortList(vc.getFilters()));
} else if (vc.filtersWereApplied()) return VCFConstants.PASSES_FILTERS_v4;
else return VCFConstants.UNFILTERED;
}