Changeset 6466


Ignore:
Timestamp:
Nov 3, 2021, 3:11:48 PM (15 months ago)
Author:
Nicklas Nordborg
Message:

References #1347: Updates to registration of specimen handled by external lab

Make the FASTQ file size easer to read by using a thousands separator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/branches/4.33-stable/src/net/sf/basedb/reggie/plugins/cmd/FastqInfo.java

    r6459 r6466  
    33import java.io.InputStream;
    44import java.util.Date;
     5import java.util.Locale;
    56
    67import org.json.simple.JSONObject;
     
    3738      {
    3839        //R1.md5 = fastq.getOptionalEntry("R1 MD5", PatternValidator.MD5);
    39         R1.expectedSize = fastq.getOptionalEntry("R11size", LongValidator.POSITIVE_OR_NULL);
     40        R1.expectedSize = fastq.getOptionalEntry("R1size", LongValidator.POSITIVE_OR_NULL);
    4041      }
    4142      if (R2 != null)
     
    7071      else if (f.expectedSize != null && f.actualSize != f.expectedSize)
    7172      {
    72         section.addErrorMessage("FASTQ file size: "+f.name+"="+f.actualSize+" (expected "+f.expectedSize+" bytes)");
     73        section.addErrorMessage("FASTQ file size: "+f.name+"="+String.format(Locale.US, "%,d", f.actualSize)+" bytes (expected "+String.format(Locale.US, "%,d", f.expectedSize)+" bytes)");
    7374      }
    7475    }
Note: See TracChangeset for help on using the changeset viewer.