Skip to main content

multipart_read_set_uploads

Creates, updates, deletes, gets or lists a multipart_read_set_uploads resource.

Overview

Namemultipart_read_set_uploads
TypeResource
Idaws.omics.multipart_read_set_uploads

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of a read set. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
creation_timestring (date-time)The time stamp for when a direct upload was created.
descriptionstringThe description of a read set. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
generated_fromstringThe source of an uploaded part. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
reference_arnstringThe source's reference ARN. (pattern: <code>arn:.+</code>)
sample_idstringThe read set source's sample ID. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
sequence_store_idstringThe sequence store ID used for the multipart upload. (pattern: <code>[0-9]+</code>)
source_file_typestringThe type of file the read set originated from. (FASTQ, BAM, CRAM, UBAM)
subject_idstringThe read set source's subject ID. (pattern: <code>[\p{L}||\p{M}||\p{Z}||\p{S}||\p{N}||\p{P}]+</code>)
tagsobjectAny tags you wish to add to a read set.
upload_idstringThe ID for the initiated multipart upload. (pattern: <code>[0-9]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_multipart_read_set_uploadsselectsequence_store_id, regionmaxResults, nextTokenLists in-progress multipart read set uploads for a sequence store and returns it in a JSON formatted output. Multipart read set uploads are initiated by the CreateMultipartReadSetUploads API operation. This operation returns a response with no body when the upload is complete.
create_multipart_read_set_uploadinsertsequence_store_id, region, sourceFileType, subjectId, sampleId, nameInitiates a multipart read set upload for uploading partitioned source files into a sequence store. You can directly import source files from an EC2 instance and other local compute, or from an S3 bucket. To separate these source files into parts, use the split operation. Each part cannot be larger than 100 MB. If the operation is successful, it provides an uploadId which is required by the UploadReadSetPart API operation to upload parts into a sequence store. To continue uploading a multipart read set into your sequence store, you must use the UploadReadSetPart API operation to upload each part individually following the steps below: Specify the uploadId obtained from the previous call to CreateMultipartReadSetUpload. Upload parts for that uploadId. When you have finished uploading parts, use the CompleteMultipartReadSetUpload API to complete the multipart read set upload and to retrieve the final read set IDs in the response. To learn more about creating parts and the split operation, see Direct upload to a sequence store in the Amazon Web Services HealthOmics User Guide.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
sequence_store_idstringThe sequence store ID for the store that is the destination of the multipart uploads.
maxResultsintegerThe maximum number of multipart uploads returned in a page.
nextTokenstringNext token returned in the response of a previous ListMultipartReadSetUploads call. Used to get the next page of results.

SELECT examples

Lists in-progress multipart read set uploads for a sequence store and returns it in a JSON formatted output. Multipart read set uploads are initiated by the CreateMultipartReadSetUploads API operation. This operation returns a response with no body when the upload is complete.

SELECT
name,
creation_time,
description,
generated_from,
reference_arn,
sample_id,
sequence_store_id,
source_file_type,
subject_id,
tags,
upload_id
FROM aws.omics.multipart_read_set_uploads
WHERE sequence_store_id = '{{ sequence_store_id }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

INSERT examples

Initiates a multipart read set upload for uploading partitioned source files into a sequence store. You can directly import source files from an EC2 instance and other local compute, or from an S3 bucket. To separate these source files into parts, use the split operation. Each part cannot be larger than 100 MB. If the operation is successful, it provides an uploadId which is required by the UploadReadSetPart API operation to upload parts into a sequence store. To continue uploading a multipart read set into your sequence store, you must use the UploadReadSetPart API operation to upload each part individually following the steps below: Specify the uploadId obtained from the previous call to CreateMultipartReadSetUpload. Upload parts for that uploadId. When you have finished uploading parts, use the CompleteMultipartReadSetUpload API to complete the multipart read set upload and to retrieve the final read set IDs in the response. To learn more about creating parts and the split operation, see Direct upload to a sequence store in the Amazon Web Services HealthOmics User Guide.

INSERT INTO aws.omics.multipart_read_set_uploads (
clientToken,
sourceFileType,
subjectId,
sampleId,
generatedFrom,
referenceArn,
name,
description,
tags,
sequence_store_id,
region
)
SELECT
'{{ clientToken }}',
'{{ sourceFileType }}' /* required */,
'{{ subjectId }}' /* required */,
'{{ sampleId }}' /* required */,
'{{ generatedFrom }}',
'{{ referenceArn }}',
'{{ name }}' /* required */,
'{{ description }}',
'{{ tags }}',
'{{ sequence_store_id }}',
'{{ region }}'
RETURNING
name,
creation_time,
description,
generated_from,
reference_arn,
sample_id,
sequence_store_id,
source_file_type,
subject_id,
tags,
upload_id
;