Changeset 1146 for plugins/base2
- Timestamp:
- Jul 31, 2009, 2:00:28 PM (14 years ago)
- Location:
- plugins/base2/net.sf.basedb.illumina/trunk/src/net/sf/basedb/illumina/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/base2/net.sf.basedb.illumina/trunk/src/net/sf/basedb/illumina/plugins/BgxFeatureImporter.java
r941 r1146 168 168 } 169 169 170 /** 171 The default {@link #isImportable()} method only looks in the first 172 section. In BGX files data is in the second section. So, if the 173 last found line is the [Probes] section we should continue to 174 parse and check if we find the data header. 175 @since 1.4 176 */ 177 @Override 178 protected boolean isImportable(FlatFileParser ffp) 179 throws IOException 180 { 181 boolean importable = false; 182 Line last = ffp.getLine(ffp.getLineCount()-1); 183 if (last.type() == FlatFileParser.LineType.SECTION && 184 Section.getByName(last.name()) == Section.PROBES) 185 { 186 importable = ffp.parseHeaders() == FlatFileParser.LineType.DATA_HEADER; 187 } 188 return importable; 189 } 190 170 191 @Override 171 192 protected void handleSection(Line line) -
plugins/base2/net.sf.basedb.illumina/trunk/src/net/sf/basedb/illumina/plugins/BgxReporterImporter.java
r941 r1146 186 186 187 187 /** 188 The default {@link #isImportable()} method only looks in the first 189 section. In BGX files data is in the second section. So, if the 190 last found line is the [Probes] section we should continue to 191 parse and check if we find the data header. 192 @since 1.4 193 */ 194 @Override 195 protected boolean isImportable(FlatFileParser ffp) 196 throws IOException 197 { 198 boolean importable = false; 199 Line last = ffp.getLine(ffp.getLineCount()-1); 200 if (last.type() == FlatFileParser.LineType.SECTION && 201 Section.getByName(last.name()) == Section.PROBES) 202 { 203 importable = ffp.parseHeaders() == FlatFileParser.LineType.DATA_HEADER; 204 } 205 return importable; 206 } 207 208 /** 188 209 When we get to the [Controls] section, we change configuration parameters 189 210 for the parser and column mappings.
Note: See TracChangeset
for help on using the changeset viewer.