Skip to content

Commit bc115d2

Browse files
committed
Amazon Omics examples
1 parent 3b5a597 commit bc115d2

File tree

67 files changed

+1609
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1609
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
**To delete multiple read sets**
2+
3+
The following ``batch-delete-read-set`` example deletes two read sets. ::
4+
5+
aws omics batch-delete-read-set \
6+
--sequence-store-id 1234567890 \
7+
--ids 1234567890 0123456789
8+
9+
If there is an error deleting any of the specified read sets, the service returns an error list. ::
10+
11+
{
12+
"errors": [
13+
{
14+
"code": "",
15+
"id": "0123456789",
16+
"message": "The specified readset does not exist."
17+
}
18+
]
19+
}
20+
21+
For more information, see `Omics Storage <https://docs.aws.amazon.com/omics/latest/dev/sequence-stores.html>`__ in the *Amazon Omics Developer Guide*.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
**To cancel an annotation import job**
2+
3+
The following ``cancel-annotation-import-job`` example cancels an annotation import job with ID ``04f57618-xmpl-4fd0-9349-e5a85aefb997``. ::
4+
5+
aws omics cancel-annotation-import-job \
6+
--job-id 04f57618-xmpl-4fd0-9349-e5a85aefb997
7+
8+
For more information, see `Omics Analytics <https://docs.aws.amazon.com/omics/latest/dev/omics-analytics.html>`__ in the *Amazon Omics Developer Guide*.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
**To cancel a run**
2+
3+
The following ``cancel-run`` example cancels a run with ID ``1234567``. ::
4+
5+
aws omics cancel-run \
6+
--id 1234567
7+
8+
For more information, see `Omics Workflows <https://docs.aws.amazon.com/omics/latest/dev/workflows.html>`__ in the *Amazon Omics Developer Guide*.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
**To cancel a variant import job**
2+
3+
The following ``cancel-variant-import-job`` example cancels a variant import job with ID ``69cb65d6-xmpl-4a4a-9025-4565794b684e``. ::
4+
5+
aws omics cancel-variant-import-job \
6+
--job-id 69cb65d6-xmpl-4a4a-9025-4565794b684e
7+
8+
For more information, see `Omics Analytics <https://docs.aws.amazon.com/omics/latest/dev/omics-analytics.html>`__ in the *Amazon Omics Developer Guide*.
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
**Example 1: To create a VCF annotation store**
2+
3+
The following ``create-annotation-store`` example creates a VCF format annotation store. ::
4+
5+
aws omics create-annotation-store \
6+
--name my_ann_store \
7+
--store-format VCF \
8+
--reference referenceArn=arn:aws:omics:us-west-2:123456789012:referenceStore/1234567890/reference/1234567890
9+
10+
Output::
11+
12+
{
13+
"creationTime": "2022-11-23T22:48:39.226492Z",
14+
"id": "0a91xmplc71f",
15+
"name": "my_ann_store",
16+
"reference": {
17+
"referenceArn": "arn:aws:omics:us-west-2:123456789012:referenceStore/1234567890/reference/1234567890"
18+
},
19+
"status": "CREATING",
20+
"storeFormat": "VCF"
21+
}
22+
23+
**Example 2: To create a TSV annotation store**
24+
25+
The following ``create-annotation-store`` example creates a TSV format annotation store. ::
26+
27+
aws omics create-annotation-store \
28+
--name tsv_ann_store \
29+
--store-format TSV \
30+
--reference referenceArn=arn:aws:omics:us-west-2:123456789012:referenceStore/1234567890/reference/1234567890 \
31+
--store-options file://tsv-store-options.json
32+
33+
``tsv-store-options.json`` configures format options for annotations. ::
34+
35+
{
36+
"tsvStoreOptions": {
37+
"annotationType": "CHR_START_END_ZERO_BASE",
38+
"formatToHeader": {
39+
"CHR": "chromosome",
40+
"START": "start",
41+
"END": "end"
42+
},
43+
"schema": [
44+
{
45+
"chromosome": "STRING"
46+
},
47+
{
48+
"start": "LONG"
49+
},
50+
{
51+
"end": "LONG"
52+
},
53+
{
54+
"name": "STRING"
55+
}
56+
]
57+
}
58+
}
59+
60+
Output::
61+
62+
{
63+
"creationTime": "2022-11-30T01:28:08.525586Z",
64+
"id": "861cxmpl96b0",
65+
"name": "tsv_ann_store",
66+
"reference": {
67+
"referenceArn": "arn:aws:omics:us-west-2:123456789012:referenceStore/1234567890/reference/1234567890"
68+
},
69+
"status": "CREATING",
70+
"storeFormat": "TSV",
71+
"storeOptions": {
72+
"tsvStoreOptions": {
73+
"annotationType": "CHR_START_END_ZERO_BASE",
74+
"formatToHeader": {
75+
"CHR": "chromosome",
76+
"END": "end",
77+
"START": "start"
78+
},
79+
"schema": [
80+
{
81+
"chromosome": "STRING"
82+
},
83+
{
84+
"start": "LONG"
85+
},
86+
{
87+
"end": "LONG"
88+
},
89+
{
90+
"name": "STRING"
91+
}
92+
]
93+
}
94+
}
95+
}
96+
97+
For more information, see `Omics Analytics <https://docs.aws.amazon.com/omics/latest/dev/omics-analytics.html>`__ in the Amazon Omics Developer Guide.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
**To create a reference store**
2+
3+
The following ``create-reference-store`` example creates a reference store ``my-ref-store``. ::
4+
5+
aws omics create-reference-store \
6+
--name my-ref-store
7+
8+
Output::
9+
10+
{
11+
"arn": "arn:aws:omics:us-west-2:123456789012:referenceStore/1234567890",
12+
"creationTime": "2022-11-22T22:13:25.947Z",
13+
"id": "1234567890",
14+
"name": "my-ref-store"
15+
}
16+
17+
For more information, see `Omics Storage <https://docs.aws.amazon.com/omics/latest/dev/sequence-stores.html>`__ in the *Amazon Omics Developer Guide*.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
**To create a run group**
2+
3+
The following ``create-run-group`` example creates a run group named ``cram-converter``. ::
4+
5+
aws omics create-run-group \
6+
--name cram-converter \
7+
--max-cpus 20 \
8+
--max-duration 600
9+
10+
Output::
11+
12+
{
13+
"arn": "arn:aws:omics:us-west-2:123456789012:runGroup/1234567",
14+
"id": "1234567",
15+
"tags": {}
16+
}
17+
18+
For more information, see `Omics Workflows <https://docs.aws.amazon.com/omics/latest/dev/workflows.html>`__ in the *Amazon Omics Developer Guide*.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
**To create a sequence store**
2+
3+
The following ``create-sequence-store`` example creates a sequence store. ::
4+
5+
aws omics create-sequence-store \
6+
--name my-seq-store
7+
8+
Output::
9+
10+
{
11+
"arn": "arn:aws:omics:us-west-2:123456789012:sequenceStore/1234567890",
12+
"creationTime": "2022-11-23T01:24:33.629Z",
13+
"id": "1234567890",
14+
"name": "my-seq-store"
15+
}
16+
17+
For more information, see `Omics Storage <https://docs.aws.amazon.com/omics/latest/dev/sequence-stores.html>`__ in the *Amazon Omics Developer Guide*.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
**To create a variant store**
2+
3+
The following ``create-variant-store`` example creates a variant store named ``my_var_store``. ::
4+
5+
aws omics create-variant-store \
6+
--name my_var_store \
7+
--reference referenceArn=arn:aws:omics:us-west-2:123456789012:referenceStore/1234567890/reference/1234567890
8+
9+
Output::
10+
11+
{
12+
"creationTime": "2022-11-23T22:09:07.534499Z",
13+
"id": "02dexmplcfdd",
14+
"name": "my_var_store",
15+
"reference": {
16+
"referenceArn": "arn:aws:omics:us-west-2:123456789012:referenceStore/1234567890/reference/1234567890"
17+
},
18+
"status": "CREATING"
19+
}
20+
21+
For more information, see `Omics Analytics <https://docs.aws.amazon.com/omics/latest/dev/omics-analytics.html>`__ in the *Amazon Omics Developer Guide*.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
**To create a workflow**
2+
3+
The following ``create-workflow`` example creates a WDL workflow. ::
4+
5+
aws omics create-workflow \
6+
--name cram-converter \
7+
--engine WDL \
8+
--definition-zip fileb://workflow-crambam.zip \
9+
--parameter-template file://workflow-params.json
10+
11+
``workflow-crambam.zip`` is a ZIP archive containing a workflow definition. ``workflow-params.json`` defines runtime parameters for the workflow. ::
12+
13+
{
14+
"ref_fasta" : {
15+
"description": "Reference genome fasta file",
16+
"optional": false
17+
},
18+
"ref_fasta_index" : {
19+
"description": "Index of the reference genome fasta file",
20+
"optional": false
21+
},
22+
"ref_dict" : {
23+
"description": "dictionary file for 'ref_fasta'",
24+
"optional": false
25+
},
26+
"input_cram" : {
27+
"description": "The Cram file to convert to BAM",
28+
"optional": false
29+
},
30+
"sample_name" : {
31+
"description": "The name of the input sample, used to name the output BAM",
32+
"optional": false
33+
}
34+
}
35+
36+
Output::
37+
38+
{
39+
"arn": "arn:aws:omics:us-west-2:123456789012:workflow/1234567",
40+
"id": "1234567",
41+
"status": "CREATING",
42+
"tags": {}
43+
}
44+
45+
For more information, see `Omics Workflows <https://docs.aws.amazon.com/omics/latest/dev/workflows.html>`__ in the *Amazon Omics Developer Guide*.

0 commit comments

Comments
 (0)