Package kmer

Examples of kmer.ProteinKmerCountFeatureVector.printKmers()


  public void testPrintKmers() {   
    ProteinKmerCountFeatureVector vector = new ProteinKmerCountFeatureVector(3, 20);
   
    vector.parseKmersFromSequence("AVAA");
   
    System.out.println(vector.printKmers());
   
    assertTrue(true);
  }
 
  /** Test for {@link ProteinKmerCountFeatureVectorTest#parseKmersFromSequence(String)}. */
 
View Full Code Here


        distances[position] += (int) featureVector.getFeatureVector()[position];
      }
     
      if (debug) {
        LOG.info(featureVector.printByteVector());
        LOG.info(featureVector.printKmers());
      }
     
      featureVector = null;     
      ++numOfSequences;     
    }
View Full Code Here

    }
   

    if (debug) {
      LOG.info("New cluster center feature vector: " + clusterFeatureVector.printByteVector());
      LOG.info("New cluster center kmers: " + clusterFeatureVector.printKmers());
    }
   
    context.write(key, new BytesWritable(clusterFeatureVector.getFeatureVector()));
  }
}
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.