Skip to content

[hail] add lambda GC calculation#6498

Merged
danking merged 4 commits into
hail-is:masterfrom
konradjk:lambdagc
Jun 28, 2019
Merged

[hail] add lambda GC calculation#6498
danking merged 4 commits into
hail-is:masterfrom
konradjk:lambdagc

Conversation

@konradjk
Copy link
Copy Markdown
Collaborator

Also added table_source since I couldn't find it - let me know if I missed it

@konradjk konradjk changed the title Adding lambda GC calculation [hail] add lambda GC calculation Jun 27, 2019
Comment thread hail/python/hail/methods/statgen.py Outdated
med_chisq = hl.agg.approx_quantiles(chisq, 0.5)
else:
med_chisq = hl.median(hl.agg.collect(chisq))
return t.aggregate(med_chisq / hl.qchisqtail(0.5, 1))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we separate the bit that generates the agg expression out into a separate private function? We have an open feature request to print the lambda GC in hl.plot.qq

tpoterba
tpoterba previously approved these changes Jun 27, 2019
Copy link
Copy Markdown
Contributor

@tpoterba tpoterba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add to docs rst file(s)

@tpoterba
Copy link
Copy Markdown
Contributor

add to genetics.rst

@tpoterba
Copy link
Copy Markdown
Contributor

also add experimental note since this is untested

Comment thread hail/python/hail/methods/statgen.py Outdated

Note
----
This method is experimental.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops sorry this is what I meant:

    .. include:: ../_templates/experimental.rst

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nifty!

@danking danking merged commit fe8e543 into hail-is:master Jun 28, 2019
@konradjk konradjk deleted the lambdagc branch June 28, 2019 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants