Search in sources :

Example 6 with GCProfile

use of com.hartwig.hmftools.common.gc.GCProfile in project hmftools by hartwigmedical.

the class GCAccumulatorTest method testExcludeOverlapAtStart.

@Test
public void testExcludeOverlapAtStart() {
    final GenomeRegion region = GenomeRegionFactory.create(CHROMOSOME, 1100, 3000);
    final GCAccumulator victim = new GCAccumulator(region);
    final GenomeRegionSelector<GCProfile> selector = selector(profile(1001, 0.90), profile(2001, 0.91));
    selector.select(region, victim);
    assertEquals(0.91, victim.averageGCContent(), EPSILON);
}
Also used : GenomeRegion(com.hartwig.hmftools.common.region.GenomeRegion) ImmutableGCProfile(com.hartwig.hmftools.common.gc.ImmutableGCProfile) GCProfile(com.hartwig.hmftools.common.gc.GCProfile) Test(org.junit.Test)

Aggregations

GCProfile (com.hartwig.hmftools.common.gc.GCProfile)6 ImmutableGCProfile (com.hartwig.hmftools.common.gc.ImmutableGCProfile)5 GenomeRegion (com.hartwig.hmftools.common.region.GenomeRegion)5 Test (org.junit.Test)5 AmberBAF (com.hartwig.hmftools.common.amber.AmberBAF)1 CobaltRatio (com.hartwig.hmftools.common.cobalt.CobaltRatio)1 PurpleSegment (com.hartwig.hmftools.common.purple.segment.PurpleSegment)1 NotNull (org.jetbrains.annotations.NotNull)1