Ignore:
Timestamp:
Sep 14, 2009, 1:44:09 PM (14 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.

File:
1 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>
Note: See TracChangeset for help on using the changeset viewer.