Changeset 1540


Ignore:
Timestamp:
Feb 22, 2012, 9:31:59 AM (11 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #361: MeV TDMS exporter should only include reporter fields that are present in the experiment

Location:
extensions/net.sf.basedb.mev/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.mev/trunk/.classpath

    r1383 r1540  
    88  <classpathentry kind="lib" path="resources/jar/mev-gui-impl.jar" sourcepath="/mev-4.4.1/source"/>
    99  <classpathentry kind="lib" path="resources/jar/HTTPClient.jar"/>
    10   <classpathentry kind="lib" path="lib/compile/base-core-3.0.0.jar"/>
    11   <classpathentry kind="lib" path="lib/compile/base-coreplugins-3.0.0.jar"/>
    12   <classpathentry kind="lib" path="lib/compile/base-webclient-3.0.0.jar"/>
    13   <classpathentry kind="lib" path="lib/compile/base-webservices-client-3.0.0.jar"/>
     10  <classpathentry kind="lib" path="lib/compile/base-core-3.1.0.jar"/>
     11  <classpathentry kind="lib" path="lib/compile/base-coreplugins-3.1.0.jar"/>
     12  <classpathentry kind="lib" path="lib/compile/base-webclient-3.1.0.jar"/>
     13  <classpathentry kind="lib" path="lib/compile/base-webservices-client-3.1.0.jar"/>
    1414  <classpathentry kind="output" path="bin"/>
    1515</classpath>
  • extensions/net.sf.basedb.mev/trunk/META-INF/extensions.xml

    r1443 r1540  
    88      it import data from the current bioassay set.
    99    </description>
    10     <version>1.8</version>
     10    <version>1.9-dev</version>
    1111    <copyright>BASE development team</copyright>
    1212    <email>basedb-users@lists.sourceforge.net</email>
    1313    <url>http://baseplugins.thep.lu.se/wiki/net.sf.basedb.mev</url>
    14     <min-base-version>3.0.0</min-base-version>   
     14    <min-base-version>3.1.0</min-base-version>   
    1515  </about>
    1616  <plugin-definition id="PackageInstaller">
     
    103103        <title>MeV Launcher options&amp;hellip;</title>
    104104        <tooltip>Specify options for the MeV Launcher</tooltip>
    105         <onClick>Main.openPopup('$HOME$/options.jsp?ID='+getSessionId(), 'MeVLauncherOptions', 500, 400)</onClick>
     105        <onClick>Main.openPopup('$HOME$/options.jsp?ID='+getSessionId(), 'MeVLauncherOptions', 450, 300)</onClick>
    106106        <icon>~/images/tm4.png</icon>
    107107      </parameters>
  • extensions/net.sf.basedb.mev/trunk/README

    r1442 r1540  
    11== Requirements ==
    22
    3  1. BASE 3.0 or later.
     3 1. BASE 3.1 or later.
    44 
    55== Introduction ==
  • extensions/net.sf.basedb.mev/trunk/build.xml

    r1539 r1540  
    1010  <!-- variables used -->
    1111  <property name="name" value="mev-launcher" />
    12   <property name="version" value="1.8" />
     12  <property name="version" value="1.9-dev" />
    1313  <property name="src" location="src" description="Location of source files" />
    1414  <property name="build" location="build" description="Location of compiled files" />
     
    2424  <property name="javac.encoding" value="UTF-8" />
    2525  <property name="depend.base-version"
    26     value="3.0.0"
     26    value="3.1.0"
    2727    description="The BASE version that this project depends on."
    2828  />
  • extensions/net.sf.basedb.mev/trunk/lib/compile

    • Property svn:ignore
      •  

        old new  
        1 BASE2*.jar
        2 base-core-3.0.0.jar
        3 base-coreplugins-3.0.0.jar
        4 base-webclient-3.0.0.jar
        5 base-webservices-client-3.0.0.jar
         1base-*.jar
         2
  • extensions/net.sf.basedb.mev/trunk/src/server/net/sf/basedb/mev/Mev.java

    r1443 r1540  
    3636    The current version of this plug-in package.
    3737  */
    38   public static final String VERSION = "1.8";
     38  public static final String VERSION = "1.9-dev";
    3939
    4040  /**
  • extensions/net.sf.basedb.mev/trunk/src/server/net/sf/basedb/mev/export/TdmsExporter.java

    r1416 r1540  
    3131import net.sf.basedb.core.BioAssay;
    3232import net.sf.basedb.core.BioAssaySet;
     33import net.sf.basedb.core.ClonableProperty;
    3334import net.sf.basedb.core.DatabaseException;
    3435import net.sf.basedb.core.DbControl;
    3536import net.sf.basedb.core.DynamicResultIterator;
    3637import net.sf.basedb.core.DynamicSpotQuery;
    37 import net.sf.basedb.core.ExtendedProperties;
    38 import net.sf.basedb.core.ExtendedProperty;
    3938import net.sf.basedb.core.Formula;
    4039import net.sf.basedb.core.IntensityTransform;
     40import net.sf.basedb.core.ReporterCloneTemplate;
    4141import net.sf.basedb.core.Type;
    4242import net.sf.basedb.core.query.SqlResult;
     
    280280  /**
    281281    Adds position, externalId, symbol, plus all admin-defined extended
    282     properties as reporter fields.
     282    properties as reporter fields. If the experiment has cloned reporter annotations
     283    only fields that are present in the copy are exported.
    283284  */
    284285  protected void addReporterFields()
    285286  {
    286287    addReporterField(ExportableFieldFactory.jep("pos()", "id", Type.INT, Formula.AverageMethod.NONE, null));
    287     addReporterField(ExportableFieldFactory.reporter("externalId", null, Type.STRING, null, null));
    288     addReporterField(ExportableFieldFactory.reporter("symbol", null, Type.STRING, null, null));
    289     for (ExtendedProperty ep : ExtendedProperties.getProperties("ReporterData"))
    290     {
    291       addReporterField(ExportableFieldFactory.reporter(ep, null, null));
     288    ReporterCloneTemplate template = getSource().getExperiment().getVirtualDb().getReporterCloneTemplate();
     289   
     290    if (template.hasClonableProperty(ClonableProperty.EXTERNAL_ID))
     291    {
     292      addReporterField(ExportableFieldFactory.reporter(template.getClonableProperty(ClonableProperty.EXTERNAL_ID), null, null));
     293    }
     294
     295    if (template.hasClonableProperty(ClonableProperty.SYMBOL))
     296    {
     297      addReporterField(ExportableFieldFactory.reporter(template.getClonableProperty(ClonableProperty.SYMBOL), null, null));
     298    }
     299   
     300    List<ClonableProperty> properties = template == null ?
     301        ClonableProperty.getAll() : template.getClonableProperties();
     302    for (ClonableProperty ep : properties)
     303    {
     304      if (ep.isExtendedProperty())
     305      {
     306        addReporterField(ExportableFieldFactory.reporter(ep, null, null));
     307      }
    292308    }
    293309  }
Note: See TracChangeset for help on using the changeset viewer.