Google Genomics Variant Transform 管道使用的 Variant Schema 将基因型表示为 BigQuery 中的嵌套记录 - 例如:
(来自:https ://bigquery.cloud.google.com/table/genomics-public-data:1000_genomes.variants?pli=1&tab=preview )
我无法理解如何编写涉及样本之间关系的查询 - 例如:
select all variants where sampleA.genotype=HET and sampleB.genotype=HET and sampleC.genotype=HOM-ALT
或类似的查询,其中 sampleA 和 sampleB 是 sampleC 的父母,并且您正在寻找遵循特定继承模式的变体。
人们如何使用嵌套模式编写这些查询?