当前位置: 首页>>代码示例>>Java>>正文


Java VCFConstants.PASSES_FILTERS_v4方法代码示例

本文整理汇总了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;
}
 
开发者ID:BGI-flexlab,项目名称:SOAPgaea,代码行数:25,代码来源:ApplyVQSR.java

示例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));
    }
}
 
开发者ID:broadinstitute,项目名称:gatk-protected,代码行数:9,代码来源:GenotypeEvaluationRecord.java

示例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"},
    };
}
 
开发者ID:broadinstitute,项目名称:gatk-protected,代码行数:12,代码来源:OrientationBiasUtilsUnitTest.java

示例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;
}
 
开发者ID:PAA-NCIC,项目名称:SparkSeq,代码行数:7,代码来源:VC2VcfRecordTransfer.java


注:本文中的htsjdk.variant.vcf.VCFConstants.PASSES_FILTERS_v4方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。