:doc:`Omics <../../omics>` / Client / upload_read_set_part

********************
upload_read_set_part
********************



.. py:method:: Omics.Client.upload_read_set_part(**kwargs)

  

  Uploads a specific part of a read set into a sequence store. When you a upload a read set part with a part number that already exists, the new part replaces the existing one. This operation returns a JSON formatted response containing a string identifier that is used to confirm that parts are being added to the intended upload.

   

  For more information, see `Direct upload to a sequence store <https://docs.aws.amazon.com/omics/latest/dev/synchronous-uploads.html>`__ in the *Amazon Web Services HealthOmics User Guide*.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/omics-2022-11-28/UploadReadSetPart>`_  


  **Request Syntax**
  ::

    response = client.upload_read_set_part(
        sequenceStoreId='string',
        uploadId='string',
        partSource='SOURCE1'|'SOURCE2',
        partNumber=123,
        payload=b'bytes'|file
    )
    
  :type sequenceStoreId: string
  :param sequenceStoreId: **[REQUIRED]** 

    The Sequence Store ID used for the multipart upload.

    

  
  :type uploadId: string
  :param uploadId: **[REQUIRED]** 

    The ID for the initiated multipart upload.

    

  
  :type partSource: string
  :param partSource: **[REQUIRED]** 

    The source file for an upload part.

    

  
  :type partNumber: integer
  :param partNumber: **[REQUIRED]** 

    The number of the part being uploaded.

    

  
  :type payload: bytes or seekable file-like object
  :param payload: **[REQUIRED]** 

    The read set data to upload for a part.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'checksum': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **checksum** *(string) --* 

        An identifier used to confirm that parts are being added to the intended upload.

        
  
  **Exceptions**
  
  *   :py:class:`Omics.Client.exceptions.InternalServerException`

  
  *   :py:class:`Omics.Client.exceptions.NotSupportedOperationException`

  
  *   :py:class:`Omics.Client.exceptions.ServiceQuotaExceededException`

  
  *   :py:class:`Omics.Client.exceptions.ThrottlingException`

  
  *   :py:class:`Omics.Client.exceptions.ValidationException`

  
  *   :py:class:`Omics.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Omics.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Omics.Client.exceptions.RequestTimeoutException`

  