Package abra

Examples of abra.CompareToReference


    reader.setValidationStringency(ValidationStringency.SILENT);
   
    SAMFileWriter writer = new SAMFileWriterFactory().makeSAMOrBAMWriter(
        reader.getFileHeader(), true, new File(output));
   
    CompareToReference c2r = new CompareToReference();
    c2r.init(reference);
   
    int i=0;
   
    for (SAMRecord read : reader) {
      int numMismatches = c2r.numMismatches(read);
      int numIndelBases = getNumIndelBases(read);
      int editDistance = numMismatches + numIndelBases;
     
      read.setAttribute("NM", editDistance);
     
View Full Code Here

TOP

Related Classes of abra.CompareToReference

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.