选择您的 Cookie 首选项

我们使用必要 Cookie 和类似工具提供我们的网站和服务。我们使用性能 Cookie 收集匿名统计数据,以便我们可以了解客户如何使用我们的网站并进行改进。必要 Cookie 无法停用,但您可以单击“自定义”或“拒绝”来拒绝性能 Cookie。

如果您同意,AWS 和经批准的第三方还将使用 Cookie 提供有用的网站功能、记住您的首选项并显示相关内容,包括相关广告。要接受或拒绝所有非必要 Cookie,请单击“接受”或“拒绝”。要做出更详细的选择,请单击“自定义”。

Running queries on HealthOmics variant stores

聚焦模式
Running queries on HealthOmics variant stores - AWS HealthOmics
此页面尚未翻译为您的语言。 请求翻译

You can perform queries on your variant store using Amazon Athena. Note that genomic coordinates in variant and annotation stores are represented as zero-based, half-closed half-open intervals.

Run a simple query using the Athena console

The following example shows how to run a simple query.

  1. Open the Athena Query editor: Athena Query editor

  2. Under Workgroup, select the workgroup that you created during setup.

  3. Verify that Data source is AwsDataCatalog.

  4. For Database, select the database resource link that you created during the Lake Formation setup.

  5. Copy the following query into the Query Editor under the Query 1 tab:

    SELECT * from omicsvariants limit 10
  6. Choose Run to run the query. The console populates the results table with the first 10 rows of the omicsvariants table.

Run a complex query using the Athena console

The following example shows how to run a complex query. To run this query, import ClinVar into the annotation store.

Run a complex query
  1. Open the Athena Query editor: Athena Query editor

  2. UnderWorkgroup, select the workgroup that you created during setup.

  3. Verify that Data source is AwsDataCatalog.

  4. For Database, select the database resource link that you created during the Lake Formation setup.

  5. Choose the + at the top right to create a new query tab named Query 2.

  6. Copy the following query into the Query Editor under the Query 2 tab:

    SELECT variants.sampleid, variants.contigname, variants.start, variants."end", variants.referenceallele, variants.alternatealleles, variants.attributes AS variant_attributes, clinvar.attributes AS clinvar_attributes FROM omicsvariants as variants INNER JOIN omicsannotations as clinvar ON variants.contigname=CONCAT('chr',clinvar.contigname) AND variants.start=clinvar.start AND variants."end"=clinvar."end" AND variants.referenceallele=clinvar.referenceallele AND variants.alternatealleles=clinvar.alternatealleles WHERE clinvar.attributes['CLNSIG']='Likely_pathogenic'
  7. Choose Run to start running the query.

隐私网站条款Cookie 首选项
© 2025, Amazon Web Services, Inc. 或其附属公司。保留所有权利。