use of org.broadinstitute.hellbender.utils.recalibration.RecalibrationArgumentCollection in project gatk by broadinstitute.
the class ContextCovariateUnitTest method init.
@BeforeClass
public void init() {
RAC = new RecalibrationArgumentCollection();
covariate = new ContextCovariate(RAC);
}
use of org.broadinstitute.hellbender.utils.recalibration.RecalibrationArgumentCollection in project gatk by broadinstitute.
the class ReadGroupCovariateUnitTest method testMissingPlatformUnit.
@Test
public void testMissingPlatformUnit() {
final String expected = "MY.7";
final ReadGroupCovariate covariate = new ReadGroupCovariate(new RecalibrationArgumentCollection(), Arrays.asList(expected));
SAMReadGroupRecord rg = new SAMReadGroupRecord(expected);
runTest(rg, expected, covariate);
}
use of org.broadinstitute.hellbender.utils.recalibration.RecalibrationArgumentCollection in project gatk by broadinstitute.
the class ReadGroupCovariateUnitTest method testMissingKey.
@Test(expectedExceptions = IllegalStateException.class)
public void testMissingKey() {
final String id = "MY.ID";
final String expected = "SAMPLE.1";
final ReadGroupCovariate covariate = new ReadGroupCovariate(new RecalibrationArgumentCollection(), Arrays.asList(expected));
final String s = covariate.formatKey(1);
}
use of org.broadinstitute.hellbender.utils.recalibration.RecalibrationArgumentCollection in project gatk by broadinstitute.
the class ReadGroupCovariateUnitTest method testMaxValue.
@Test
public void testMaxValue() {
final String id = "MY.ID";
final String expected = "SAMPLE.1";
final ReadGroupCovariate covariate = new ReadGroupCovariate(new RecalibrationArgumentCollection(), Arrays.asList(expected));
SAMReadGroupRecord rg = new SAMReadGroupRecord(id);
rg.setPlatformUnit(expected);
//there's just 1 read group, so 0 is the max value
Assert.assertEquals(covariate.maximumKeyValue(), 0);
}
use of org.broadinstitute.hellbender.utils.recalibration.RecalibrationArgumentCollection in project gatk by broadinstitute.
the class ReadGroupCovariateUnitTest method testSingleRecord.
@Test
public void testSingleRecord() {
final String id = "MY.ID";
final String expected = "SAMPLE.1";
final ReadGroupCovariate covariate = new ReadGroupCovariate(new RecalibrationArgumentCollection(), Arrays.asList(expected));
SAMReadGroupRecord rg = new SAMReadGroupRecord(id);
rg.setPlatformUnit(expected);
runTest(rg, expected, covariate);
}
Aggregations