Package bgu.bio.util

Examples of bgu.bio.util.IdentityAffineScoringMatrix


  public static void main(String[] args) {
    String s1 = "GAAUAAGCAUCGGCCCACAUCGGUGGUG";
    String s2 = "GAAUAAGCAUCGGCUAAAUAAUUGGCCCCCACAUCGAGUGAUCGAGUGGUGCAAAC";
    SemiAffineGapSemiLocalSequenceAlignment alignment = new SemiAffineGapSemiLocalSequenceAlignment(
        s1, s2, RnaAlphabet.getInstance(),
        new IdentityAffineScoringMatrix(RnaAlphabet.getInstance(), 1,
            -10, -1, -5));
    alignment.buildMatrix();
    System.out.println(alignment.getMaxScore());
    String[] ans = alignment.getAlignment();
    // alignment.printDPMatrix();
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

TOP

Related Classes of bgu.bio.util.IdentityAffineScoringMatrix

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.