Changeset 1159
- Timestamp:
- Sep 15, 2009, 1:22:43 PM (13 years ago)
- Location:
- extensions/net.sf.basedb.mev/trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.mev/trunk/META-INF/base-plugins.xml
r1082 r1159 10 10 <hasconfigurations/> 11 11 </pluginclass> 12 <pluginclass classname="net.sf.basedb.mev.install.Install"> 13 <minbaseversion>2.12</minbaseversion> 14 <hasconfigurations/> 15 </pluginclass> 12 16 </plugins> -
extensions/net.sf.basedb.mev/trunk/README
r1145 r1159 28 28 the 'Extensions directory' is selected. Install all plug-ins found in 29 29 the mev-launcher.jar file. 30 6. The 'MeV CGH exporter' requires that an admin configures the reporter 31 annotations that corresponds to the CGH file columns. Go to the 30 6. Run the 'MeV package installer' plug-in. Find this plug-in on the 31 'Administrate -> Plugins -> Definitions' page, click on it, and then 32 on the 'Run plugin' button. Complete the installation wizard. This will 33 install required items, eg. data file types, that are required by MeV. 34 7. The 'MeV CGH exporter' plug-in requires that an admin configures the 35 reporter annotations that corresponds to the CGH file columns. Go to the 32 36 'Administrate -> Plugins -> Definitions' page and click on the 33 37 'MeV CGH exporter' plug-in. Click on 'New configuration...' and … … 35 39 configure' and select the corresponding reporter annotation columns 36 40 for the four CGH file columns (chromosome, start, end and description). 37 Finish the configuration. Note! This step will also register a file 38 type for CGH. Make sure the logged in user has enough permissions to 39 create new file types. 40 7. Done. 41 Finish the configuration. 42 8. Done. 41 43 42 44 The MeV Launcher appears as an action in the "Tools" column when -
extensions/net.sf.basedb.mev/trunk/src/server/net/sf/basedb/mev/plugin/CghExporterPlugin.java
r1083 r1159 14 14 import net.sf.basedb.core.BooleanParameterType; 15 15 import net.sf.basedb.core.Config; 16 import net.sf.basedb.core.DataFileType;17 16 import net.sf.basedb.core.DbControl; 18 17 import net.sf.basedb.core.ExtendedProperties; … … 21 20 import net.sf.basedb.core.FileSetMember; 22 21 import net.sf.basedb.core.FileStoreUtil; 23 import net.sf.basedb.core.FileType;24 22 import net.sf.basedb.core.Item; 25 import net.sf.basedb.core.ItemNotFoundException;26 23 import net.sf.basedb.core.ItemParameterType; 27 24 import net.sf.basedb.core.Job; 28 25 import net.sf.basedb.core.Path; 29 import net.sf.basedb.core.Permission;30 26 import net.sf.basedb.core.PluginDefinition; 31 27 import net.sf.basedb.core.PluginParameter; … … 33 29 import net.sf.basedb.core.RequestInformation; 34 30 import net.sf.basedb.core.StringParameterType; 35 import net.sf.basedb.core.SystemItems;36 31 import net.sf.basedb.core.plugin.About; 37 32 import net.sf.basedb.core.plugin.AboutImpl; … … 361 356 Config.getCharset())); 362 357 parameters.add(getOverwriteParameter(null, null)); 363 if (checkCghFileType(dc) != null) 364 { 365 parameters.add(new PluginParameter<Boolean>( 366 "attachToBioAssaySet", 367 "Attach file to bioassay set", 368 "Deselect this option if you don't want the generated file to " + 369 "become attached to the current bioassay set. This option is ignored " + 370 "if the file isn't saved in the BASE file system.", 371 new BooleanParameterType(true, false) 372 )); 373 } 358 parameters.add(new PluginParameter<Boolean>( 359 "attachToBioAssaySet", 360 "Attach file to bioassay set", 361 "Deselect this option if you don't want the generated file to " + 362 "become attached to the current bioassay set. This option is ignored " + 363 "if the file isn't saved in the BASE file system.", 364 new BooleanParameterType(true, false) 365 )); 374 366 dc.commit(); 375 367 … … 391 383 private RequestInformation getConfigurePluginParameters(GuiContext context) 392 384 { 393 if (configurePlugin != null) return configurePlugin; 394 395 // Check/create MeV CGH file type 396 DbControl dc = null; 397 try 398 { 399 dc = sc.newDbControl(); 400 checkCghFileType(dc); 401 dc.commit(); 402 } 403 finally 404 { 405 if (dc != null) dc.close(); 406 } 407 385 if (configurePlugin != null) return configurePlugin; 408 386 List<PluginParameter<?>> parameters = new ArrayList<PluginParameter<?>>(); 409 387 … … 467 445 return configurePlugin; 468 446 } 469 470 public DataFileType checkCghFileType(DbControl dc)471 {472 DataFileType cgh = null;473 try474 {475 cgh = DataFileType.getByExternalId(dc, Mev.CGH_FILE);476 }477 catch (ItemNotFoundException ex)478 {479 if (dc.getSessionControl().hasPermission(Permission.CREATE, Item.DATAFILETYPE))480 {481 cgh = DataFileType.getNew(dc, Mev.CGH_FILE, Item.BIOASSAYSET);482 cgh.setName("MeV CGH");483 cgh.setDescription("A MeV Comparative Genomic Hybridization file");484 cgh.setGenericType(FileType.getById(dc, SystemItems.getId(FileType.SPOT_DATA)));485 dc.saveItem(cgh);486 }487 }488 catch (Exception ex)489 {}490 return cgh;491 }492 493 447 }
Note: See TracChangeset
for help on using the changeset viewer.