# Skat\_table qq-plot

**URL:** <https://discuss.hail.is/t/skat-table-qq-plot/612>\
**Category:** Hail Query & hailctl\
**Created:** [August 20, 2018, 8:51pm UTC](https://discuss.hail.is/t/skat-table-qq-plot/612 "2018-08-20T20:51:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![timstrom](https://avatars.discourse-cdn.com/v4/letter/t/71c47a/32.png) [@timstrom](https://discuss.hail.is/u/timstrom)\
**Post date:** [August 20, 2018, 8:51pm UTC](https://discuss.hail.is/t/skat-table-qq-plot/612/1 "2018-08-20T20:51:12Z")

</div>

It seems to be not further possible to  
submit ‘skat\_table.p\_value’ to hl.plot.qq.

I received the following error message.

skat\_table = hl.skat(key\_expr=burden\_ds.gene,  
weight\_expr=burden\_ds.weight,  
logistic=True,  
y=burden\_ds.caco,  
x=burden\_ds.GT.n\_alt\_alleles(),  
covariates=[1])

In [43]: type(skat\_table)  
Out[43]: hail.table.Table

p = hl.plot.qq(skat\_table.p\_value)

AttributeError: Table instance has no field, method, or property ‘select\_rows’  
Did you mean:  
Table methods: ‘select\_globals’, ‘select’

---

<div class="post-metadata">

**Author:** ![jbloom](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/jbloom/32/109_2.png) [@jbloom](https://discuss.hail.is/u/jbloom)\
**Post date:** [August 20, 2018, 9:09pm UTC](https://discuss.hail.is/t/skat-table-qq-plot/612/2 "2018-08-20T21:09:27Z")

</div>

I see the issue. That plot methods assume the expression is on a matrix table, rather than a matrix table or table. I’ll fix it, but in the meantime, you can promote skat\_table to a matrix table with [hl.MatrixTable.from\_rows\_table](https://hail.is/docs/devel/hail.MatrixTable.html#hail.MatrixTable.from_rows_table) first.

update: here’s the PR: [https://github.com/hail-is/hail/pull/4176](https://github.com/hail-is/hail/pull/4176)
