Skip to main content

references

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

Overview

Namereferences
TypeResource
Idaws.omics.references

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
payloadstring (byte)The reference file payload.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_referenceselectid, reference_store_id, partNumber, regionRange, fileDownloads parts of data from a reference genome and returns the reference file in the same format that it was uploaded. For more information, see Creating a HealthOmics reference store in the Amazon Web Services HealthOmics User Guide.
list_referencesselectreference_store_id, regionmaxResults, nextTokenRetrieves the metadata of one or more reference genomes in a reference store. For more information, see Creating a reference store in the Amazon Web Services HealthOmics User Guide.
delete_referencedeleteid, reference_store_id, regionDeletes a reference genome and returns a response with no body if the operation is successful. The read set associated with the reference genome must first be deleted before deleting the reference genome. After the reference genome is deleted, you can delete the reference store using the DeleteReferenceStore API operation. For more information, see Deleting HealthOmics reference and sequence stores in the Amazon Web Services HealthOmics User Guide.
start_reference_import_jobexecreference_store_id, region, roleArn, sourcesImports a reference genome from Amazon S3 into a specified reference store. You can have multiple reference genomes in a reference store. You can only import reference genomes one at a time into each reference store. Monitor the status of your reference import job by using the GetReferenceImportJob API operation.

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
idstringThe reference's ID.
partNumberintegerThe part number to retrieve.
reference_store_idstringThe job's reference store ID.
regionstringAWS region (default: us-east-1)
RangestringThe range to retrieve.
filestringThe file to retrieve.
maxResultsintegerThe maximum number of references to return in one page of results.
nextTokenstringSpecify the pagination token from a previous request to retrieve the next page of results.

SELECT examples

Downloads parts of data from a reference genome and returns the reference file in the same format that it was uploaded. For more information, see Creating a HealthOmics reference store in the Amazon Web Services HealthOmics User Guide.

SELECT
payload
FROM aws.omics.references
WHERE id = '{{ id }}' -- required
AND reference_store_id = '{{ reference_store_id }}' -- required
AND partNumber = '{{ partNumber }}' -- required
AND region = '{{ region }}' -- required
AND Range = '{{ Range }}'
AND file = '{{ file }}'
;

DELETE examples

Deletes a reference genome and returns a response with no body if the operation is successful. The read set associated with the reference genome must first be deleted before deleting the reference genome. After the reference genome is deleted, you can delete the reference store using the DeleteReferenceStore API operation. For more information, see Deleting HealthOmics reference and sequence stores in the Amazon Web Services HealthOmics User Guide.

DELETE FROM aws.omics.references
WHERE id = '{{ id }}' --required
AND reference_store_id = '{{ reference_store_id }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Imports a reference genome from Amazon S3 into a specified reference store. You can have multiple reference genomes in a reference store. You can only import reference genomes one at a time into each reference store. Monitor the status of your reference import job by using the GetReferenceImportJob API operation.

EXEC aws.omics.references.start_reference_import_job
@reference_store_id='{{ reference_store_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"roleArn": "{{ roleArn }}",
"clientToken": "{{ clientToken }}",
"sources": "{{ sources }}"
}'
;