Package kmer

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


  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

      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

            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

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.