Class ExpressionExperimentDataFetchController


  • @Controller
    public class ExpressionExperimentDataFetchController
    extends Object
    For the download of data files from the browser. We can send the 'raw' data for any one quantitation type, with gene annotations, OR the 'filtered masked' matrix for the expression experiment.
    Author:
    pavlidis
    • Constructor Detail

      • ExpressionExperimentDataFetchController

        public ExpressionExperimentDataFetchController()
    • Method Detail

      • downloadFile

        @RequestMapping(value="/getData.html",
                        method=GET,
                        produces="application/octet-stream")
        public void downloadFile​(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response)
                          throws IOException
        Regular spring MVC request to fetch a file that already has been generated. It is assumed that the file is in the DATA_DIR.
        Parameters:
        response - response
        request - request
        Throws:
        IOException
      • getMetadataFiles

        public MetaFile[] getMetadataFiles​(Long eeId)
        Scans the metadata directory for any files associated with the given experiment.
        Parameters:
        eeId - the id of the experiment to scan for the metadata for.
        Returns:
        an array of files available in the metadata directory for the given experiment.
      • getCoExpressionDataFile

        public String getCoExpressionDataFile​(Long eeId)
        AJAX Method - kicks off a job to start generating (if need be) the text based tab delimited co-expression data file
      • getDataFile

        public String getDataFile​(ExpressionExperimentDataFetchCommand command)
        AJAX Method - kicks off a job to start generating (if need be) the text based tab delimited experiment design data file
      • getDiffExpressionDataFile

        public String getDiffExpressionDataFile​(Long analysisId)
        AJAX Method - kicks off a job to start generating (if need be) the text based tab delimited differential expression data file
      • getOutputFile

        public File getOutputFile​(String filename)
      • setQuantitationTypeService

        public void setQuantitationTypeService​(QuantitationTypeService quantitationTypeService)