Examples of printKmers()


Examples of kmer.ProteinKmerBitFeatureVector.printKmers()

        // System.arraycopy(value.getBytes(), 0, featureVector, 0, featureVector.length);
       
        ProteinKmerBitFeatureVector vector = new ProteinKmerBitFeatureVector(
            featureVector, context.getConfiguration().getInt(KMER_LENGTH, 3));
         
        LOG.info(key.get() + ": " + vector.printKmers());
      }
     
      byte[] valueBytes = value.getBytes();
     
      for (int i = 0; i < clusterFeatureVectors.length; i++) {
View Full Code Here

Examples of kmer.ProteinKmerBitFeatureVector.printKmers()

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

Examples of kmer.ProteinKmerBitFeatureVector.printKmers()

      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.ProteinKmerBitFeatureVector.printKmers()

            valueVector, context.getConfiguration().getInt(KMER_LENGTH, 3));
       
        // LOG.info(featureVector.printByteVector());
        // LOG.info(featureVector.printKmers());
       
        context.write(key, new Text(featureVector.printKmers()));
      }     
    }
  }
 
  public static void main(String[] args) {
View Full Code Here

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

Examples of kmer.ProteinKmerCountFeatureVector.printKmers()

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

Examples of kmer.ProteinKmerCountFeatureVector.printKmers()

    }
   

    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.