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


Java Strand.NONE属性代码示例

本文整理汇总了Java中htsjdk.tribble.annotation.Strand.NONE属性的典型用法代码示例。如果您正苦于以下问题:Java Strand.NONE属性的具体用法?Java Strand.NONE怎么用?Java Strand.NONE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在htsjdk.tribble.annotation.Strand的用法示例。


在下文中一共展示了Strand.NONE属性的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setStrand

public void setStrand(final Strand strand) {

        if (strand == Strand.NONE) {
            throw new GATKException("Cannot handle NONE strand.");
        }

        this.strand = strand;
    }
 
开发者ID:broadinstitute,项目名称:gatk,代码行数:8,代码来源:SequenceComparison.java

示例2: provideReferenceAndExonListForGatkExceptions

@DataProvider
Object[][] provideReferenceAndExonListForGatkExceptions() {

    return new Object[][] {
            {
                    new ReferenceContext(new ReferenceFileSource(TEST_REFERENCE), new SimpleInterval(TEST_REFERENCE_CONTIG, TEST_REFERENCE_START, TEST_REFERENCE_END)),
                    Collections.singletonList(
                            new SimpleInterval("2", TEST_REFERENCE_START + 500, TEST_REFERENCE_START + 550)
                    ),
                    Strand.POSITIVE
            },
            {
                    new ReferenceContext(new ReferenceFileSource(TEST_REFERENCE), new SimpleInterval(TEST_REFERENCE_CONTIG, TEST_REFERENCE_START, TEST_REFERENCE_END)),
                    Collections.singletonList(
                            new SimpleInterval("2", TEST_REFERENCE_START + 500, TEST_REFERENCE_START + 550)
                    ),
                    Strand.NEGATIVE
            },
            {
                    new ReferenceContext(new ReferenceFileSource(TEST_REFERENCE), new SimpleInterval(TEST_REFERENCE_CONTIG, TEST_REFERENCE_START, TEST_REFERENCE_END)),
                    Collections.singletonList(
                            new SimpleInterval("2", TEST_REFERENCE_START + 500, TEST_REFERENCE_START + 550)
                    ),
                    Strand.NONE
            },
    };
}
 
开发者ID:broadinstitute,项目名称:gatk,代码行数:27,代码来源:FuncotatorUtilsUnitTest.java

示例3: provideDataForTestAssertValidStrand_InvalidStrands

@DataProvider
Object[][] provideDataForTestAssertValidStrand_InvalidStrands() {
    return new Object[][] {
            { null },
            { Strand.NONE }
    };
}
 
开发者ID:broadinstitute,项目名称:gatk,代码行数:7,代码来源:FuncotatorUtilsUnitTest.java

示例4: getStrand

/** returns the strand */
public Strand getStrand()
	{
	switch(strand)
		{
		case '+': return Strand.POSITIVE;
		case '-': return Strand.NEGATIVE;
		default: return Strand.NONE;
		}
	}
 
开发者ID:lindenb,项目名称:jvarkit,代码行数:10,代码来源:KnownGene.java

示例5: assertValidStrand

/**
 * Asserts that the given strand is non-null and is not equal to {@link Strand#NONE}.
 * Throws an Exception if the strand is {@code null} or equal to {@link Strand#NONE}.
 * @param strand The {@link Strand} to validate.
 */
public static void assertValidStrand( final Strand strand ) {

    Utils.nonNull( strand );

    if ( strand == Strand.NONE ) {
        throw new GATKException("Unable to handle NONE strand.");
    }

}
 
开发者ID:broadinstitute,项目名称:gatk,代码行数:14,代码来源:FuncotatorUtils.java


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