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,HEAD})
        public void downloadFile​(@RequestParam("file")
                                 String filename,
                                 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.
        Throws:
        IOException
      • downloadMetaFile

        @RequestMapping(value="/getMetaData.html",
                        method={GET,HEAD})
        public void downloadMetaFile​(@RequestParam("eeId")
                                     Long eeId,
                                     @RequestParam("typeId")
                                     Integer typeId,
                                     javax.servlet.http.HttpServletResponse response)
                              throws IOException
        Throws:
        IOException
      • getMetadataFiles

        public MetaFile[] getMetadataFiles​(Long eeId)
                                    throws IOException
        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.
        Throws:
        IOException
      • 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)