Skip to content
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

[hail][docs] fix a bunch of issues #9403

Merged
merged 13 commits into from Oct 7, 2020
Merged

[hail][docs] fix a bunch of issues #9403

merged 13 commits into from Oct 7, 2020

Conversation

danking
Copy link
Collaborator

@danking danking commented Sep 2, 2020

We are down to 164 docs failures and I am tired. I will work on it more another time. Then we will be able to enable nitpicky and our docs will never have broken links.

@danking
Copy link
Collaborator Author

danking commented Sep 2, 2020

The remainder:

/Users/dking/projects/hail/hail/python/hail/docs/datasets/1000_Genomes_autosomes.rst:8: WARNING: py:class reference target not found: hail.MatrixTable
/Users/dking/projects/hail/hail/python/hail/docs/datasets/1000_Genomes_chrMT.rst:8: WARNING: py:class reference target not found: hail.MatrixTable
/Users/dking/projects/hail/hail/python/hail/docs/datasets/1000_Genomes_chrX.rst:8: WARNING: py:class reference target not found: hail.MatrixTable
/Users/dking/projects/hail/hail/python/hail/docs/datasets/1000_Genomes_chrY.rst:8: WARNING: py:class reference target not found: hail.MatrixTable
/Users/dking/projects/hail/hail/python/hail/docs/datasets/CADD.rst:8: WARNING: py:class reference target not found: hail.Table
/Users/dking/projects/hail/hail/python/hail/docs/datasets/DANN.rst:8: WARNING: py:class reference target not found: hail.Table
/Users/dking/projects/hail/hail/python/hail/docs/datasets/Ensembl_homo_sapiens_low_complexity_regions.rst:8: WARNING: py:class reference target not found: hail.Table
/Users/dking/projects/hail/hail/python/hail/docs/datasets/Ensembl_homo_sapiens_reference_genome.rst:8: WARNING: py:class reference target not found: hail.Table
/Users/dking/projects/hail/hail/python/hail/docs/datasets/GTEx_RNA_seq_gene_TPMs.rst:8: WARNING: py:class reference target not found: hail.MatrixTable
/Users/dking/projects/hail/hail/python/hail/docs/datasets/GTEx_RNA_seq_gene_read_counts.rst:8: WARNING: py:class reference target not found: hail.MatrixTable
/Users/dking/projects/hail/hail/python/hail/docs/datasets/GTEx_RNA_seq_junction_read_counts.rst:8: WARNING: py:class reference target not found: hail.MatrixTable
/Users/dking/projects/hail/hail/python/hail/docs/datasets/UK_Biobank_Rapid_GWAS_both_sexes.rst:8: WARNING: py:class reference target not found: hail.MatrixTable
/Users/dking/projects/hail/hail/python/hail/docs/datasets/UK_Biobank_Rapid_GWAS_female.rst:8: WARNING: py:class reference target not found: hail.MatrixTable
/Users/dking/projects/hail/hail/python/hail/docs/datasets/UK_Biobank_Rapid_GWAS_male.rst:8: WARNING: py:class reference target not found: hail.MatrixTable
/Users/dking/projects/hail/hail/python/hail/docs/experimental/index.rst:53:<autosummary>:1: WARNING: py:obj reference target not found: hail.experimental.expressions.write_expression
/Users/dking/projects/hail/hail/python/hail/docs/experimental/index.rst:53:<autosummary>:1: WARNING: py:obj reference target not found: hail.experimental.expressions.read_expression
/Users/dking/projects/hail/hail/python/hail/docs/experimental/index.rst:53:<autosummary>:1: WARNING: py:class reference target not found: Expression
/Users/dking/projects/hail/hail/python/hail/docs/experimental/index.rst:53:<autosummary>:1: WARNING: py:meth reference target not found: experimental.write_expression
/Users/dking/projects/hail/hail/python/hail/docs/experimental/index.rst:53:<autosummary>:1: WARNING: py:obj reference target not found: hail.experimental.phase_by_transmission.phase_by_transmission
/Users/dking/projects/hail/hail/python/hail/docs/experimental/index.rst:53:<autosummary>:1: WARNING: py:obj reference target not found: hail.experimental.phase_by_transmission.phase_trio_matrix_by_transmission
/Users/dking/projects/hail/hail/python/hail/docs/experimental/index.rst:53:<autosummary>:1: WARNING: py:obj reference target not found: hail.experimental.phase_by_transmission.explode_trio_matrix
/Users/dking/projects/hail/hail/python/hail/experimental/ld_score_regression.py:docstring of hail.experimental.ld_score_regression:69: WARNING: py:class reference target not found: Table
/Users/dking/projects/hail/hail/python/hail/experimental/ld_score_regression.py:docstring of hail.experimental.ld_score_regression:69: WARNING: py:class reference target not found: MatrixTable
/Users/dking/projects/hail/hail/python/hail/experimental/ld_score_regression.py:docstring of hail.experimental.ld_score_regression:75: WARNING: py:data reference target not found: tarray
/Users/dking/projects/hail/hail/python/hail/experimental/ld_score_regression.py:docstring of hail.experimental.ld_score_regression:96: WARNING: py:data reference target not found: tarray
/Users/dking/projects/hail/hail/python/hail/experimental/ld_score_regression.py:docstring of hail.experimental.ld_score_regression:113: WARNING: py:class reference target not found: Table
/Users/dking/projects/hail/hail/python/hail/experimental/expressions.py:docstring of hail.experimental.write_expression:15: WARNING: py:class reference target not found: Expression
/Users/dking/projects/hail/hail/python/hail/experimental/expressions.py:docstring of hail.experimental.read_expression:1: WARNING: py:class reference target not found: Expression
/Users/dking/projects/hail/hail/python/hail/experimental/expressions.py:docstring of hail.experimental.read_expression:1: WARNING: py:meth reference target not found: experimental.write_expression
/Users/dking/projects/hail/hail/python/hail/experimental/expressions.py:docstring of hail.experimental.read_expression:11: WARNING: py:class reference target not found: Expression
/Users/dking/projects/hail/hail/python/hail/experimental/plots.py:docstring of hail.experimental.hail_metadata:5: WARNING: py:class reference target not found: bokeh.plotting.Figure
/Users/dking/projects/hail/hail/python/hail/experimental/plots.py:docstring of hail.experimental.plot_roc_curve:15: WARNING: py:class reference target not found: bokeh.plotting.Figure
/Users/dking/projects/hail/hail/python/hail/experimental/phase_by_transmission.py:docstring of hail.experimental.phase_by_transmission:25: WARNING: py:meth reference target not found: experimental.phase_trio_matrix_by_transmission
/Users/dking/projects/hail/hail/python/hail/experimental/phase_by_transmission.py:docstring of hail.experimental.explode_trio_matrix:21: WARNING: py:meth reference target not found: methods.trio_matrix
/Users/dking/projects/hail/hail/python/hail/experimental/time.py:docstring of hail.experimental.strftime:28: WARNING: py:class reference target not found: StringExpression
/Users/dking/projects/hail/hail/python/hail/experimental/time.py:docstring of hail.experimental.strptime:29: WARNING: py:class reference target not found: Int64Expression
/Users/dking/projects/hail/hail/python/hail/docs/experimental/vcf_combiner.rst:197: WARNING: py:func reference target not found: densify
/Users/dking/projects/hail/hail/python/hail/experimental/vcf_combiner/vcf_combiner.py:docstring of hail.experimental.run_combiner:: WARNING: py:class reference target not found: hail.utils.interval.Interval
/Users/dking/projects/hail/hail/python/hail/experimental/vcf_combiner/sparse_split_multi.py:docstring of hail.experimental.sparse_split_multi:6: WARNING: py:func reference target not found: vcf_combiner
/Users/dking/projects/hail/hail/python/hail/experimental/vcf_combiner/sparse_split_multi.py:docstring of hail.experimental.sparse_split_multi:56: WARNING: py:func reference target not found: split_mult_hts
/Users/dking/projects/hail/hail/python/hail/expr/functions.py:docstring of hail.expr.functions.map:13: WARNING: py:class reference target not found: SetExpression
/Users/dking/projects/hail/hail/python/hail/expr/functions.py:docstring of hail.expr.functions.tuple:12: WARNING: py:obj reference target not found: Iterable
/Users/dking/projects/hail/hail/python/hail/expr/functions.py:docstring of hail.expr.functions.range:25: WARNING: py:class reference target not found: ArrayInt32Expression
/Users/dking/projects/hail/hail/python/hail/expr/builders.py:docstring of hail.expr.builders.CaseBuilder:17: WARNING: py:meth reference target not found: CaseBuilder.when
/Users/dking/projects/hail/hail/python/hail/expr/builders.py:docstring of hail.expr.builders.CaseBuilder:17: WARNING: py:meth reference target not found: CaseBuilder.default
/Users/dking/projects/hail/hail/python/hail/expr/builders.py:docstring of hail.expr.builders.SwitchBuilder:19: WARNING: py:meth reference target not found: SwitchBuilder.when
/Users/dking/projects/hail/hail/python/hail/expr/builders.py:docstring of hail.expr.builders.SwitchBuilder:19: WARNING: py:meth reference target not found: SwitchBuilder.default
/Users/dking/projects/hail/hail/python/hail/expr/functions.py:docstring of hail.expr.functions.locus_interval:16: WARNING: py:class reference target not found: hail.genetics.ReferenceGenome
/Users/dking/projects/hail/hail/python/hail/expr/functions.py:docstring of hail.expr.functions.parse_locus_interval:57: WARNING: py:class reference target not found: hail.genetics.ReferenceGenome
/Users/dking/projects/hail/hail/python/hail/expr/functions.py:docstring of hail.expr.functions.gp_dosage:13: WARNING: py:class reference target not found: ArrayFloat64Expression
/Users/dking/projects/hail/hail/python/hail/expr/functions.py:docstring of hail.expr.functions.liftover:36: WARNING: py:data reference target not found: tlocus
/Users/dking/projects/hail/hail/python/hail/expr/functions.py:docstring of hail.expr.functions.liftover:36: WARNING: py:data reference target not found: tinterval
/Users/dking/projects/hail/hail/python/hail/expr/functions.py:docstring of hail.expr.functions.liftover:36: WARNING: py:data reference target not found: tlocus
/Users/dking/projects/hail/hail/python/hail/docs/functions/index.rst:170:<autosummary>:1: WARNING: py:meth reference target not found: pchisqtail
/Users/dking/projects/hail/hail/python/hail/docs/functions/index.rst:170:<autosummary>:1: WARNING: py:meth reference target not found: pnorm
/Users/dking/projects/hail/hail/python/hail/docs/functions/index.rst:170:<autosummary>:1: WARNING: py:meth reference target not found: ppois
/Users/dking/projects/hail/hail/python/hail/expr/functions.py:docstring of hail.expr.functions.is_nan:16: WARNING: py:meth reference target not found: is_missing
/Users/dking/projects/hail/hail/python/hail/docs/functions/stats.rst:22:<autosummary>:1: WARNING: py:meth reference target not found: pchisqtail
/Users/dking/projects/hail/hail/python/hail/docs/functions/stats.rst:22:<autosummary>:1: WARNING: py:meth reference target not found: pnorm
/Users/dking/projects/hail/hail/python/hail/docs/functions/stats.rst:22:<autosummary>:1: WARNING: py:meth reference target not found: ppois
/Users/dking/projects/hail/hail/python/hail/expr/functions.py:docstring of hail.expr.functions.qchisqtail:1: WARNING: py:meth reference target not found: pchisqtail
/Users/dking/projects/hail/hail/python/hail/expr/functions.py:docstring of hail.expr.functions.qnorm:1: WARNING: py:meth reference target not found: pnorm
/Users/dking/projects/hail/hail/python/hail/expr/functions.py:docstring of hail.expr.functions.qpois:1: WARNING: py:meth reference target not found: ppois
/Users/dking/projects/hail/hail/python/hail/expr/functions.py:docstring of hail.expr.functions.qpois:15: WARNING: py:meth reference target not found: ppois
/Users/dking/projects/hail/hail/python/hail/genetics/pedigree.py:docstring of hail.genetics.pedigree.Pedigree.filter_to:: WARNING: py:class reference target not found: list of str
/Users/dking/projects/hail/hail/python/hail/genetics/pedigree.py:docstring of hail.genetics.pedigree.Pedigree.write:14: WARNING: py:meth reference target not found: hail.KeyTable.import_fam
/Users/dking/projects/hail/hail/python/hail/genetics/reference_genome.py:docstring of hail.genetics.reference_genome.ReferenceGenome.write:10: WARNING: py:meth reference target not found: hail.ReferenceGenome.read
/Users/dking/projects/hail/hail/python/hail/docs/guides/api.rst:19: WARNING: py:func reference target not found: Table.show
/Users/dking/projects/hail/hail/python/hail/expr/expressions/typed_expressions.py:docstring of hail.expr.expressions.typed_expressions.CallExpression.one_hot_alleles:25: WARNING: py:obj reference target not found: tint32
/Users/dking/projects/hail/hail/python/hail/expr/expressions/typed_expressions.py:docstring of hail.expr.expressions.typed_expressions.IntervalExpression.overlaps:11: WARNING: py:data reference target not found: tinterval
/Users/dking/projects/hail/hail/python/hail/expr/expressions/typed_expressions.py:docstring of hail.expr.expressions.typed_expressions.NDArrayExpression.T:5: WARNING: py:func reference target not found: transpose
/Users/dking/projects/hail/hail/python/hail/expr/expressions/typed_expressions.py:docstring of hail.expr.expressions.typed_expressions.NDArrayNumericExpression.T:5: WARNING: py:func reference target not found: transpose
/Users/dking/projects/hail/hail/python/hail/expr/expressions/typed_expressions.py:docstring of hail.expr.expressions.typed_expressions.StructExpression.__eq__:1:<autosummary>:1: WARNING: py:obj reference target not found: hail.expr.expressions.typed_expressions.StructExpression.flatten
/Users/dking/projects/hail/hail/python/hail/expr/expressions/typed_expressions.py:docstring of hail.expr.expressions.typed_expressions.StructExpression.get:: WARNING: py:class reference target not found: D[k] if k in D, else d.  d defaults to None.
/Users/dking/projects/hail/hail/python/hail/expr/expressions/typed_expressions.py:docstring of hail.expr.expressions.typed_expressions.StructExpression.items:: WARNING: py:class reference target not found: a set-like object providing a view on D's items
/Users/dking/projects/hail/hail/python/hail/expr/expressions/typed_expressions.py:docstring of hail.expr.expressions.typed_expressions.StructExpression.keys:: WARNING: py:class reference target not found: a set-like object providing a view on D's keys
/Users/dking/projects/hail/hail/python/hail/expr/expressions/typed_expressions.py:docstring of hail.expr.expressions.typed_expressions.StructExpression.values:: WARNING: py:class reference target not found: an object providing a view on D's values
/Users/dking/projects/hail/hail/python/hail/expr/expressions/typed_expressions.py:docstring of hail.expr.expressions.typed_expressions.TupleExpression.count:: WARNING: py:class reference target not found: integer -- return number of occurrences of value
/Users/dking/projects/hail/hail/python/hail/expr/expressions/typed_expressions.py:docstring of hail.expr.expressions.typed_expressions.TupleExpression.index:: WARNING: py:class reference target not found: integer -- return first index of value.
/Users/dking/projects/hail/hail/python/hail/matrixtable.py:docstring of hail.matrixtable.MatrixTable.annotate_cols:9: WARNING: py:class reference target not found: hail.Table
/Users/dking/projects/hail/hail/python/hail/matrixtable.py:docstring of hail.matrixtable.MatrixTable.annotate_rows:11: WARNING: py:class reference target not found: TVariant
/Users/dking/projects/hail/hail/python/hail/matrixtable.py:docstring of hail.matrixtable.MatrixTable.cache:11: WARNING: py:func reference target not found: hail.MatrixTable.persist
/Users/dking/projects/hail/hail/python/hail/matrixtable.py:docstring of hail.matrixtable.MatrixTable.compute_entry_filter_stats:15: WARNING: py:data reference target not found: int64
/Users/dking/projects/hail/hail/python/hail/matrixtable.py:docstring of hail.matrixtable.MatrixTable.compute_entry_filter_stats:17: WARNING: py:data reference target not found: int64
/Users/dking/projects/hail/hail/python/hail/matrixtable.py:docstring of hail.matrixtable.MatrixTable.compute_entry_filter_stats:19: WARNING: py:data reference target not found: float32
/Users/dking/projects/hail/hail/python/hail/matrixtable.py:docstring of hail.matrixtable.MatrixTable.index_cols:17: WARNING: py:meth reference target not found: index_cols(exprs)
/Users/dking/projects/hail/hail/python/hail/matrixtable.py:docstring of hail.matrixtable.MatrixTable.index_rows:17: WARNING: py:meth reference target not found: index_rows(exprs)
/Users/dking/projects/hail/hail/python/hail/matrixtable.py:docstring of hail.matrixtable.MatrixTable.make_table:25: WARNING: py:func reference target not found: make_table
/Users/dking/projects/hail/hail/python/hail/table.py:docstring of hail.table.Table.cache:11: WARNING: py:func reference target not found: hail.Table.persist
/Users/dking/projects/hail/hail/python/hail/table.py:docstring of hail.table.Table.order_by:37: WARNING: py:class reference target not found: Ascending
/Users/dking/projects/hail/hail/python/hail/table.py:docstring of hail.table.Table.order_by:37: WARNING: py:class reference target not found: Descending
/Users/dking/projects/hail/hail/python/hail/table.py:docstring of hail.table.Table.parallelize:14: WARNING: py:class reference target not found: HailType:
/Users/dking/projects/hail/hail/python/hail/docs/linalg/hail.linalg.BlockMatrix.rst:49:<autosummary>:1: WARNING: py:obj reference target not found: hail.linalg.BlockMatrix.element_type
/Users/dking/projects/hail/hail/python/hail/linalg/blockmatrix.py:docstring of hail.linalg.BlockMatrix.export:133: WARNING: py:class reference target not found: str) -- Describes which entries to export. One of:
`
/Users/dking/projects/hail/hail/python/hail/linalg/blockmatrix.py:docstring of hail.linalg.BlockMatrix.random:: WARNING: py:class reference target not found: hail.linalg.blockmatrix.BlockMatrix
/Users/dking/projects/hail/hail/python/hail/linalg/blockmatrix.py:docstring of hail.linalg.BlockMatrix.svd:47: WARNING: py:func reference target not found: scipy.linalg.svd
/Users/dking/projects/hail/hail/python/hail/linalg/blockmatrix.py:docstring of hail.linalg.BlockMatrix.svd:59: WARNING: py:func reference target not found: scipy.linalg.eigh
/Users/dking/projects/hail/hail/python/hail/linalg/blockmatrix.py:docstring of hail.linalg.BlockMatrix.svd:110: WARNING: py:func reference target not found: scipy.linalg.svd
/Users/dking/projects/hail/hail/python/hail/linalg/utils/misc.py:docstring of hail.linalg.utils.array_windows:25: WARNING: py:class reference target not found: np.ndarray
/Users/dking/projects/hail/hail/python/hail/linalg/utils/misc.py:docstring of hail.linalg.utils.locus_windows:71: WARNING: py:class reference target not found: np.ndarray
/Users/dking/projects/hail/hail/python/hail/docs/methods/genetics.rst:35:<autosummary>:1: WARNING: py:obj reference target not found: hail.methods.family_methods.trio_matrix
/Users/dking/projects/hail/hail/python/hail/methods/misc.py:docstring of hail.methods.filter_intervals:25: WARNING: py:data reference target not found: tinterval
/Users/dking/projects/hail/hail/python/hail/methods/statgen.py:docstring of hail.methods.filter_alleles:72: WARNING: py:class reference target not found: StringExpression
/Users/dking/projects/hail/hail/python/hail/methods/statgen.py:docstring of hail.methods.filter_alleles_hts:167: WARNING: py:class reference target not found: StringExpression
/Users/dking/projects/hail/hail/python/hail/methods/statgen.py:docstring of hail.methods.genetic_relatedness_matrix:: WARNING: py:class reference target not found: hail.linalg.blockmatrix.BlockMatrix
/Users/dking/projects/hail/hail/python/hail/methods/statgen.py:docstring of hail.methods.realized_relationship_matrix:: WARNING: py:class reference target not found: hail.linalg.blockmatrix.BlockMatrix
/Users/dking/projects/hail/hail/python/hail/methods/statgen.py:docstring of hail.methods.impute_sex:21: WARNING: py:meth reference target not found: TLocus.reference_genome
/Users/dking/projects/hail/hail/python/hail/methods/statgen.py:docstring of hail.methods.impute_sex:67: WARNING: py:class reference target not found: ArrayStringExpression
/Users/dking/projects/hail/hail/python/hail/methods/statgen.py:docstring of hail.methods.ld_matrix:: WARNING: py:class reference target not found: hail.linalg.blockmatrix.BlockMatrix
/Users/dking/projects/hail/hail/python/hail/methods/statgen.py:docstring of hail.methods.ld_matrix:68: WARNING: py:meth reference target not found: add_row_index
/Users/dking/projects/hail/hail/python/hail/methods/family_methods.py:docstring of hail.methods.mendel_errors:80: WARNING: py:meth reference target not found: hail.genetics.Locus.in_autosome
/Users/dking/projects/hail/hail/python/hail/methods/qc.py:docstring of hail.methods.summarize_variants:34: WARNING: py:obj reference target not found: Dict[str, int]
/Users/dking/projects/hail/hail/python/hail/methods/qc.py:docstring of hail.methods.summarize_variants:36: WARNING: py:obj reference target not found: Dict[str, int]
/Users/dking/projects/hail/hail/python/hail/methods/qc.py:docstring of hail.methods.summarize_variants:37: WARNING: py:obj reference target not found: Dict[int, int]
/Users/dking/projects/hail/hail/python/hail/methods/family_methods.py:docstring of hail.methods.transmission_disequilibrium_test:45: WARNING: py:meth reference target not found: hail.genetics.Locus.in_autosome
/Users/dking/projects/hail/hail/python/hail/methods/family_methods.py:docstring of hail.methods.transmission_disequilibrium_test:96: WARNING: py:func reference target not found: tdt
/Users/dking/projects/hail/hail/python/hail/methods/family_methods.py:docstring of hail.methods.transmission_disequilibrium_test:106: WARNING: py:class reference target not found: hail.genetics.Pedigree
/Users/dking/projects/hail/hail/python/hail/methods/impex.py:docstring of hail.methods.export_gen:24: WARNING: py:data reference target not found: tarray
/Users/dking/projects/hail/hail/python/hail/methods/impex.py:docstring of hail.methods.export_bgen:6: WARNING: py:data reference target not found: tarray
/Users/dking/projects/hail/hail/python/hail/methods/impex.py:docstring of hail.methods.export_vcf:93: WARNING: py:obj reference target not found: dict[str, dict[str, dict[str, str]]]
/Users/dking/projects/hail/hail/python/hail/methods/impex.py:docstring of hail.methods.import_bgen:118: WARNING: py:class reference target not found: tstr
/Users/dking/projects/hail/hail/python/hail/methods/impex.py:docstring of hail.methods.import_bgen:118: WARNING: py:class reference target not found: tint
/Users/dking/projects/hail/hail/python/hail/methods/impex.py:docstring of hail.methods.import_bgen:118: WARNING: py:class reference target not found: tstr
/Users/dking/projects/hail/hail/python/hail/methods/impex.py:docstring of hail.methods.import_table:150: WARNING: py:obj reference target not found: List[str]
/Users/dking/projects/hail/hail/python/hail/docs/methods/index.rst:81:<autosummary>:1: WARNING: py:obj reference target not found: hail.methods.family_methods.trio_matrix
/Users/dking/projects/hail/hail/python/hail/methods/misc.py:docstring of hail.methods.maximal_independent_set:56: WARNING: py:class reference target not found: Expression
/Users/dking/projects/hail/hail/python/hail/methods/misc.py:docstring of hail.methods.maximal_independent_set:56: WARNING: py:class reference target not found: NumericExpression
/Users/dking/projects/hail/hail/python/hail/methods/relatedness/king.py:docstring of hail.methods.king:33: WARNING: py:meth reference target not found: CallExpression.n_alt_alleles
/Users/dking/projects/hail/hail/python/hail/methods/statgen.py:docstring of hail.methods.linear_mixed_model:60: WARNING: py:meth reference target not found: linear_mixed_regression_rows
/Users/dking/projects/hail/hail/python/hail/methods/statgen.py:docstring of hail.methods.linear_regression_rows:45: WARNING: py:data reference target not found: tarray
/Users/dking/projects/hail/hail/python/hail/methods/statgen.py:docstring of hail.methods.row_correlation:: WARNING: py:class reference target not found: hail.linalg.blockmatrix.BlockMatrix
/Users/dking/projects/hail/hail/python/hail/methods/statgen.py:docstring of hail.methods.row_correlation:45: WARNING: py:meth reference target not found: add_row_index
/Users/dking/projects/hail/hail/python/hail/methods/statgen.py:docstring of hail.methods.row_correlation:58: WARNING: py:meth reference target not found: BlockMatrix.from_entry_expr
/Users/dking/projects/hail/hail/python/hail/methods/statgen.py:docstring of hail.methods.row_correlation:67: WARNING: py:meth reference target not found: BlockMatrix.from_entry_expr
/Users/dking/projects/hail/hail/python/hail/methods/statgen.py:docstring of hail.methods.row_correlation:67: WARNING: py:meth reference target not found: BlockMatrix.write_from_entry_expr
/Users/dking/projects/hail/hail/python/hail/nd/nd.py:docstring of hail.nd.eye:10: WARNING: py:func reference target not found: diagonal
/Users/dking/projects/hail/hail/python/hail/docs/overview/expressions.rst:60: WARNING: py:meth reference target not found: Expression.eval
/Users/dking/projects/hail/hail/python/hail/docs/overview/expressions.rst:104: WARNING: py:mod reference target not found: scipy
/Users/dking/projects/hail/hail/python/hail/docs/overview/expressions.rst:157: WARNING: py:meth reference target not found: Expression.eval
/Users/dking/projects/hail/hail/python/hail/docs/overview/expressions.rst:218: WARNING: py:meth reference target not found: CaseBuilder.or_missing
/Users/dking/projects/hail/hail/python/hail/docs/overview/expressions.rst:221: WARNING: py:meth reference target not found: CaseBuilder.or_missing
/Users/dking/projects/hail/hail/python/hail/docs/overview/expressions.rst:221: WARNING: py:meth reference target not found: CaseBuilder.default
/Users/dking/projects/hail/hail/python/hail/docs/overview/expressions.rst:221: WARNING: py:meth reference target not found: CaseBuilder.or_error
/Users/dking/projects/hail/hail/python/hail/docs/overview/expressions.rst:240: WARNING: py:meth reference target not found: SwitchBuilder.when
/Users/dking/projects/hail/hail/python/hail/docs/overview/expressions.rst:240: WARNING: py:meth reference target not found: SwitchBuilder.or_missing
/Users/dking/projects/hail/hail/python/hail/docs/overview/expressions.rst:281: WARNING: py:class reference target not found: tcall
/Users/dking/projects/hail/hail/python/hail/docs/overview/matrix_table.rst:395: WARNING: py:meth reference target not found: MatrixTable.sample
/Users/dking/projects/hail/hail/python/hail/docs/plot.rst:33:<autosummary>:1: WARNING: py:func reference target not found: show
/Users/dking/projects/hail/hail/python/hail/plot/plots.py:docstring of hail.plot.cdf:4: WARNING: py:func reference target not found: approx_cdf
/Users/dking/projects/hail/hail/python/hail/plot/plots.py:docstring of hail.plot.smoothed_pdf:9: WARNING: py:func reference target not found: show
/Users/dking/projects/hail/hail/python/hail/plot/plots.py:docstring of hail.plot.histogram:5: WARNING: py:func reference target not found: agg.hist
/Users/dking/projects/hail/hail/python/hail/plot/plots.py:docstring of hail.plot.histogram:5: WARNING: py:func reference target not found: agg.approx_cdf
/Users/dking/projects/hail/hail/python/hail/plot/plots.py:docstring of hail.plot.scatter:7: WARNING: py:class reference target not found: bokeh.plotting.figure.Column
/Users/dking/projects/hail/hail/python/hail/plot/plots.py:docstring of hail.plot.scatter:7: WARNING: py:class reference target not found: bokeh.models.widgets.Select
/Users/dking/projects/hail/hail/python/hail/plot/plots.py:docstring of hail.plot.scatter:46: WARNING: py:class reference target not found: bokeh.plotting.figure.Column
/Users/dking/projects/hail/hail/python/hail/plot/plots.py:docstring of hail.plot.qq:7: WARNING: py:class reference target not found: bokeh.plotting.figure.Column
/Users/dking/projects/hail/hail/python/hail/plot/plots.py:docstring of hail.plot.qq:7: WARNING: py:class reference target not found: bokeh.models.widgets.Select
/Users/dking/projects/hail/hail/python/hail/plot/plots.py:docstring of hail.plot.qq:45: WARNING: py:class reference target not found: bokeh.plotting.figure.Column
/Users/dking/projects/hail/hail/python/hail/plot/plots.py:docstring of hail.plot.output_notebook:1: WARNING: py:func reference target not found: show
/Users/dking/projects/hail/hail/python/hail/docs/scans.rst:66: WARNING: py:func reference target not found: agg.hardy_weinberg_test
/Users/dking/projects/hail/hail/python/hail/docs/utils/index.rst:22:<autosummary>:1: WARNING: py:obj reference target not found: hail.utils.interval.Interval
/Users/dking/projects/hail/hail/python/hail/docs/utils/index.rst:22:<autosummary>:1: WARNING: py:obj reference target not found: hail.utils.struct.Struct
/Users/dking/projects/hail/hail/python/hail/utils/hadoop_utils.py:docstring of hail.utils.hadoop_stat:18: WARNING: py:obj reference target not found: Dict
/Users/dking/projects/hail/hail/python/hail/utils/hadoop_utils.py:docstring of hail.utils.hadoop_ls:22: WARNING: py:obj reference target not found: List[Dict]

@johnc1231
Copy link
Contributor

My current understanding is that we aren't going to merge this as is because we don't want a bunch of links to change?

@tpoterba
Copy link
Contributor

tpoterba commented Sep 8, 2020

Most of the changes here are totally fine, but yes, I think we should hold off on changing paths. I have a to-do item to look into configuring / monkey patching the Sphinx function that's trying to generate links for the signatures.

Dan is also OOO this week so not high prio.

@johnc1231
Copy link
Contributor

Dan, do you want to split out any parts of this that don't change links?

@danking
Copy link
Collaborator Author

danking commented Sep 18, 2020

yeah I gotta work on my presentation for ATGU and hail team meetings, but I'll try to do this later next week

@danking
Copy link
Collaborator Author

danking commented Oct 5, 2020

OK, root cause is that newer versions of autodoc include, as an experimental addition, sphinx-autodoc-typehints. This addition (which we use in batch) only works when a class is documented using its true name (i.e. where it is defined, not re-exported).

A quick fix is to disable this functionality:

autodoc_typehints = 'none'

The autodoc-typehints maintainer seems to have gotten stuck when trying to fix this.

It appears that someone went and figured out enough of Sphinx to fix this. When a doc string is processed, they record a mapping from the documented name to the fully-resolved name. The code that catches missing references and fixes them is kinda big and complicated. I'm uncomfortable dropping it into our project.

There's some good documentation about how autodoc_typehints works at scanpydocs' docs. This flying sheep seems pretty competent. I think they fixed it for scanpydocs here but it's a rather complex looking solution.

It's frankly pretty shocking that such a simple operation (have a mapping from all the names of an object to its documented name) results in a two years of back and forth that still hasn't reached a solution.

We are down to 164 docs failures and I am tired. I will work on it more anohter time. Then we will be able to enable nitpicky and our docs will never have broken links/
.
@danking
Copy link
Collaborator Author

danking commented Oct 5, 2020

OK. It builds, nitpicky is on. I never want to look at sphinx again.

@@ -4,7 +4,6 @@

.. autoclass:: {{ objname }}()
:members:
:show-inheritance:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is a useful feature, but because our docs document things in a place other than where they are defined (e.g. CollectionExpression's docs are at hail.expr.CollectionExpression instead of hail.expr.expressions.typed_expressions.CollectionExpression`) autodoc simply does not work (it cannot resolve the reference).

