Package bgu.bio.util

Examples of bgu.bio.util.AffineGapScoringMatrix


public class TestSequenceAlignmentAndWithOutMatrix {

  @Test
  public void testAffineSmall1() {
    AffineGapGlobalSequenceAlignment affine = new AffineGapGlobalSequenceAlignment(
        10, 10, RnaAlphabet.getInstance(), new AffineGapScoringMatrix(
            "matrix/NUC-Affine-sim-RIBOSUM85-60.matrix",
            RnaAlphabet.getInstance()));
    affine.setSequences("GA", "");
    affine.buildMatrix();
    Assert.assertEquals(-3.0, affine.getAlignmentScore(), 0.001);
View Full Code Here


public class TestAffineGapWithAndWithoutMatrix {

  @Test
  public void randomTest() {
    AlphabetUtils alphabet = RnaAlphabet.getInstance();
    AffineGapScoringMatrix matrix = new IdentityAffineScoringMatrix(
        alphabet, 1, -10f, -1f, 0f);

    AffineGapGlobalSequenceAlignment alignMat = new AffineGapGlobalSequenceAlignment(
        0, 0, alphabet, matrix);
    AffineGapGlobalSequenceAlignmentNoMatrix alignNoMat = new AffineGapGlobalSequenceAlignmentNoMatrix(
View Full Code Here

  public void test1() {
    String str1 = "CNCNANGUNC";
    String str2 = "UNUUG";

    AlphabetUtils alphabet = RnaAlphabet.getInstance();
    AffineGapScoringMatrix matrix = new IdentityAffineScoringMatrix(
        alphabet, 1, -10f, -0.5f, 0f);

    AffineGapGlobalSequenceAlignment alignMat = new AffineGapGlobalSequenceAlignment(
        0, 0, alphabet, matrix);
    AffineGapGlobalSequenceAlignmentNoMatrix alignNoMat = new AffineGapGlobalSequenceAlignmentNoMatrix(
View Full Code Here

  public void test2() {
    String str1 = "CNCNANGUNC";
    String str2 = "CNCNANGUNCAAAAAA";

    AlphabetUtils alphabet = RnaAlphabet.getInstance();
    AffineGapScoringMatrix matrix = new IdentityAffineScoringMatrix(
        alphabet, 1, -10f, -0.5f, 0f);

    AffineGapGlobalSequenceAlignment alignMat = new AffineGapGlobalSequenceAlignment(
        0, 0, alphabet, matrix);
    AffineGapGlobalSequenceAlignmentNoMatrix alignNoMat = new AffineGapGlobalSequenceAlignmentNoMatrix(
View Full Code Here

    RnaSpecificTypeRelatedTreePruning prune2 = new RnaSpecificTypeRelatedTreePruning(
        false, true);
    RnaSpecificSmoothCost smooth = new RnaSpecificSmoothCost();

    SequenceAlignment aligner = new AffineGapGlobalSequenceAlignmentNoMatrix(
        10, 10, RnaAlphabet.getInstance(), new AffineGapScoringMatrix(
            "matrix" + File.separator
                + "interval-RIBOSUM85-60.matrix",
            RnaAlphabet.getInstance()));

    RnaSpecificCostFunction cost = new RnaSpecificCostFunction(
View Full Code Here

    RnaSpecificTypeRelatedTreePruning prune = new RnaSpecificTypeRelatedTreePruning(
        false, true);
    RnaSpecificSmoothCost smooth = new RnaSpecificSmoothCost();
    SequenceAlignment aligner = new AffineGapGlobalSequenceAlignmentNoMatrix(
        10, 10, RnaAlphabet.getInstance(), new AffineGapScoringMatrix(
            "matrix" + File.separator
                + "interval-RIBOSUM85-60.matrix",
            RnaAlphabet.getInstance()));

    RnaSpecificCostFunction cost = new RnaSpecificCostFunction(
View Full Code Here

    RnaSpecificTypeRelatedTreePruning prune = new RnaSpecificTypeRelatedTreePruning(
        false, true);
    RnaSpecificSmoothCost smooth = new RnaSpecificSmoothCost();

    SequenceAlignment aligner = new AffineGapGlobalSequenceAlignmentNoMatrix(
        10, 10, RnaAlphabet.getInstance(), new AffineGapScoringMatrix(
            "matrix" + File.separator
                + "interval-RIBOSUM85-60.matrix",
            RnaAlphabet.getInstance()));

    RnaSpecificCostFunction cost = new RnaSpecificCostFunction(
View Full Code Here

        false, false);

    RnaSpecificSmoothCost smooth = new RnaSpecificSmoothCost();

    SequenceAlignment aligner = new AffineGapGlobalSequenceAlignmentNoMatrix(
        10, 10, RnaAlphabet.getInstance(), new AffineGapScoringMatrix(
            "matrix" + File.separator
                + "interval-RIBOSUM85-60.matrix",
            RnaAlphabet.getInstance()));

    RnaSpecificCostFunction cost = new RnaSpecificCostFunction(
View Full Code Here

        true, false);
   
    RnaSpecificSmoothCost smooth = new RnaSpecificSmoothCost();

    SequenceAlignment aligner = new AffineGapGlobalSequenceAlignmentNoMatrix(
        10, 10, RnaAlphabet.getInstance(), new AffineGapScoringMatrix(
            "matrix" + File.separator
                + "interval-RIBOSUM85-60.matrix",
            RnaAlphabet.getInstance()));

    RnaSpecificCostFunction cost = new RnaSpecificCostFunction(
View Full Code Here

    RnaSpecificTypeRelatedTreePruning prune = new RnaSpecificTypeRelatedTreePruning(
        false, true);
    RnaSpecificSmoothCost smooth = new RnaSpecificSmoothCost();
    SequenceAlignment aligner = new AffineGapGlobalSequenceAlignmentNoMatrix(
        10, 10, RnaAlphabet.getInstance(), new AffineGapScoringMatrix(
            "matrix" + File.separator
                + "interval-RIBOSUM85-60.matrix",
            RnaAlphabet.getInstance()));

    RnaSpecificCostFunction cost = new RnaSpecificCostFunction(
View Full Code Here

TOP

Related Classes of bgu.bio.util.AffineGapScoringMatrix

Copyright © 2018 www.massapicom. 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.