Jronn { public static Range[] getDisorder(FastaSequence sequence) { float[] scores = getDisorderScores(sequence); return scoresToRanges(scores, RonnConstraint.DEFAULT_RANGE_PROBABILITY_THRESHOLD); }  static float[] getDisorderScores(FastaSequence sequence); static float[] getDisorderScores(ProteinSequence sequence); static FastaSequence convertProteinSequencetoFasta(ProteinSequence sequence); static Range[] getDisorder(FastaSequence sequence); static Range[] scoresToRanges(float[] scores, float probability); static Map<FastaSequence,float[]> getDisorderScores(List<FastaSequence> sequences); static Map<FastaSequence,Range[]> getDisorder(List<FastaSequence> sequences); static Map<FastaSequence,Range[]> getDisorder(String fastaFile);  }
@Test public void verifyRanges() { Range[] ranges = Jronn.getDisorder(new FastaSequence("name", "LLRGRHLMNGTMIMRPWNFLNDHHFPKFFPHLIEQQAIWLADWWRKKHC" + "RPLPTRAPTMDQWDHFALIQKHWTANLWFLTFPFNDKWGWIWFLKDWTPGSADQAQRACTWFFCHGHDTN" + "CQIIFEGRNAPERADPMWTGGLNKHIIARGHFFQSNKFHFLERKFCEMAEIERPNFTCRTLDCQKFPWDDP" + "CSSTHSDCPKLEDLISFTETHGCSAADNADRPSQACHIGWAAMCEPTAMFMLMGSRCRCSFWPQNNAARHR" + "NFLIQIEMHSHLEHWIQTLHPQRPFLCNTWDDNWPICQFASQARGNSPDHHP")); assertEquals(4, ranges.length); assertEquals(53, ranges[0].from); assertEquals(59, ranges[0].to); assertEquals(190, ranges[1].from); assertEquals(196, ranges[1].to); assertEquals(210, ranges[2].from); assertEquals(226, ranges[2].to); assertEquals(305, ranges[3].from); assertEquals(313, ranges[3].to); }