Skip to content

Commit

Permalink
feat: expose write_phenotype_id option in python
Browse files Browse the repository at this point in the history
  • Loading branch information
zietzm committed Aug 29, 2024
1 parent e0546ff commit 3aae99d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 20 deletions.
2 changes: 2 additions & 0 deletions python/igwas/igwas.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def igwas_files(
capacity: int = 25,
compress: bool = False,
quiet: bool = False,
write_phenotype_id: bool = False,
) -> None:
"""Run Indirect GWAS
Expand Down Expand Up @@ -62,6 +63,7 @@ def igwas_files(
capacity,
compress,
quiet,
write_phenotype_id,
)


Expand Down
3 changes: 2 additions & 1 deletion src/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ fn igwas_impl(
capacity: usize,
compress: bool,
quiet: bool,
write_phenotype_id: bool,
) -> PyResult<()> {
let args = crate::cli::InputArguments {
projection_matrix,
Expand All @@ -38,7 +39,7 @@ fn igwas_impl(
capacity,
compress,
quiet,
write_phenotype_id: false,
write_phenotype_id,
};
match crate::cli::run_cli(args) {
Ok(_) => Ok(()),
Expand Down
38 changes: 19 additions & 19 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3aae99d

Please sign in to comment.