Changeset 5696
- Timestamp:
- Aug 12, 2011, 2:51:53 PM (12 years ago)
- Location:
- trunk/src
- Files:
-
- 1 added
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/DerivedBioAssay.java
r5695 r5696 324 324 */ 325 325 @Override 326 @SubtypableRelatedItems({Item.PHYSICALBIOASSAY, Item.DERIVEDBIOASSAY, Item. SOFTWARE, Item.HARDWARE, Item.PROTOCOL})326 @SubtypableRelatedItems({Item.PHYSICALBIOASSAY, Item.DERIVEDBIOASSAY, Item.EXTRACT, Item.SOFTWARE, Item.HARDWARE, Item.PROTOCOL}) 327 327 public ItemSubtype getItemSubtype() 328 328 { -
trunk/src/core/net/sf/basedb/core/Install.java
r5689 r5696 491 491 createItemSubtype(Item.DERIVEDBIOASSAY, DerivedBioAssay.SCAN, 492 492 "Scan", "A hybridization that has been scanned to produce one or more images.", 493 hybridization, scanner, scanningProtocol );493 hybridization, scanner, scanningProtocol, labeledExtract); 494 494 createItemSubtype(Item.DERIVEDBIOASSAY, DerivedBioAssay.SEQUENCED, 495 495 "Sequenced", "A flow cell that has been sequenced.", 496 flowCell, sequencer, sequencingProtocol );496 flowCell, sequencer, sequencingProtocol, library); 497 497 createItemSubtype(Item.DERIVEDBIOASSAY, DerivedBioAssay.ASSEMBLY, 498 498 "Assembly", "A data set of sequences that has been aligned against a reference database", 499 alignmentSoftware );499 alignmentSoftware, library); 500 500 501 501 // Hardware -
trunk/src/plugins/core/core-plugins.xml
r5649 r5696 578 578 </plugin-definition> 579 579 580 <!-- 581 Used for backwards compatibility with older server installations 580 582 <plugin-definition id="ScanImporter"> 581 583 <about> … … 590 592 </settings> 591 593 </plugin-definition> 592 594 --> 595 596 <plugin-definition id="DerivedBioAssayImporter"> 597 <about> 598 <name>Derived bioassay importer</name> 599 <description> 600 Imports and updates derived bioassays in a batch. 601 </description> 602 </about> 603 <plugin-class>net.sf.basedb.plugins.batchimport.DerivedBioAssayImporter</plugin-class> 604 <settings> 605 <property name="everyone-use">1</property> 606 </settings> 607 </plugin-definition> 608 593 609 <plugin-definition id="RawBioAssayImporter"> 594 610 <about> -
trunk/src/plugins/core/net/sf/basedb/plugins/batchimport/AbstractItemImporter.java
r5689 r5696 1026 1026 If a mapping for item subtype has been specified or if a single subtype was selected 1027 1027 for item identification in this job, this method is will update the subtype on the item. 1028 @param dc A DbControl used to lookup the permission template1028 @param dc A DbControl used to lookup the subtype 1029 1029 @param item The item to update 1030 1030 @param data Data from the file … … 1043 1043 item.setItemSubtype(selectedSubtype); 1044 1044 } 1045 } 1046 1047 /** 1048 Try to find subtype from the given file data. If a single subtype was selected 1049 for item identification in this job, that subtype is used if no mapped subtype 1050 can be found. 1051 @param dc A DbControl used to lookup the subtype 1052 @param mainItemType The main item type of the subtype 1053 @param data Data from the file 1054 @return A subtype of null if no subtype could be found 1055 @since 3.0 1056 */ 1057 protected ItemSubtype findItemSubtype(DbControl dc, Item mainItemType, FlatFileParser.Data data) 1058 { 1059 ItemSubtype subtype = null; 1060 if (subtypeMapper != null) 1061 { 1062 String nameOrId = subtypeMapper.getValue(data); 1063 subtype = findItemSubtype(dc, FallbackIdMethod.NAME_OR_SYSTEMID_OR_ID, mainItemType, nameOrId); 1064 } 1065 if (subtype == null) subtype = selectedSubtype; 1066 return subtype; 1045 1067 } 1046 1068 // --------------------------------------- -
trunk/src/plugins/core/net/sf/basedb/plugins/batchimport/RawBioAssayImporter.java
r5688 r5696 30 30 import net.sf.basedb.core.DbControl; 31 31 import net.sf.basedb.core.DerivedBioAssay; 32 import net.sf.basedb.core.Extract; 32 33 import net.sf.basedb.core.File; 33 34 import net.sf.basedb.core.Item; … … 104 105 ); 105 106 106 protected static final PluginParameter<String> scanColumnMapping = new PluginParameter<String>( 107 "scanColumnMapping", 108 "Scan", 109 "Mapping that picks the name or ID of the scan from the data columns. " + 110 "The plug-in will first try to find a scan with the given name. If none is found and " + 111 "the value is numeric it will try to load by internal ID. " + 112 "Example: \\Scan\\", 113 optionalColumnMapping 114 ); 115 107 protected static final PluginParameter<String> bioAssayColumnMapping = new PluginParameter<String>( 108 "bioAssayColumnMapping", 109 "Parent bioassay", 110 "Mapping that picks the name or ID of the parent derived bioassay from the data columns. " + 111 "The plug-in will first try to find a bioassay with the given name. If none is found and " + 112 "the value is numeric it will try to load by internal ID. " + 113 "Example: \\Parent bioassay\\", 114 optionalColumnMapping 115 ); 116 117 protected static final PluginParameter<String> extractColumnMapping = new PluginParameter<String>( 118 "extractColumnMapping", 119 "Parent extract", 120 "Mapping that picks the name or ID of the parent extract from the data columns. " + 121 "The plug-in will first try to find an extract with the given name. If none is found and " + 122 "the value is numeric it will try to load by internal ID. " + 123 "Example: \\Parent extract\\\n\n" + 124 "NOTE! This column may not be needed when creating new items if the parent bioassay " + 125 "already contains a link to an extract (which will be copied)", 126 optionalColumnMapping 127 ); 128 116 129 protected static final PluginParameter<String> arrayDesignColumnMapping = new PluginParameter<String>( 117 130 "arrayDesignColumnMapping", … … 120 133 "The plug-in will first try to find an array design with the given name. If none is found and " + 121 134 "the value is numeric it will try to load by internal ID. " + 122 "Example: \\Array design\\", 123 optionalColumnMapping 124 ); 125 126 protected static final PluginParameter<String> arrayIndexColumnMapping = 127 new PluginParameter<String>( 128 "arrayIndexColumnMapping", 129 "Array index", 130 "Mapping that picks the (1-based) index of the array the raw bioassay " + 131 "is linked to on the hybridization. The value should be between 1 and the " + 132 "number of arrays on the hybridization and must be in the numeric format " + 133 "specified by the 'Number format' parameter." + 134 "Example: \\Array index\\", 135 optionalColumnMapping 136 ); 135 "Example: \\Array design\\\n\n" + 136 "NOTE! This column may not be needed when creating new items if the parent bioassay " + 137 "already contains a link to an array design (which will be copied)", 138 optionalColumnMapping 139 ); 137 140 138 141 protected static final PluginParameter<String> fileTypeColumnMapping = … … 180 183 private Mapper nameMapper; 181 184 private Mapper descriptionMapper; 182 private Mapper arrayIndexMapper;183 185 private Mapper protocolMapper; 184 186 private Mapper softwareMapper; 185 187 private Mapper bioAssayMapper; 188 private Mapper extractMapper; 186 189 private Mapper arrayDesignMapper; 187 190 private Mapper platformMapper; … … 235 238 parameters.add(nameColumnMapping); 236 239 parameters.add(descriptionColumnMapping); 237 parameters.add(arrayIndexColumnMapping);238 240 parameters.add(platformColumnMapping); 239 241 parameters.add(variantColumnMapping); 240 242 parameters.add(rawDataTypeColumnMapping); 241 parameters.add(scanColumnMapping); 243 parameters.add(bioAssayColumnMapping); 244 parameters.add(extractColumnMapping); 242 245 parameters.add(arrayDesignColumnMapping); 243 246 parameters.add(protocolColumnMapping); … … 264 267 descriptionMapper = getMapper(ffp, (String)job.getValue("descriptionColumnMapping"), 265 268 cropStrings ? RawBioAssay.MAX_DESCRIPTION_LENGTH : null, null); 266 arrayIndexMapper = getMapper(ffp, (String)job.getValue("arrayIndexColumnMapping"), null, null);267 269 protocolMapper = getMapper(ffp, (String)job.getValue("protocolColumnMapping"), null, null); 268 270 softwareMapper = getMapper(ffp, (String)job.getValue("softwareColumnMapping"), null, null); 269 271 bioAssayMapper = getMapper(ffp, (String)job.getValue("bioAssayColumnMapping"), null, null); 272 extractMapper = getMapper(ffp, (String)job.getValue("extractColumnMapping"), null, null); 270 273 arrayDesignMapper = getMapper(ffp, (String)job.getValue("arrayDesignColumnMapping"), null, null); 271 274 platformMapper = getMapper(ffp, (String)job.getValue("platformColumnMapping"), null, null); … … 329 332 if (descriptionMapper != null) rba.setDescription(descriptionMapper.getValue(data)); 330 333 ArrayDesign designFromBioAssay = null; 334 Extract extractFromBioAssay = null; 331 335 if (bioAssayMapper != null) 332 336 { 333 337 String nameOrId = bioAssayMapper.getValue(data); 334 DerivedBioAssay bioAssay = findDerivedBioAssay(dc, FallbackIdMethod.NAME_OR_ID, bioAssayMapper.getValue(data), null);338 DerivedBioAssay bioAssay = findDerivedBioAssay(dc, FallbackIdMethod.NAME_OR_ID, nameOrId, null); 335 339 if (nameOrId == null || bioAssay != null) rba.setParentBioAssay(bioAssay); 336 340 if (bioAssay != null) … … 342 346 catch (PermissionDeniedException ex) 343 347 {} 348 try 349 { 350 extractFromBioAssay = bioAssay.getExtract(); 351 } 352 catch (PermissionDeniedException ex) 353 {} 344 354 } 355 } 356 357 if (extractMapper != null) 358 { 359 String nameOrId = extractMapper.getValue(data); 360 Extract extract = nameOrId == null ? 361 extractFromBioAssay : findExtract(dc, FallbackIdMethod.NAME_OR_ID, nameOrId); 362 if (nameOrId == null || extract != null) rba.setParentExtract(extract); 363 } 364 else if (extractFromBioAssay != null) 365 { 366 rba.setParentExtract(extractFromBioAssay); 345 367 } 346 368 -
trunk/src/test/TestArrayBatch.java
r5688 r5696 72 72 } 73 73 74 static voidtest_list(int expectedResults)74 static boolean test_list(int expectedResults) 75 75 { 76 76 DbControl dc = null; … … 96 96 ex.printStackTrace(); 97 97 ok = false; 98 } 99 finally 100 { 101 if (dc != null) dc.close(); 102 } 103 98 return false; 99 } 100 finally 101 { 102 if (dc != null) dc.close(); 103 } 104 return true; 104 105 } 105 106 -
trunk/src/test/TestArrayDesign.java
r5688 r5696 194 194 195 195 196 static voidtest_list(int expectedResults)196 static boolean test_list(int expectedResults) 197 197 { 198 198 DbControl dc = null; … … 217 217 ex.printStackTrace(); 218 218 ok = false; 219 } 220 finally 221 { 222 if (dc != null) dc.close(); 223 } 219 return false; 220 } 221 finally 222 { 223 if (dc != null) dc.close(); 224 } 225 return true; 224 226 } 225 227 -
trunk/src/test/TestArraySlide.java
r5688 r5696 131 131 } 132 132 133 static voidtest_list(int expectedResults)133 static boolean test_list(int expectedResults) 134 134 { 135 135 DbControl dc = null; … … 153 153 ex.printStackTrace(); 154 154 ok = false; 155 } 156 finally 157 { 158 if (dc != null) dc.close(); 159 } 155 return false; 156 } 157 finally 158 { 159 if (dc != null) dc.close(); 160 } 161 return true; 160 162 } 161 163 -
trunk/src/test/TestBioPlate.java
r5688 r5696 168 168 } 169 169 170 static voidtest_list(int expectedResults)170 static boolean test_list(int expectedResults) 171 171 { 172 172 DbControl dc = null; … … 191 191 ex.printStackTrace(); 192 192 ok = false; 193 } 194 finally 195 { 196 if (dc != null) dc.close(); 197 } 193 return false; 194 } 195 finally 196 { 197 if (dc != null) dc.close(); 198 } 199 return ok; 198 200 } 199 201 -
trunk/src/test/TestBioSource.java
r5688 r5696 114 114 } 115 115 116 static voidtest_list(int expectedResults)116 static boolean test_list(int expectedResults) 117 117 { 118 118 DbControl dc = null; … … 136 136 ex.printStackTrace(); 137 137 ok = false; 138 } 139 finally 140 { 141 if (dc != null) dc.close(); 142 } 138 return false; 139 } 140 finally 141 { 142 if (dc != null) dc.close(); 143 } 144 return true; 143 145 } 144 146 -
trunk/src/test/TestDerivedBioAssay.java
r5688 r5696 202 202 } 203 203 204 static voidtest_list(int physicalBioAssayId, int expectedResults)204 static boolean test_list(int physicalBioAssayId, int expectedResults) 205 205 { 206 206 DbControl dc = null; … … 234 234 ex.printStackTrace(); 235 235 ok = false; 236 } 237 finally 238 { 239 if (dc != null) dc.close(); 240 } 236 return false; 237 } 238 finally 239 { 240 if (dc != null) dc.close(); 241 } 242 return true; 241 243 } 242 244 -
trunk/src/test/TestExtract.java
r5688 r5696 211 211 } 212 212 213 static voidtest_list(int subtypeId, int expectedResults)213 static boolean test_list(int subtypeId, int expectedResults) 214 214 { 215 215 DbControl dc = null; … … 238 238 ex.printStackTrace(); 239 239 ok = false; 240 } 241 finally 242 { 243 if (dc != null) dc.close(); 244 } 240 return false; 241 } 242 finally 243 { 244 if (dc != null) dc.close(); 245 } 246 return true; 245 247 } 246 248 -
trunk/src/test/TestItemImporter.java
r5689 r5696 23 23 import net.sf.basedb.core.BaseException; 24 24 import net.sf.basedb.core.DbControl; 25 import net.sf.basedb.core.DerivedBioAssay; 25 26 import net.sf.basedb.core.Extract; 26 27 import net.sf.basedb.core.File; … … 74 75 int printProtocolId = TestProtocol.test_create(SystemItems.getId(Protocol.PRINTING), "Printing", false); 75 76 int freezerId = TestHardware.test_create(SystemItems.getId(Hardware.FREEZER), "Freezer", false); 77 int childScanId = TestItemSubtype.test_create(Item.DERIVEDBIOASSAY, "ChildScan", SystemItems.getId(DerivedBioAssay.SCAN)); 76 78 77 79 // Import bioplates … … 79 81 int bioPlateImporterId = TestPluginDefinition.test_get("net.sf.basedb.plugins.batchimport.BioPlateImporter"); 80 82 int bioPlateJobId = test_create_item_import_job(Item.BIOPLATE, bioPlateImporterId, bioPlateFileId); 81 ok &=TestJob.test_execute(bioPlateJobId, false);82 TestBioPlate.test_list(2);83 ok = ok & TestJob.test_execute(bioPlateJobId, false); 84 ok = ok & TestBioPlate.test_list(2); 83 85 84 86 // Import biosources … … 86 88 int bioSourceImporterId = TestPluginDefinition.test_get("net.sf.basedb.plugins.batchimport.BioSourceImporter"); 87 89 int bioSourceJobId = test_create_item_import_job(Item.BIOSOURCE, bioSourceImporterId, bioSourceFileId); 88 ok &=TestJob.test_execute(bioSourceJobId, false);89 TestBioSource.test_list(3);90 ok = ok & TestJob.test_execute(bioSourceJobId, false); 91 ok = ok & TestBioSource.test_list(3); 90 92 91 93 // Import samples … … 93 95 int sampleImporterId = TestPluginDefinition.test_get("net.sf.basedb.plugins.batchimport.SampleImporter"); 94 96 int sampleJobId = test_create_item_import_job(Item.SAMPLE, sampleImporterId, sampleFileId); 95 ok &=TestJob.test_execute(sampleJobId, false);96 TestSample.test_list(4);97 ok = ok & TestJob.test_execute(sampleJobId, false); 98 ok = ok & TestSample.test_list(4); 97 99 98 100 // Import extracts … … 100 102 int extractImporterId = TestPluginDefinition.test_get("net.sf.basedb.plugins.batchimport.ExtractImporter"); 101 103 int extractJobId = test_create_item_import_job(Item.EXTRACT, extractImporterId, extractFileId); 102 ok &=TestJob.test_execute(extractJobId, false);103 TestExtract.test_list(0, 4);104 ok = ok & TestJob.test_execute(extractJobId, false); 105 ok = ok & TestExtract.test_list(0, 4); 104 106 105 107 // Import labeled extracts … … 107 109 int labledExtractImporterId = extractImporterId; 108 110 int labledExtractJobId = test_create_item_import_job(Item.EXTRACT, labledExtractImporterId, labledExtractFileId); 109 ok &=TestJob.test_execute(labledExtractJobId, false);110 TestExtract.test_list(SystemItems.getId(Extract.LABELED), 7);111 ok = ok & TestJob.test_execute(labledExtractJobId, false); 112 ok = ok & TestExtract.test_list(SystemItems.getId(Extract.LABELED), 7); 111 113 112 114 // Import array designs … … 118 120 int designImporterId = TestPluginDefinition.test_get("net.sf.basedb.plugins.batchimport.ArrayDesignImporter"); 119 121 int designJobId = test_create_item_import_job(Item.ARRAYDESIGN, designImporterId, designFileId); 120 ok &=TestJob.test_execute(designJobId, false);121 TestArrayDesign.test_list(3);122 ok = ok & TestJob.test_execute(designJobId, false); 123 ok = ok & TestArrayDesign.test_list(3); 122 124 123 125 // Import array batches … … 125 127 int arrayBatchImporterId = TestPluginDefinition.test_get("net.sf.basedb.plugins.batchimport.ArrayBatchImporter"); 126 128 int arrayBatchJobId = test_create_item_import_job(Item.ARRAYBATCH, arrayBatchImporterId, arrayBatchFileId); 127 ok &=TestJob.test_execute(arrayBatchJobId, false);128 TestArrayBatch.test_list(3);129 ok = ok & TestJob.test_execute(arrayBatchJobId, false); 130 ok = ok & TestArrayBatch.test_list(3); 129 131 130 132 // Import array slides … … 132 134 int arraySlideImporterId = TestPluginDefinition.test_get("net.sf.basedb.plugins.batchimport.ArraySlideImporter"); 133 135 int arraySlideJobId = test_create_item_import_job(Item.ARRAYSLIDE, arraySlideImporterId, arraySlideFileId); 134 ok &=TestJob.test_execute(arraySlideJobId, false);135 TestArraySlide.test_list(5);136 ok = ok & TestJob.test_execute(arraySlideJobId, false); 137 ok = ok & TestArraySlide.test_list(5); 136 138 137 139 // Import hybridizations … … 139 141 int hybImporterId = TestPluginDefinition.test_get("net.sf.basedb.plugins.batchimport.PhysicalBioAssayImporter"); 140 142 int hybJobId = test_create_item_import_job(Item.PHYSICALBIOASSAY, hybImporterId, hybFileId); 141 ok &=TestJob.test_execute(hybJobId, false);142 TestPhysicalBioAssay.test_list(3);143 ok = ok & TestJob.test_execute(hybJobId, false); 144 ok = ok & TestPhysicalBioAssay.test_list(3); 143 145 144 146 // Import scans 147 int samId = TestFile.test_create("data/test.assembly.sam", false, false); 148 TestFile.test_rename(samId, "test.sam"); 145 149 int scanFileId = TestFile.test_create("data/test.batchimport.scans.txt", false, false); 146 int scanImporterId = TestPluginDefinition.test_get("net.sf.basedb.plugins.batchimport. ScanImporter");150 int scanImporterId = TestPluginDefinition.test_get("net.sf.basedb.plugins.batchimport.DerivedBioAssayImporter"); 147 151 int scanJobId = test_create_item_import_job(Item.DERIVEDBIOASSAY, scanImporterId, scanFileId); 148 ok &=TestJob.test_execute(scanJobId, false);149 TestDerivedBioAssay.test_list(0, 3);152 ok = ok & TestJob.test_execute(scanJobId, false); 153 ok = ok & TestDerivedBioAssay.test_list(0, 4); 150 154 151 155 // Import raw bioassays … … 157 161 int rbaImporterId = TestPluginDefinition.test_get("net.sf.basedb.plugins.batchimport.RawBioAssayImporter"); 158 162 int rbaJobId = test_create_item_import_job(Item.RAWBIOASSAY, rbaImporterId, rbaFileId); 159 ok &=TestJob.test_execute(rbaJobId, false);160 TestRawBioAssay.test_list(4);163 ok = ok & TestJob.test_execute(rbaJobId, false); 164 ok = ok & TestRawBioAssay.test_list(4); 161 165 162 166 if (TestUtil.waitBeforeDelete()) TestUtil.waitForEnter(); … … 173 177 TestJob.test_delete(scanJobId); 174 178 TestFile.test_delete(scanFileId); 179 TestFile.test_delete(samId); 175 180 176 181 // Delete hybridizations … … 236 241 TestSoftware.test_delete(featureSoftwareId); 237 242 TestPlatform.test_delete_variant(variantId); 243 TestItemSubtype.test_delete(childScanId); 238 244 239 245 write("++Testing item import using plugin "+(ok ? "OK" : "Failed")+"\n"); … … 371 377 if (itemType == Item.DERIVEDBIOASSAY) 372 378 { 373 request.setParameterValue("hybridizationColumnMapping", "\\Hybridization\\"); 379 request.setParameterValue("dataDirectory", "/"); 380 request.setParameterValue("subtypeColumnMapping", "\\Subtype\\"); 381 request.setParameterValue("parentColumnMapping", "\\Parent\\"); 382 request.setParameterValue("extractColumnMapping", "\\Extract\\"); 374 383 request.setParameterValue("protocolColumnMapping", "\\Protocol\\"); 375 384 request.setParameterValue("hardwareColumnMapping", "\\Scanner\\"); 385 request.setParameterValue("fileTypeColumnMapping", "\\File type\\"); 386 request.setParameterValue("fileColumnMapping", "\\File\\"); 376 387 } 377 388 if (itemType == Item.RAWBIOASSAY) 378 389 { 379 390 request.setParameterValue("dataDirectory", "/"); 380 request.setParameterValue("arrayIndexColumnMapping", "\\Array index\\");381 391 request.setParameterValue("bioAssayColumnMapping", "\\Scan\\"); 382 392 request.setParameterValue("protocolColumnMapping", "\\Protocol\\"); -
trunk/src/test/TestItemSubtype.java
r5641 r5696 61 61 } 62 62 63 static int test_create(Item itemType, String name )63 static int test_create(Item itemType, String name, int... relatedSubtypes) 64 64 { 65 65 if (!TestUtil.hasPermission(Permission.CREATE, Item.ITEMSUBTYPE)) return 0; … … 73 73 subtype.setName(name); 74 74 subtype.setDescription("Added at "+new Date()); 75 if (relatedSubtypes != null) 76 { 77 for (int i = 0; i < relatedSubtypes.length; ++i) 78 { 79 subtype.setRelatedSubtype(ItemSubtype.getById(dc, relatedSubtypes[i])); 80 } 81 } 75 82 dc.saveItem(subtype); 76 83 dc.commit(); -
trunk/src/test/TestPhysicalBioAssay.java
r5688 r5696 154 154 } 155 155 156 static voidtest_list(int expectedResults)156 static boolean test_list(int expectedResults) 157 157 { 158 158 DbControl dc = null; … … 176 176 ex.printStackTrace(); 177 177 ok = false; 178 } 179 finally 180 { 181 if (dc != null) dc.close(); 182 } 178 return false; 179 } 180 finally 181 { 182 if (dc != null) dc.close(); 183 } 184 return true; 183 185 } 184 186 -
trunk/src/test/TestRawBioAssay.java
r5689 r5696 199 199 } 200 200 201 static voidtest_list(int expectedResults)201 static boolean test_list(int expectedResults) 202 202 { 203 203 DbControl dc = null; … … 221 221 ex.printStackTrace(); 222 222 ok = false; 223 } 224 finally 225 { 226 if (dc != null) dc.close(); 227 } 223 return false; 224 } 225 finally 226 { 227 if (dc != null) dc.close(); 228 } 229 return true; 228 230 } 229 231 -
trunk/src/test/TestSample.java
r5688 r5696 198 198 } 199 199 200 static voidtest_list(int expectedResults)200 static boolean test_list(int expectedResults) 201 201 { 202 202 DbControl dc = null; … … 220 220 ex.printStackTrace(); 221 221 ok = false; 222 } 223 finally 224 { 225 if (dc != null) dc.close(); 226 } 222 return false; 223 } 224 finally 225 { 226 if (dc != null) dc.close(); 227 } 228 return true; 227 229 } 228 230 -
trunk/src/test/data/test.batchimport.scans.txt
r4426 r5696 1 Name Description Hybridization Protocol Scanner 2 Scan 1 The first Hyb 1 Scanning Scanner 3 Scan 2 The second Hyb 2 Scanning Scanner 4 Scan 3 Hyb all 1 Name Subtype Description Parent Extract Protocol Scanner File type File 2 Scan 1 Scan The first Hyb 1 Labeled 1.1 Scanning Scanner assembly.sam test.sam 3 Scan 2 Scan The second Hyb 2 Labeled 2.1 Scanning Scanner 4 Scan 3 Scan Hyb all 5 Child bioassay 1 ChildScan A child to Scan 1 Scan 1
Note: See TracChangeset
for help on using the changeset viewer.