Class UISequenceFileService


  • @Component
    public class UISequenceFileService
    extends java.lang.Object
    UI Service for handling requests related to SequenceFiles
    • Field Detail

      • IMG_DUPLICATION_LEVEL

        public static final java.lang.String IMG_DUPLICATION_LEVEL
        See Also:
        Constant Field Values
      • qcFileTypes

        public static final java.lang.String[] qcFileTypes
    • Method Detail

      • getFastQCDetails

        public FastQCDetailsResponse getFastQCDetails​(java.lang.Long sequencingObjectId,
                                                      java.lang.Long sequenceFileId)
        Gets the details for the sequence file
        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

        public FastQCImagesResponse getFastQCCharts​(java.lang.Long sequencingObjectId,
                                                    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

        public void downloadSequenceFile​(java.lang.Long sequencingObjectId,
                                         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