Changeset 3731
- Timestamp:
- Sep 14, 2007, 10:59:20 AM (15 years ago)
- Location:
- branches/2.4-stable/src/plugins/core/net/sf/basedb/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4-stable/src/plugins/core/net/sf/basedb/plugins/Base1PluginExecuter.java
r3729 r3731 44 44 import net.sf.basedb.core.Include; 45 45 import net.sf.basedb.core.IntegerParameterType; 46 import net.sf.basedb.core.InvalidDataException;47 46 import net.sf.basedb.core.Item; 48 47 import net.sf.basedb.core.ItemNotFoundException; … … 109 108 import java.util.Set; 110 109 import java.util.TreeMap; 111 import java.util.regex.Matcher;112 110 import java.util.regex.Pattern; 113 111 … … 138 136 139 137 /** 140 The plug-in gpermissions.138 The plug-in permissions. 141 139 */ 142 140 private static final Set<Permissions> permissions = new HashSet<Permissions>(); … … 207 205 208 206 /** 209 The reporter fields that should be exported as a tab separ eated string207 The reporter fields that should be exported as a tab separated string 210 208 of column headers. 211 209 */ … … 214 212 /** 215 213 The spot fields that should be exported as a tab separated string of 216 column head res.214 column headers. 217 215 */ 218 216 private PluginParameter<String> usedFieldsParameter; … … 265 263 private int pluginDirectoryId = -1; 266 264 267 /* From InteractivePlugin i terface*/265 /* From InteractivePlugin interface*/ 268 266 269 267 /** … … 273 271 @param context The context from where the plugin is invoked. 274 272 @param item The item that should be checked if it is in context. 275 @return null if the the item is in context, otherwise an error mess ge.273 @return null if the the item is in context, otherwise an error message. 276 274 @see net.sf.basedb.core.plugin.AbstractAnalysisPlugin#isInContext(net.sf.basedb.core.plugin.GuiContext, java.lang.Object) 277 275 */ … … 407 405 storeValue(configuration, request, usedFieldsParameter); 408 406 storeValue(configuration, request, jobParametersParameter); 409 // test the xml in the jobParameters parame res407 // test the xml in the jobParameters parameters 410 408 try 411 409 { … … 448 446 449 447 /** 450 Copies the content from a File to a directory on the file system.448 Copies the content from a File to a directory on the file system. 451 449 452 450 @param f The file to be copied. … … 483 481 // Load existing... 484 482 jobDirectory = Directory.getByPath(dc, path); 485 // ...and remove files and sub directories in it483 // ...and remove files and sub directories in it 486 484 emptyDir(dc, path); 487 485 } … … 503 501 504 502 /** 505 Deletes all files and sub directories under dir.503 Deletes all files and sub directories under dir. 506 504 507 505 @param dir 508 @return Returnes true if all deletions were succssful506 @return true if all deletions were successful 509 507 */ 510 508 private boolean deleteDir(java.io.File dir) … … 527 525 528 526 /** 529 Deletes all files and sub directories under dir. The directory given527 Deletes all files and sub directories under dir. The directory given 530 528 itself is not deleted. 531 529 532 530 @param dc 533 531 @param dir 534 @return Returnes true if all deletions were succssful532 @return true if all deletions were successful 535 533 */ 536 534 private boolean emptyDir(DbControl dc, Path dir) … … 846 844 Map<String, String> names = new HashMap<String, String>(); 847 845 848 names.put("reporter", "rep.id");849 names.put("reporterId", "rep.externalId");850 851 846 ItemQuery<Formula> queryFormula = Formula.getQuery(Formula.Type.COLUMN_EXPRESSION, 852 847 bas.getRawDataType()); … … 857 852 names.put(f.getName(), "frm."+f.getId()); 858 853 } 854 855 names.put("lastUpdate", "rep.lastUpdate"); 856 names.put("geneName", "rep.name"); 857 names.put("position", "rep.position"); 858 names.put("reporter", "rep.id"); 859 names.put("reporterId", "rep.externalId"); 860 names.put("geneSymbol", "rep.symbol"); 861 862 names.put("rawPosition", "raw.position"); 863 names.put("block", "raw.block"); 864 names.put("numCol", "raw.col"); 865 names.put("numRow", "raw.row"); 866 names.put("x", "raw.x"); 867 names.put("y", "raw.y"); 859 868 860 869 for (ExtraValue ev : bas.getExtraValues().list(dc)) … … 1164 1173 1165 1174 /** 1166 Get the exec directory as a java.io.File. The exec directory is a su directory in1175 Get the exec directory as a java.io.File. The exec directory is a sub directory in 1167 1176 "java.io.tmpdir". 1168 1177 … … 1290 1299 1291 1300 @return The id of the transformation the data is connected to. 1292 @throws IOException if there is any error reading from stdou .txt1301 @throws IOException if there is any error reading from stdout.txt 1293 1302 */ 1294 1303 private int importData(DbControl dc, File stdout, Transformation t) … … 1500 1509 // { 1501 1510 // if (!posMap.get(position).equals(reporter)) 1502 // throw new BaseException("Invalid data. Position, "+position+", occur es twice with different reporter data.");1511 // throw new BaseException("Invalid data. Position, "+position+", occurs twice with different reporter data."); 1503 1512 // 1504 1513 // } … … 1606 1615 1607 1616 /** 1608 This thread read everything from one input strea tant writes everything to an output stream.1617 This thread read everything from one input stream ant writes everything to an output stream. 1609 1618 1610 1619 @author Johan Enell … … 1624 1633 1625 1634 /** 1626 Creates a steam handler connected to the specifi vstreams.1635 Creates a steam handler connected to the specific streams. 1627 1636 1628 1637 @param is The stream to read from. -
branches/2.4-stable/src/plugins/core/net/sf/basedb/plugins/BioAssaySetExporter.java
r3730 r3731 815 815 { 816 816 List<QueryItem> items = new ArrayList<QueryItem>(); 817 items.add(new QueryItem("raw.position", "[Raw] Position", " position", "raw('position')", Formula.AverageMethod.NONE));817 items.add(new QueryItem("raw.position", "[Raw] Position", "rawPosition", "raw('position')", Formula.AverageMethod.NONE)); 818 818 items.add(new QueryItem("raw.block", "[Raw] Array block", "block", "raw('block')", Formula.AverageMethod.NONE)); 819 819 items.add(new QueryItem("raw.metaGridX", "[Raw] Meta grid X", "metaGridX", "raw('metaGridX')", Formula.AverageMethod.NONE));
Note: See TracChangeset
for help on using the changeset viewer.