Пример #1
0
 private BaselineProfile buildProfileWithUnknownExpression() {
   BaselineExpression unknownExpression1 =
       new BaselineExpression("NT", new FactorSet().add(factor1));
   BaselineProfile profileWithUnknownExpression = new BaselineProfile("OTHER_ID", "OTHER_NAME");
   profileWithUnknownExpression.add(QUERY_FACTOR_TYPE, unknownExpression1);
   return profileWithUnknownExpression;
 }
Пример #2
0
 @Before
 public void setUp() throws Exception {
   subject = new BaselineProfile(GENE_ID, GENE_NAME);
   subject
       .add(QUERY_FACTOR_TYPE, expression_1)
       .add(QUERY_FACTOR_TYPE, expression_2)
       .add(QUERY_FACTOR_TYPE, expression_3);
 }
Пример #3
0
  @Test
  public void nonTissueExpressionsDoNotAffectMinOrMax() {
    assertThat(subject.getMinExpressionLevel(), is(2.2));
    assertThat(subject.getMaxExpressionLevel(), is(3.001));

    subject.add(QUERY_FACTOR_TYPE, new BaselineExpression("NT", new FactorSet().add(factor1)));

    assertThat(subject.getMinExpressionLevel(), is(2.2));
    assertThat(subject.getMaxExpressionLevel(), is(3.001));
  }
Пример #4
0
  BaselineProfile buildOtherProfile() {
    BaselineExpression expression_1 = new BaselineExpression(1D, new FactorSet().add(factor1));
    BaselineExpression expression_2 = new BaselineExpression(2D, new FactorSet().add(factor2));
    BaselineExpression expression_3 = new BaselineExpression(3D, new FactorSet().add(factor3));
    BaselineExpression expression_4 = new BaselineExpression(300D, new FactorSet().add(factor4));

    BaselineProfile baselineProfile = new BaselineProfile("OTHER_ID", "OTHER_NAME");

    return baselineProfile
        .add(QUERY_FACTOR_TYPE, expression_1)
        .add(QUERY_FACTOR_TYPE, expression_2)
        .add(QUERY_FACTOR_TYPE, expression_3)
        .add(QUERY_FACTOR_TYPE, expression_4);
  }