Package abra

Examples of abra.NativeAssembler


  void processReads(List<SAMRecord> reads) throws IOException {

    filterNbases(reads);
   
    if (reads.size() > 1) {
      NativeAssembler assem = newAssembler();
     
      String contigs = assem.simpleAssemble(reads);
     
      if (contigs.equals("<ERROR>") || contigs.equals("<REPEAT>")) {
       
        badRegionBed.write(getRegionEntry(reads) + "\n");
       
View Full Code Here


  private synchronized void appendContigs(String contigs) throws IOException {
    contigWriter.write(contigs);
  }
 
  private NativeAssembler newAssembler() {
    NativeAssembler assem = new NativeAssembler();

    assem.setTruncateOutputOnRepeat(true);
    assem.setMaxContigs(100000);

    assem.setMaxPathsFromRoot(5000000);
    assem.setReadLength(75);
    assem.setKmer(new int[] { 17, 27, 37, 47 });
    assem.setMinKmerFrequency(2);
    assem.setMinBaseQuality(40);
   
    // The following params not used
    assem.setMinReadCandidateFraction(0);
    assem.setMaxAverageDepth(0);
    assem.setShouldSearchForSv(false);
    assem.setAverageDepthCeiling(0);

    return assem;   
  }
View Full Code Here

TOP

Related Classes of abra.NativeAssembler

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.