Package bgu.bio.algorithms.graphs.costs

Examples of bgu.bio.algorithms.graphs.costs.SizeRelatedTreePruning


    RNASpecificTree t = new RNASpecificTree();
    t.buildFromViennaFormat(
        "CGACAGGAAACUGACAAACCCUUUCAUCUUAA".toCharArray(),
        "...((((...))...(((...)))..))....".toCharArray());
   
    SizeRelatedTreePruning cost = new SizeRelatedTreePruning(1);
    cost.calculateCost(t);
   
    Assert.assertEquals(17, t.getWeight(10, t.getNeighborIx(10, 5)),0.01);
    Assert.assertEquals(3, t.getWeight(6, t.getNeighborIx(6, 7)),0.01);
  }
View Full Code Here

TOP

Related Classes of bgu.bio.algorithms.graphs.costs.SizeRelatedTreePruning

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.