Examples of printByteVector()


Examples of kmer.ProteinKmerBitFeatureVector.printByteVector()

    testBytes[0] = (byte) 0x1;
   
    vector.parseKmersFromSequence(sequence);
    byte[] bytes = vector.getFeatureVector();

    System.out.println(vector.printByteVector());
    System.out.println(printByteVector(testBytes));
   
    assertTrue(equalBytes(bytes, testBytes));
   
    sequence = "AR";
View Full Code Here

Examples of kmer.ProteinKmerBitFeatureVector.printByteVector()

    vector.parseKmersFromSequence(sequence);
    bytes = vector.getFeatureVector();
   
    testBytes[0] = (byte) 0x2;
   
    System.out.println(vector.printByteVector());
    System.out.println(printByteVector(testBytes));
   
    assertTrue(equalBytes(bytes, testBytes));
   
    sequence = "AV";
View Full Code Here

Examples of kmer.ProteinKmerBitFeatureVector.printByteVector()

    bytes = vector.getFeatureVector();
   
    testBytes[0] = (byte) 0x0;
    testBytes[2] = (byte) 0x8;
   
    System.out.println(vector.printByteVector());
    System.out.println(printByteVector(testBytes));
   
    assertTrue(equalBytes(bytes, testBytes));
   
    sequence = "VV";
View Full Code Here

Examples of kmer.ProteinKmerBitFeatureVector.printByteVector()

   
    testBytes[0] = (byte) 0x0;
    testBytes[2] = (byte) 0x0;
    testBytes[49] = (byte) 0x80;
   
    System.out.println(vector.printByteVector());
    System.out.println(printByteVector(testBytes));
   
    assertTrue(equalBytes(bytes, testBytes));
   
    // 32, b = -65
View Full Code Here

Examples of kmer.ProteinKmerBitFeatureVector.printByteVector()

     
      featureVector.parseKmersFromSequence(line.substring(spaceIndex + 1).trim());
     
     
      LOG.info(featureVector.getFeatureVector().length);
      LOG.info(featureVector.printByteVector());
      LOG.info(featureVector.printKmers());
     
      context.write(seqId, new BytesWritable(featureVector.getFeatureVector()));
    }
  }
View Full Code Here

Examples of kmer.ProteinKmerCountFeatureVector.printByteVector()

    testBytes[0] = (byte) 0x1;
   
    vector.parseKmersFromSequence(sequence);
    byte[] bytes = vector.getFeatureVector();

    System.out.println(vector.printByteVector());
    System.out.println(printByteVector(testBytes));
   
    assertTrue(equalBytes(bytes, testBytes));
   
    sequence = "AR";
View Full Code Here

Examples of kmer.ProteinKmerCountFeatureVector.printByteVector()

    bytes = vector.getFeatureVector();
   
    testBytes[0] = (byte) 0x0;
    testBytes[1] = (byte) 0x1;
   
    System.out.println(vector.printByteVector());
    System.out.println(printByteVector(testBytes));
   
    assertTrue(equalBytes(bytes, testBytes));
   
    sequence = "AV";
View Full Code Here

Examples of kmer.ProteinKmerCountFeatureVector.printByteVector()

    bytes = vector.getFeatureVector();
   
    testBytes[1] = (byte) 0x0;
    testBytes[19] = (byte) 0x1;
   
    System.out.println(vector.printByteVector());
    System.out.println(printByteVector(testBytes));
   
    assertTrue(equalBytes(bytes, testBytes));
   
    sequence = "VV";
View Full Code Here

Examples of kmer.ProteinKmerCountFeatureVector.printByteVector()

    bytes = vector.getFeatureVector();
   
    testBytes[19] = (byte) 0x0;
    testBytes[399] = (byte) 0x1;
   
    System.out.println(vector.printByteVector());
    System.out.println(printByteVector(testBytes));
   
    assertTrue(equalBytes(bytes, testBytes));
  }
 
View Full Code Here

Examples of kmer.ProteinKmerCountFeatureVector.printByteVector()

    int item = new Random().nextInt(closestCenters.size());   
    closestCenter = closestCenters.get(item);
   
    if (debug) {
      ProteinKmerCountFeatureVector featureVector = new ProteinKmerCountFeatureVector(value.getBytes() /*vector*/, kmerLength);
      LOG.info("Closest Center: " + closestCenter + ", Distance: " + minDistance + ", FeatureVector: " + featureVector.printByteVector());
    }
   
    if (closestCenter == -1) {
     
    } else {
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.