Changeset 1156


Ignore:
Timestamp:
Sep 14, 2009, 1:44:09 PM (13 years ago)
Author:
Nicklas Nordborg
Message:

References #241: Add MeV Analysis file as a file type for bioassay sets

The MeV analysis file type is now supported by the launch functionality. There is still no automatic installation. This must be done manually. Eg. create a data file type with external id=mev.anl; name=MeV analysis file; extension=anl; generic file type=Spot data; Item type=Bioassay set.

Also, MeV is not able to open the file yet. We need the wrapper for that.

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

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.mev/trunk/resources/launch_mev.jsp

    r1086 r1156  
    7575  File tdmsFile = FileStoreUtil.getDataFile(dc, bas, "mev.tdms");
    7676  File cghFile = FileStoreUtil.getDataFile(dc, bas, "mev.cgh");
     77  File anlFile = FileStoreUtil.getDataFile(dc, bas, "mev.anl");
    7778  boolean allowCreateFile = bas.hasPermission(Permission.WRITE)
    7879    && sc.hasPermission(Permission.CREATE, Item.FILE);
     
    155156  <table class="form">
    156157  <tr>
     158    <td class="prompt" colspan="2">MeV analysis file</td>
     159  </tr>
     160  <tr>
     161    <td><base:button title="Start MeV"
     162      onclick="launchMev('mev.anl')"
     163      image="<%=anlFile == null ? homeUrl + "/images/tm4_disabled.png" : homeUrl + "/images/tm4.png" %>"
     164      disabled="<%=anlFile == null%>"/></td>
     165    <td>
     166    <%
     167    if (anlFile == null)
     168    {
     169      %>
     170      There is currently no MeV analysis file associated with the bioassay set.
     171      <%
     172    }
     173    else
     174    {
     175      %>
     176      Start MeV with the current analysis file:<br>
     177      <%=HTML.encodeTags(anlFile.getName())%> <%=Base.getFileLinks(ID, anlFile, root) %>
     178      <%
     179    }
     180    %>
     181    </td>
     182  </tr>
     183  <tr>
    157184    <td class="prompt" colspan="2">TDMS - Tab-delimited multiple sample</td>
    158185  </tr>
     
    208235    <td><base:button title="Start MeV"
    209236      onclick="launchMev('mev.cgh')"
    210       image="<%=tdmsFile == null ? homeUrl + "/images/tm4_disabled.png" : homeUrl + "/images/tm4.png" %>"
     237      image="<%=cghFile == null ? homeUrl + "/images/tm4_disabled.png" : homeUrl + "/images/tm4.png" %>"
    211238      disabled="<%=cghFile == null%>"/></td>
    212239    <td>
  • extensions/net.sf.basedb.mev/trunk/resources/mev_jnlp.jsp

    r1145 r1156  
    4646final int bioAssaySetId = Values.getInt(request.getParameter("bioassayset_id"));
    4747final String fileType = Values.getString(request.getParameter("filetype"));
    48 final String mevFileType = "mev.cgh".equals(fileType) ? "cgh" : "tdms";
     48final String mevFileType = fileType.substring(4);
    4949final String scheme = request.getScheme();
    5050final String serverName = request.getServerName();
  • extensions/net.sf.basedb.mev/trunk/src/net/sf/basedb/mev/Mev.java

    r1153 r1156  
    4444  public static final String CGH_FILE = "mev.cgh";
    4545 
     46  /**
     47    The external ID for the file type representing
     48    a MeV Analysis file.
     49    @see DataFileType#getByExternalId(net.sf.basedb.core.DbControl, String)
     50    @since 1.5
     51  */
     52  public static final String ANALYSIS_FILE = "mev.anl";
     53 
    4654}
Note: See TracChangeset for help on using the changeset viewer.