Commit 8be1a47d authored by Aiden Lab's avatar Aiden Lab
Browse files

Rarely a division by 0 error would occur, for a value we no longer use (old...

Rarely a division by 0 error would occur, for a value we no longer use (old library complexity estimate).  This is now deleted.
parent 955f9f98
Loading
Loading
Loading
Loading
−133 B (4.42 KiB)

File changed.

No diff preview for this file type.

+1 −6
Changes for AWS/scripts/LibraryComplexity.java: 1 added line, 6 removed lines.
Original line number Diff line number Diff line
@@ -109,8 +109,6 @@ class LibraryComplexity {
    decimalFormat.setMinimumFractionDigits(2);
    decimalFormat.setMaximumFractionDigits(2);

    long result2 = readPairs*readPairs/(2*(readPairs-uniqueReadPairs));
    
    System.out.print("Unique Reads: " + NumberFormat.getInstance().format(uniqueReadPairs) + " ");
    if (totalReadPairs > 0) {
      System.out.println("(" + decimalFormat.format(uniqueReadPairs/(double)totalReadPairs) + ")");
@@ -138,12 +136,9 @@ class LibraryComplexity {
      result = estimateLibrarySize(readPairs, uniqueReadPairs);
    }
    catch (NullPointerException e) {
      System.err.println("Library complexity undefined when total = " + readPairs + " and unique = " + uniqueReadPairs);
      return;
      result = 0;
    }
    System.out.println("Library Complexity Estimate: " + nf.format(result));
    //    System.out.println("Library complexity (old): " + nf.format(result2));
		
  }

  /**
−133 B (4.42 KiB)

File changed.File mode changed from 100755 to 100644.

No diff preview for this file type.

+1 −6
Changes for CPU/common/LibraryComplexity.java: 1 added line, 6 removed lines.
Original line number Diff line number Diff line
@@ -109,8 +109,6 @@ class LibraryComplexity {
    decimalFormat.setMinimumFractionDigits(2);
    decimalFormat.setMaximumFractionDigits(2);

    long result2 = readPairs*readPairs/(2*(readPairs-uniqueReadPairs));
    
    System.out.print("Unique Reads: " + NumberFormat.getInstance().format(uniqueReadPairs) + " ");
    if (totalReadPairs > 0) {
      System.out.println("(" + decimalFormat.format(uniqueReadPairs/(double)totalReadPairs) + ")");
@@ -138,12 +136,9 @@ class LibraryComplexity {
      result = estimateLibrarySize(readPairs, uniqueReadPairs);
    }
    catch (NullPointerException e) {
      System.err.println("Library complexity undefined when total = " + readPairs + " and unique = " + uniqueReadPairs);
      return;
      result = 0;
    }
    System.out.println("Library Complexity Estimate: " + nf.format(result));
    //    System.out.println("Library complexity (old): " + nf.format(result2));
		
  }

  /**
−133 B (4.42 KiB)

File changed.

No diff preview for this file type.

Loading