Changeset 2536
- Timestamp:
- Jul 1, 2014, 3:30:31 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/plugins/CaliperPlateImporter.java
r2454 r2536 185 185 return false; // Can't continue if no data is found in the file 186 186 } 187 188 boolean useComma = ffp.getLine(ffp.getLineCount()-1).line().startsWith("Plate Name,"); 189 ffp.setDataSplitterRegexp(Pattern.compile(useComma ? "," : "\t")); 187 190 188 191 Mapper plateMapper = ffp.getMapper("\\Plate Name\\"); … … 397 400 FlatFileParser ffp = new FlatFileParser(); 398 401 399 ffp.setDataHeaderRegexp(Pattern.compile("Plate Name ,Well Label,Sample Name,.*"));400 ffp.setDataSplitterRegexp(Pattern.compile(", ")); // Split on comma402 ffp.setDataHeaderRegexp(Pattern.compile("Plate Name(,|\t)Well Label(,|\t)Sample Name(,|\t).*")); 403 ffp.setDataSplitterRegexp(Pattern.compile(",|\t")); // Split on comma or tab to begin with 401 404 402 405 ffp.setIgnoreRegexp(Pattern.compile(".*Ladder.*")); // Ignore all lines that contain 'Ladder'
Note: See TracChangeset
for help on using the changeset viewer.