@@ -9,7 +9,7 @@ BUILDDIR = _build
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -W -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) -W --keep-going .
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

keep going means show me all the errors not just the first one

@danking
Copy link
Collaborator Author

danking commented Oct 5, 2020

Please give this a thorough read through to ensure I didn't accidentally break anything or delete anything. I'd also appreciate if you spot-checked the docs a few times (you'll have to build them locally).

@tpoterba
Copy link
Contributor

tpoterba commented Oct 6, 2020

thanks so much for doing this Dan!

@johnc1231
Copy link
Contributor

Seconding the thank you. I'll build locally and go through everything today.

Copy link
Contributor

@johnc1231 johnc1231 left a comment

Choose a reason for hiding this comment

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

One small thing I hit right away: Let's have hail-docs-no-test depend on install-dev-deps. Otherwise nothing makes sure you have proper sphinx installed.

Once I did that, I tried to build and get a wall of:

/usr/local/anaconda3/envs/hail/lib/python3.7/site-packages/hail/expr/aggregators/aggregators.py:docstring of hail.expr.aggregators.filter:18: WARNING: py:class reference target not found: Aggregable
/usr/local/anaconda3/envs/hail/lib/python3.7/site-packages/hail/expr/aggregators/aggregators.py:docstring of hail.expr.aggregators.call_stats:46: WARNING: py:class reference target not found: ArrayStringExpression
/usr/local/anaconda3/envs/hail/lib/python3.7/site-packages/hail/expr/aggregators/aggregators.py:docstring of hail.expr.aggregators.downsample:8: WARNING: py:data reference target not found: ttuple
/usr/local/anaconda3/envs/hail/lib/python3.7/site-packages/hail/expr/aggregators/aggregators.py:docstring of hail.expr.aggregators.downsample:8: WARNING: py:data reference target not found: tarray
/usr/local/anaconda3/envs/hail/lib/python3.7/site-packages/hail/expr/aggregators/aggregators.py:docstring of hail.expr.aggregators.downsample:8: WARNING: py:data reference target not found: tstring
/usr/local/anaconda3/envs/hail/lib/python3.7/site-packages/hail/context.py:docstring of hail.init:54: WARNING: py:obj reference target not found: dict[str, str]
/Users/johnc/Code/hail/hail/python/hail/docs/experimental/index.rst:53:<autosummary>:1: WARNING: py:class reference target not found: Expression
/Users/johnc/Code/hail/hail/python/hail/docs/experimental/index.rst:53:<autosummary>:1: WARNING: py:meth reference target not found: experimental.write_expression
/usr/local/anaconda3/envs/hail/lib/python3.7/site-packages/hail/experimental/ld_score_regression.py:docstring of hail.experimental.ld_score_regression:69: WARNING: py:class reference target not found: Table
/usr/local/anaconda3/envs/hail/lib/python3.7/site-packages/hail/experimental/ld_score_regression.py:docstring of hail.experimental.ld_score_regression:69: WARNING: py:class reference target not found: MatrixTable
/usr/local/anaconda3/envs/hail/lib/python3.7/site-packages/hail/experimental/ld_score_regression.py:docstring of hail.experimental.ld_score_regression:75: WARNING: py:data reference target not found: tarray
/usr/local/anaconda3/envs/hail/lib/python3.7/site-packages/hail/experimental/ld_score_regression.py:docstring of hail.experimental.ld_score_regression:96: WARNING: py:data reference target not found: tarray
/usr/local/anaconda3/envs/hail/lib/python3.7/site-packages/hail/experimental/ld_score_regression.py:docstring of hail.experimental.ld_score_regression:113: WARNING: py:class reference target not found: Table
/usr/local/anaconda3/envs/hail/lib/python3.7/site-packages/hail/experimental/expressions.py:docstring of hail.experimental.write_expression:15: WARNING: py:class reference target not found: Expression
/usr/local/anaconda3/envs/hail/lib/python3.7/site-packages/hail/experimental/expressions.py:docstring of hail.experimental.read_expression:1: WARNING: py:class reference target not found: Expression
/usr/local/anaconda3/envs/hail/lib/python3.7/site-packages/hail/experimental/expressions.py:docstring of hail.experimental.read_expression:1: WARNING: py:meth reference target not found: experimental.write_expression
/usr/local/anaconda3/envs/hail/lib/python3.7/site-packages/hail/experimental/expressions.py:docstring of hail.experimental.read_expression:11: WARNING: py:class reference target not found: Expression
/usr/local/anaconda3/envs/hail/lib/python3.7/site-packages/hail/experimental/plots.py:docstring of hail.experimental.hail_metadata:5: WARNING: py:class reference target not found: bokeh.models.widgets.panels.Tabs
/usr/local/anaconda3/envs/hail/lib/python3.7/site-packages/hail/experimental/plots.py:docstring of hail.experimental.plot_roc_curve:15: WARNING: py:class reference target not found: Figure
/usr/local/anaconda3/envs/hail/lib/python3.7/site-packages/hail/experimental/phase_by_transmission.py:docstring of hail.experimental.phase_by_transmission:25: WARNING: py:meth reference target not found: experimental.phase_trio_matrix_by_transmission
......

So maybe that's still not the proper sphinx?

Copy link
Contributor

@johnc1231 johnc1231 left a comment

Choose a reason for hiding this comment

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

A few questions, a tiny comment, and I still think make hail-docs-no-test should probably depend on make install-dev-deps, but I can make a separate PR with that if you'd rather.

@@ -385,7 +385,7 @@ def default_reference():
return Env.hc().default_reference


def get_reference(name) -> 'hail.ReferenceGenome':
Copy link
Contributor

Choose a reason for hiding this comment

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

Why'd we get rid of this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

restored

Comment on lines +1943 to +1958
def count(self, value):
"""Do not use this method.

This only exists for compatibility with the Python Sequence abstract
base class.
"""
return super().count()

def index(self, value, start=0, stop=None):
"""Do not use this method.

This only exists for compatibility with the Python Sequence abstract
base class.
"""
return super().index()

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should throw exceptions here? Are you adding these for any functional reason, or just to appease sphinx?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't understand why, but the class2.rst template somehow trigger Sphinx to generate documentation based on the inherited docstrings. This documentation comes from Python core. That documentation does not conform to rST. That documentation fails the build.

IMHO, we shouldn't inherit from Sequence if we don't want these methods. Compilers team should decide if Expressions should inherit things like Sequence.

Comment on lines +3202 to +3207
alleles: :class:`.Int32Expression` or :class:`.ArrayExpression` of :obj:`.tstr`.
Number of total alleles, including the reference, or array of variant alleles.

Returns
-------
:class:`.ArrayInt32Expression`
:class:`.ArrayExpression` of :obj:`.tint32`
Copy link
Contributor

Choose a reason for hiding this comment

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

I almost wonder if we should say these are arrays of StringExpression and or Int32Expression. That's the thing someone would likely want to be linked to if they were doing something with an element of this array.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Either is fine with me, but ArrayInt32Expression ain't a thing.

information.
Phenotype information is not preserved in the Pedigree data
structure in Hail. Reading and writing a PLINK .fam file will
result in loss of this information. Use the key table method
Copy link
Contributor

Choose a reason for hiding this comment

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

You still say "key table", though you've taken out the dead KeyTable link.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

gone

@danking
Copy link
Collaborator Author

danking commented Oct 6, 2020

install-dev-deps doubles the "no change" build time from 4s to 8s on my machine. I already thing 4s is too long. I'd rather not add that.

@danking danking dismissed johnc1231’s stale review October 6, 2020 22:26

builds, didn't address the issue of how to document types of expressions nor what to do about inherited methods

Copy link
Contributor

@johnc1231 johnc1231 left a comment

Choose a reason for hiding this comment

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

Approved, this is a huge improvement, let's get it in before it breaks

@danking danking merged commit 927770e into hail-is:main Oct 7, 2020
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.

None yet

3 participants