Package cbcb.kmulus.util

Examples of cbcb.kmulus.util.Alignment


      kmerLength = config.getInt(KMER_LEN_ATTR, DEF_KMER_LEN);
    }
   
    @Override
    protected LongWritable compareItems(Text a, Text b) {
      Alignment alignment;
     
      switch (compareType) {
      case LOCAL:
        alignment = LocalAlignment.getLocalAlignment(
          a, b, matchScore, mismatchScore, gapScore, gapExtScore);
        break;
       
      case GLOBAL:
        alignment = GlobalAlignment.getGlobalAlignment(
          a, b, matchScore, mismatchScore, gapScore);
        break;
       
      case KMER:
        // Drop through.
      default:
        alignment = KmerDistance.getKmerAlignment(a, b, kmerLength);
      }

      return new LongWritable(alignment.getDistance());
    }
View Full Code Here


      kmerLength = config.getInt(KMER_LEN_ATTR, DEF_KMER_LEN);
    }
   
    @Override
    protected LongWritable compareItems(Text a, Text b) {
      Alignment alignment;
     
      switch (compareType) {
      case LOCAL:
        alignment = LocalAlignment.getLocalAlignment(
          a, b, matchScore, mismatchScore, gapScore, gapExtScore);
        break;
       
      case GLOBAL:
        alignment = GlobalAlignment.getGlobalAlignment(
          a, b, matchScore, mismatchScore, gapScore);
        break;
       
      case KMER:
        // Drop through.
      default:
        alignment = KmerDistance.getKmerAlignment(a, b, kmerLength);
      }

      return new LongWritable(alignment.getDistance());
    }
View Full Code Here

TOP

Related Classes of cbcb.kmulus.util.Alignment

Copyright © 2018 www.massapicom. 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.