New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[query] pipeline triggers type inference failure #13699
Labels
Comments
Also this: import hail as hl
mt = hl.read_matrix_table('nfam_100_nindep_0_step1_includeMoreRareVariants_poly.mt')
gene_intervals = hl.import_locus_intervals('genes.interval_list')
rows = mt.rows()
rows = rows.annotate(gene=gene_intervals.index(rows.locus, all_matches=True).target)
rows = rows.select('gene')
rows = rows.explode('gene')
rows = rows.filter(hl.is_defined(rows.gene))
rows = rows.group_by('gene').aggregate(start=hl.agg.min(rows.locus.position),
end=hl.agg.max(rows.locus.position),
n_variants=hl.agg.count())
rows = mt.rows()
rows = rows.annotate(gene=gene_intervals.index(rows.locus, all_matches=True).target)
foo = rows
foo = foo.annotate(csq=foo.gene.map(lambda _: hl.rand_cat([0.3, 0.2, 0.5], seed=0)))
foo._force_count() |
Also this: import hail as hl
mt = hl.read_matrix_table('nfam_100_nindep_0_step1_includeMoreRareVariants_poly.mt')
gene_intervals = hl.import_locus_intervals('genes.interval_list')
rows = mt.rows()
rows = rows.annotate(gene=gene_intervals.index(rows.locus, all_matches=True).target)
foo = rows
foo = foo.annotate(csq=foo.gene.map(lambda _: hl.rand_cat([0.3, 0.2, 0.5], seed=0)))
foo._force_count() |
This fails: import hail as hl
gene_intervals = hl.import_locus_intervals('genes.interval_list')
rows = hl.balding_nichols_model(1,1,1).rows()
rows = rows.annotate(gene=gene_intervals.index(rows.locus, all_matches=True).target)
foo = rows
foo = foo.annotate(csq=foo.gene.map(lambda _: hl.rand_cat([0.3, 0.2, 0.5], seed=0)))
foo._force_count() |
At last, here's one without any source files:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened?
Also fails if the show is a
_force_count
.reproduction.tar.gzHere's a simple reproducer:
Version
0.2.124
Relevant log output
The text was updated successfully, but these errors were encountered: