Tree tree = new Tree(neighbors, null, null, null);
}
public static void testRNAExample() {
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(
new ScoringMatrix("matrix" + File.separator
+ "bp-RIBOSUM85-60.matrix",
RNABasePairAlphabet.getInstance()), aligner);
RNASpecificTree t = new RNASpecificTree();
// t.buildFromViennaFormat("GAGCCGUAUGCGAUGAAAGUCGCACGUACGGUUC".toCharArray(),
// "((((((((.((((((..))))))...))))))))".toCharArray());
// t.buildFromViennaFormat("GAGCCGUAUGCGAUGAAAGUCGCACGUACGGUUC".toCharArray(),
// "((((((((.((((((..))))))...))))))))".toCharArray());
// t.buildFromViennaFormat("GAGCCGUAUGCGAUGAAAGUCGCACGUACGGUUC".toCharArray(),
// "((((((((.((((((..))))))...))))))))".toCharArray());
t.buildFromViennaFormat(
"NNNUAUAGUUUGAGUUCGAUUGCGCUUCGUAUGUUGCGUCUACGUAAAAACGCUCAGUUUAAAUUAUAACUGCAAAAAAUAAUAACAAUUCUUACGCUUUAGCUGCCUAAUAAGCGCUUAACGUAGAUCCUCCCAGGAUCGUCCAUGUUCUGGAUCUGGGUCCUAAAUUUAGUGGACUUACGCUCAAAGCUUCCACCUGGAGUUGCGAGAAGAGACUAAUCAGGUUAGUCAUUGCUGGGUGCCCUGUCAUACGGCGUUUGCAAUGAUGAAAUUUAAAUAGUAUGAAUAUGAGCGUAGAUAUCCGAGGGGCAAUAUGCUUAGACGCNNN"
.toCharArray(),
"...((((.......((((((..(((((........((((..........))))...........................................(.((((.(((.......))).)))).)..(((((..(((((((.......)))))))....)))))....................(((..((((.........))))..)))..................(((((...(((.((((.........))))).))..)))))......................))))).....)).))))......))))............"
.toCharArray());
prune.calculateCost(t);
smooth.calculateCost(t);
RNASpecificTree s = new RNASpecificTree();
// s.buildFromViennaFormat("GGACCGAUGGUAGUGUCUUCGGAUGCGAGAGUAGGUC".toCharArray(),
// ".((((((((((((((((....))))))))))))))))".toCharArray());
// s.buildFromViennaFormat("GAGGGGAUGAAAAUCCCCUCGAGGGGAUGAAAAUCCCCUCGAGGGGAUGAAAAUCCCCUCGAGGGGAUGAAAUCCCCUC".toCharArray(),
// "(((((((......)))))))(((((((......)))))))(((((((......)))))))(((((((.....)))))))".toCharArray());
// s.buildFromViennaFormat("CCGGgGGAUCACCACGGCGGgGGAUCACCACGG".toCharArray(),
// "((((.((....))))))(((.((....))))).".toCharArray());
s.buildFromViennaFormat(
"GGCGACACGGAUUCCAGUGCAUAUCUUAGUGAUACUCCAGUUAACUCCAUACUUUCCCUGCAAUACGCUAUUCGCCUCAGAUGUAUUUGGGUGGUUGCUCCACUAAAGCCCAGGAAUAUCCAGCCAGUUACAUUUGAGGCCAUUUGGGCUUAAGCGUAUUCCAUGGAAAGUUUUCUCCCCACAUUUCGGAAAUUAAAUUCCGAGCCAGCAAGAAAAUCUUCUCUGUUACAAUUUGACAUGGCUAAAAACUGUACUAAUCAAAAUGAAAAAUGUUUCUCUUGGGCGUAAUCUCAUACAAUGAUUACCCUUAAAGAUCGAACAUUUAAACAAUAAUAUUUGAUAUGAUAUUUUCAAUUUCUAUGCUAUGCCAAAGUGUCUGACAUAAUCAAACAUUUGCACAUUCUUUGACCAAGAAUAGUCAGCAAAUUGUAUUUUCAAUCAAUGCAGACCAUAUGUUCCAGUUUCGGAGAUUUUUUGCUGCCAAACGGAAUACUUAUAAAAACCCACAUUCUAUUUACAUCACUAAGAAGAGCAUUGCAAUCUGUUUAGCC"
.toCharArray(),
"((((..(((((((.((((((...((((((((((.................(((((((.((.((((((((....((((((((((((.((((...((((.(((...........))).)).))..)))).))))))))))))............)))))))).)).)))))))........................(((((((...((((((((((.((((.((((..((((((((.((((((((.(((.((.....((((((.....((((((((.(((((((.(((((...........))))))))..))))..))))))))...........))))))..........)).))).)).)))))).))))(.(((((.(((.........((((((((((((.......))))).))..)))))...............)))))))))..))))..))))....)))))))))))))).....)))))))..........................))))))))))...)))))).)))))))..))))"
.toCharArray());
prune.calculateCost(s);
smooth.calculateCost(s);
TIntArrayList[] alignment = new TIntArrayList[3];
MatcherFactory matcherFactory = new UnorderedMatcherFactory();
// MatcherFactory matcherFactory = new OrderedMatcherFactory();