Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Henry D <[email protected]>
  • Loading branch information
henrydavidge committed Dec 22, 2020
1 parent f15c0eb commit 138559c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions python/glow/gwas/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@ def _einsum(subscripts: str, *operands: NDArray) -> NDArray:
return oe.contract(subscripts, *operands, casting='no', optimize='dp', memory_limit='max_input')


@typechecked
def _add_intercept(C: NDArray[(Any, Any), Float], num_samples: int) -> NDArray[(Any, Any), Float]:
intercept = np.ones((num_samples, 1))
return np.hstack((intercept, C)) if C.size else intercept


def _have_same_elements(idx1: pd.Index, idx2: pd.Index) -> bool:
return idx1.sort_values().equals(idx2.sort_values())

Expand Down
4 changes: 2 additions & 2 deletions python/glow/gwas/log_reg.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def logistic_regression(
phenotype_df : Pandas DataFrame containing phenotypic data
covariate_df : An optional Pandas DataFrame containing covariates
offset_df : An optional Pandas DataFrame containing the phenotype offset. This value will be used
as a offset in the covariate only and per variant logistic regression models. The ``offset_df`` may
as an offset in the covariate only and per variant logistic regression models. The ``offset_df`` may
have one or two levels of indexing. If one level, the index should be the same as the ``phenotype_df``.
If two levels, the level 0 index should be the same as the ``phenotype_df``, and the level 1 index
should be the contig name. The two level index scheme allows for per-contig offsets like
Expand All @@ -62,7 +62,7 @@ def logistic_regression(
values_column : A column name or column expression to test with linear regression. If a column name is provided,
``genotype_df`` should have a column with this name and a numeric array type. If a column expression
is provided, the expression should return a numeric array type.
dt : The numpy datatype to use in the linear regression test. Must be `np.float32` or `np.float64`.
dt : The numpy datatype to use in the linear regression test. Must be ``np.float32`` or ``np.float64``.
Returns:
A Spark DataFrame that contains
Expand Down

0 comments on commit 138559c

Please sign in to comment.