Examples of mapAndHash()


Examples of bgu.bio.util.alphabet.StemStructureAlphabet.mapAndHash()

    sim.setStem2(str1);
    sim.run();
    double scoreSelf = sim.getAlignmentScore();
    double diff = scoreSelf - score;
    double expected = structureScoringMatrix.score(
        stemAlphabet.mapAndHash("G|C"), stemAlphabet.mapAndHash("G|C"))
        - structureScoringMatrix.score(stemAlphabet.mapAndHash("G|C"),
            stemAlphabet.mapAndHash("G|U"));
    Assert.assertEquals(expected, diff, 0.01);
  }
View Full Code Here

Examples of bgu.bio.util.alphabet.StemStructureAlphabet.mapAndHash()

    sim.setStem2(str1);
    sim.run();
    double scoreSelf = sim.getAlignmentScore();
    double diff = scoreSelf - score;
    double expected = structureScoringMatrix.score(
        stemAlphabet.mapAndHash("G|C"), stemAlphabet.mapAndHash("G|C"))
        - structureScoringMatrix.score(stemAlphabet.mapAndHash("G|C"),
            stemAlphabet.mapAndHash("G|U"));
    Assert.assertEquals(expected, diff, 0.01);
  }
View Full Code Here

Examples of bgu.bio.util.alphabet.StemStructureAlphabet.mapAndHash()

    sim.run();
    double scoreSelf = sim.getAlignmentScore();
    double diff = scoreSelf - score;
    double expected = structureScoringMatrix.score(
        stemAlphabet.mapAndHash("G|C"), stemAlphabet.mapAndHash("G|C"))
        - structureScoringMatrix.score(stemAlphabet.mapAndHash("G|C"),
            stemAlphabet.mapAndHash("G|U"));
    Assert.assertEquals(expected, diff, 0.01);
  }

  @Test
View Full Code Here

Examples of bgu.bio.util.alphabet.StemStructureAlphabet.mapAndHash()

    double scoreSelf = sim.getAlignmentScore();
    double diff = scoreSelf - score;
    double expected = structureScoringMatrix.score(
        stemAlphabet.mapAndHash("G|C"), stemAlphabet.mapAndHash("G|C"))
        - structureScoringMatrix.score(stemAlphabet.mapAndHash("G|C"),
            stemAlphabet.mapAndHash("G|U"));
    Assert.assertEquals(expected, diff, 0.01);
  }

  @Test
  public void testSameSimilarity3() {
View Full Code Here

Examples of bgu.bio.util.alphabet.StemStructureAlphabet.mapAndHash()

    sim.setStem2(str1);
    sim.run();
    double scoreSelf = sim.getAlignmentScore();
    double diff = scoreSelf - score;
    double expected = structureScoringMatrix.score(
        stemAlphabet.mapAndHash("U|G"), stemAlphabet.mapAndHash("U|G"))
        + structureScoringMatrix.score(stemAlphabet.mapAndHash("G|C"),
            stemAlphabet.mapAndHash("G|C"))
        - (structureScoringMatrix.score(stemAlphabet.mapAndHash("U|G"),
            stemAlphabet.emptyLetterHashed()) + structureScoringMatrix
            .score(stemAlphabet.mapAndHash("G|C"),
View Full Code Here

Examples of bgu.bio.util.alphabet.StemStructureAlphabet.mapAndHash()

    sim.setStem2(str1);
    sim.run();
    double scoreSelf = sim.getAlignmentScore();
    double diff = scoreSelf - score;
    double expected = structureScoringMatrix.score(
        stemAlphabet.mapAndHash("U|G"), stemAlphabet.mapAndHash("U|G"))
        + structureScoringMatrix.score(stemAlphabet.mapAndHash("G|C"),
            stemAlphabet.mapAndHash("G|C"))
        - (structureScoringMatrix.score(stemAlphabet.mapAndHash("U|G"),
            stemAlphabet.emptyLetterHashed()) + structureScoringMatrix
            .score(stemAlphabet.mapAndHash("G|C"),
View Full Code Here

Examples of bgu.bio.util.alphabet.StemStructureAlphabet.mapAndHash()

    sim.run();
    double scoreSelf = sim.getAlignmentScore();
    double diff = scoreSelf - score;
    double expected = structureScoringMatrix.score(
        stemAlphabet.mapAndHash("U|G"), stemAlphabet.mapAndHash("U|G"))
        + structureScoringMatrix.score(stemAlphabet.mapAndHash("G|C"),
            stemAlphabet.mapAndHash("G|C"))
        - (structureScoringMatrix.score(stemAlphabet.mapAndHash("U|G"),
            stemAlphabet.emptyLetterHashed()) + structureScoringMatrix
            .score(stemAlphabet.mapAndHash("G|C"),
                stemAlphabet.emptyLetterHashed()));
View Full Code Here

Examples of bgu.bio.util.alphabet.StemStructureAlphabet.mapAndHash()

    double scoreSelf = sim.getAlignmentScore();
    double diff = scoreSelf - score;
    double expected = structureScoringMatrix.score(
        stemAlphabet.mapAndHash("U|G"), stemAlphabet.mapAndHash("U|G"))
        + structureScoringMatrix.score(stemAlphabet.mapAndHash("G|C"),
            stemAlphabet.mapAndHash("G|C"))
        - (structureScoringMatrix.score(stemAlphabet.mapAndHash("U|G"),
            stemAlphabet.emptyLetterHashed()) + structureScoringMatrix
            .score(stemAlphabet.mapAndHash("G|C"),
                stemAlphabet.emptyLetterHashed()));
    Assert.assertEquals(expected, diff, 0.01);
View Full Code Here

Examples of bgu.bio.util.alphabet.StemStructureAlphabet.mapAndHash()

    double diff = scoreSelf - score;
    double expected = structureScoringMatrix.score(
        stemAlphabet.mapAndHash("U|G"), stemAlphabet.mapAndHash("U|G"))
        + structureScoringMatrix.score(stemAlphabet.mapAndHash("G|C"),
            stemAlphabet.mapAndHash("G|C"))
        - (structureScoringMatrix.score(stemAlphabet.mapAndHash("U|G"),
            stemAlphabet.emptyLetterHashed()) + structureScoringMatrix
            .score(stemAlphabet.mapAndHash("G|C"),
                stemAlphabet.emptyLetterHashed()));
    Assert.assertEquals(expected, diff, 0.01);
  }
View Full Code Here

Examples of bgu.bio.util.alphabet.StemStructureAlphabet.mapAndHash()

        stemAlphabet.mapAndHash("U|G"), stemAlphabet.mapAndHash("U|G"))
        + structureScoringMatrix.score(stemAlphabet.mapAndHash("G|C"),
            stemAlphabet.mapAndHash("G|C"))
        - (structureScoringMatrix.score(stemAlphabet.mapAndHash("U|G"),
            stemAlphabet.emptyLetterHashed()) + structureScoringMatrix
            .score(stemAlphabet.mapAndHash("G|C"),
                stemAlphabet.emptyLetterHashed()));
    Assert.assertEquals(expected, diff, 0.01);
  }

  @Test
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.