本文整理汇总了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;
}
示例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
},
};
}
示例3: provideDataForTestAssertValidStrand_InvalidStrands
@DataProvider
Object[][] provideDataForTestAssertValidStrand_InvalidStrands() {
return new Object[][] {
{ null },
{ Strand.NONE }
};
}
示例4: getStrand
/** returns the strand */
public Strand getStrand()
{
switch(strand)
{
case '+': return Strand.POSITIVE;
case '-': return Strand.NEGATIVE;
default: return Strand.NONE;
}
}
示例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.");
}
}