Class SequenceFileAjaxController


  • @RestController
    @Scope("session")
    @RequestMapping("/ajax/sequenceFiles")
    public class SequenceFileAjaxController
    extends java.lang.Object
    Ajax controller to get data for the fastqc page.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void downloadSequenceFile​(java.lang.Long sequencingObjectId, java.lang.Long sequenceFileId, javax.servlet.http.HttpServletResponse response)
      Download the sequence file
      org.springframework.http.ResponseEntity<FastQCImagesResponse> getFastQCCharts​(java.lang.Long sequencingObjectId, java.lang.Long sequenceFileId)
      Gets the fastqc charts for the file.
      org.springframework.http.ResponseEntity<FastQCDetailsResponse> getFastQCDetails​(java.lang.Long sequencingObjectId, java.lang.Long sequenceFileId)
      Gets the details for the file fastqc results.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SequenceFileAjaxController

        @Autowired
        public SequenceFileAjaxController​(UISequenceFileService uiSequenceFileService)
    • Method Detail

      • getFastQCDetails

        @GetMapping("/fastqc-details")
        public org.springframework.http.ResponseEntity<FastQCDetailsResponse> getFastQCDetails​(@RequestParam
                                                                                               java.lang.Long sequencingObjectId,
                                                                                               @RequestParam
                                                                                               java.lang.Long sequenceFileId)
        Gets the details for the file fastqc results.
        Parameters:
        sequencingObjectId - ID for the SequencingObject
        sequenceFileId - Id for the SequenceFile
        Returns:
        FastQCDetailsResponse dto which contains the sequencing object, sequence file, and the fastqc result.
      • getFastQCCharts

        @GetMapping("/fastqc-charts")
        public org.springframework.http.ResponseEntity<FastQCImagesResponse> getFastQCCharts​(@RequestParam
                                                                                             java.lang.Long sequencingObjectId,
                                                                                             @RequestParam
                                                                                             java.lang.Long sequenceFileId)
                                                                                      throws java.io.IOException
        Gets the fastqc charts for the file.
        Parameters:
        sequencingObjectId - ID for the SequencingObject
        sequenceFileId - Id for the SequenceFile
        Returns:
        FastQCImagesResponse dto which has the byte arrays for the images as well as the fastqc version
        Throws:
        java.io.IOException - if entity is not found
      • downloadSequenceFile

        @GetMapping("/download")
        public void downloadSequenceFile​(@RequestParam
                                         java.lang.Long sequencingObjectId,
                                         @RequestParam
                                         java.lang.Long sequenceFileId,
                                         javax.servlet.http.HttpServletResponse response)
                                  throws java.io.IOException
        Download the sequence file
        Parameters:
        sequencingObjectId - ID for the SequencingObject
        sequenceFileId - Id for the SequenceFile
        response - HTTP response object
        Throws:
        java.io.IOException - if file is not found