Package bgu.bio.util

Examples of bgu.bio.util.CharBuffer


      while (header != null) {
        line1 = reader.readLine();
        line2 = reader.readLine();

        list.add(new StemStructure(header.substring(1), new CharBuffer(line1),
            new CharBuffer(line2)));

        header = reader.readLine();

      }
      reader.close();
View Full Code Here


        new GlobalSequenceAlignment(10, 10, RnaAlphabet.getInstance(),
            new IdentityScoringMatrix(RnaAlphabet.getInstance())));

    StemStructure str1 = new StemStructure(
        ">ID: add , START: 1 , STRAND: UNKNOWN , ENERGY: -14.1 (base)",
        new CharBuffer("UCUACCGGGCAAAGUCCGACUAUGGG"), new CharBuffer(
            "((((.(((((...)))))....))))"));

    StemStructure str2 = new StemStructure(
        ">ID: add , START: 1 , STRAND: UNKNOWN , ENERGY: -14.1 (base)",
        new CharBuffer(
            "UCACACCCGUUCCCAUACCGAACACGGAAACCGAUGGUAGUCGGGGGUUUCCCCCUGUGA"),
        new CharBuffer(
            "(((((...(..(((...((((.(((((...))).))....)))))))...)....)))))"));
    sim.setStem1(str1);
    sim.setStem2(str2);
    sim.run();
    double score = sim.getAlignmentScore();
View Full Code Here

            10, 10, RnaAlphabet.getInstance(),
            new AffineGapScoringMatrix(
                "matrix/NUC-Affine-sim-RIBOSUM85-60.matrix",
                RnaAlphabet.getInstance())));

    StemStructure str1 = new StemStructure(">1", new CharBuffer(
        "AGAGGUAAAAUGCAUCU"), new CharBuffer("((..(((...)))..))"));

    StemStructure str2 = new StemStructure(">1", new CharBuffer(
        "AGAGGUAAAAUGCAUUU"), new CharBuffer("((..(((...)))..))"));

    sim.setStem1(str1);
    sim.setStem2(str2);
    sim.run();
    sim.buildMatrix();
View Full Code Here

            10, 10, RnaAlphabet.getInstance(),
            new AffineGapScoringMatrix(
                "matrix/NUC-Affine-sim-RIBOSUM85-60.matrix",
                RnaAlphabet.getInstance())));

    StemStructure str1 = new StemStructure(">1", new CharBuffer(
        "AGAGGUAAAAUGCAUCU"), new CharBuffer("((..(((...)))..))"));

    StemStructure str2 = new StemStructure(">1", new CharBuffer(
        "AGAGAAAAUAUCU"), new CharBuffer("((..(...)..))"));

    sim.setStem1(str1);
    sim.setStem2(str2);
    sim.run();
    double score = sim.getAlignmentScore();
View Full Code Here

                RnaAlphabet.getInstance())),
        new LocalSequenceAlignment(10, 10, RnaAlphabet.getInstance(),
            new ScoringMatrix("matrix/NUC-sim-RIBOSUM85-60.matrix",
                RnaAlphabet.getInstance())));

    StemStructure str1 = new StemStructure(">1", new CharBuffer(
        "AAAGAGGUAAAAUGCAUCUAA"), new CharBuffer(
        "..((..(((...)))..)).."));

    StemStructure str2 = new StemStructure(">1", new CharBuffer(
        "AAAGAGAAAAUAUCUAA"), new CharBuffer("..((..(...)..)).."));

    StemStructure str3 = new StemStructure(">1", new CharBuffer(
        "UUUUAAACAGAGAAAAUAUCUCAAAGGGG"), new CharBuffer(
        "........((..(...)..))........"));

    sim.setStem1(str1);
    sim.setStem2(str2);
    sim.run();
View Full Code Here

                RnaAlphabet.getInstance())),
        new LocalSequenceAlignment(10, 10, RnaAlphabet.getInstance(),
            new ScoringMatrix("matrix/NUC-sim-RIBOSUM85-60.matrix",
                RnaAlphabet.getInstance())));

    StemStructure str1 = new StemStructure(">1", new CharBuffer(
        "AGAGGUAAAAUGCAUCU"), new CharBuffer("((..(((...)))..))"));

    StemStructure str2 = new StemStructure(">1", new CharBuffer(
        "AGAGAAAAUAUCU"), new CharBuffer("((..(...)..))"));

    StemStructure str3 = new StemStructure(">1", new CharBuffer(
        "UUUUAAACAGAGAAAAUAUCUCAAAGGGG"), new CharBuffer(
        "........((..(...)..))........"));

    sim.setStem1(str1);
    sim.setStem2(str2);
    sim.run();
View Full Code Here

            new ScoringMatrix("matrix/NUC-sim-RIBOSUM85-60.matrix",
                RnaAlphabet.getInstance())));

    StemStructure str1 = new StemStructure(
        ">1",
        new CharBuffer(
            "AUUUCAUGAAGAGUGGCUGAGGGACGGGCCCUGUGACGCCACGACAACCGGCUCGAGCAAUUCGGGACAUCGGUGUCAACUCUCUCC"),
        new CharBuffer(
            "..............((..(((((........................................................))))).))"));

    StemStructure str2 = new StemStructure(
        ">1",
        new CharBuffer(
            "UGAGACUUAUUACUGCACCAUAAUUAAGCCAUCCAAUGAGGAAGACUCGAUUUUGGUGGAAAGGUUUAUCUGGCACAAUGGUAGUGUUUUG"),
        new CharBuffer(
            "((((((..((((((.................................................................))))))))))))"));

    StemStructure str1no = new StemStructure(
        ">1",
        new CharBuffer(
            "GGCUGAGGGACGGGCCCUGUGACGCCACGACAACCGGCUCGAGCAAUUCGGGACAUCGGUGUCAACUCUCUCC"),
        new CharBuffer(
            "((..(((((........................................................))))).))"));

    sim.setStem1(str1);
    sim.setStem2(str2);
    sim.run();
View Full Code Here

        new GlobalSequenceAlignment(10, 10, RnaAlphabet.getInstance(),
            new IdentityScoringMatrix(RnaAlphabet.getInstance())));

    StemStructure str1 = new StemStructure(
        ">ID: add , START: 1 , STRAND: UNKNOWN , ENERGY: -14.1 (base)",
        new CharBuffer("UCUACCGGGCAAAGUCCGACUAUGGG"), new CharBuffer(
            "((((.(((((...)))))....))))"));

    StemStructure str2 = new StemStructure(
        ">ID: add , START: 1 , STRAND: UNKNOWN , ENERGY: -14.1 (base)",
        new CharBuffer("GGGGGGUCUACCGGGCAAAGUCCGACUAUGGGCCCCCC"),
        new CharBuffer("((((((((((.(((((...)))))....))))))))))"));

    StemStructure str15 = new StemStructure(
        ">ID: add , START: 1 , STRAND: UNKNOWN , ENERGY: -14.1 (base)",
        new CharBuffer("UCUACCGGGCAAAGUCCGACUAUGGG"), new CharBuffer(
            "((((.(((((...)))))....))))"));

    simGlobal.setStem1(str1);
    simGlobal.setStem2(str15);
    simGlobal.run();
View Full Code Here

TOP

Related Classes of bgu.bio.util.CharBuffer

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.