Examples of parseKmersFromSequence()


Examples of kmer.ProteinKmerCountFeatureVector.parseKmersFromSequence()

    assertTrue(equalBytes(bytes, testBytes));
   
    sequence = "VV";
   
    vector = new ProteinKmerCountFeatureVector(2, 20);
    vector.parseKmersFromSequence(sequence);
    bytes = vector.getFeatureVector();
   
    testBytes[19] = (byte) 0x0;
    testBytes[399] = (byte) 0x1;
   
View Full Code Here

Examples of kmer.ProteinKmerCountFeatureVector.parseKmersFromSequence()

  public void testincrementCountAtPosition() {

    ProteinKmerCountFeatureVector vector = new ProteinKmerCountFeatureVector(2, 20);
   
    String sequence = "AAAAAAAA";
    vector.parseKmersFromSequence(sequence);
    assertEquals(vector.getFeatureVector()[0], 7);
   
    vector = new ProteinKmerCountFeatureVector(3, 20);
   
    sequence = "ARARARARAR";
View Full Code Here

Examples of kmer.ProteinKmerCountFeatureVector.parseKmersFromSequence()

   
    vector = new ProteinKmerCountFeatureVector(3, 20);
   
    sequence = "ARARARARAR";
   
    vector.parseKmersFromSequence(sequence);
    assertEquals(vector.getFeatureVector()[vector.getIndexForSequence("ARA")],
        vector.getFeatureVector()[vector.getIndexForSequence("RAR")])
  }
 
  private void initializeBytes(byte[] bytes) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.