Skip to content

Commit

Permalink
feat: use options for more command line arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
zietzm committed Aug 27, 2024
1 parent 945c2df commit 94855ac
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions src/maxgcp/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,15 +338,11 @@ def compute_genetic_covariance(
def fit_command(
genetic_covariance_file: Annotated[
Path,
typer.Argument(
exists=True, help="Path to genetic covariance file", show_default=False
),
typer.Option("--gcov", exists=True, help="Path to genetic covariance file"),
],
phenotypic_covariance_file: Annotated[
Path,
typer.Argument(
exists=True, help="Path to phenotypic covariance file", show_default=False
),
typer.Option("--pcov", exists=True, help="Path to phenotypic covariance file"),
],
target: Annotated[str, typer.Option(help="Target phenotype for MaxGCP")],
output_file: Annotated[
Expand Down Expand Up @@ -410,23 +406,19 @@ def run_indirect_gwas(
],
projection_coefficient_file: Annotated[
Path,
typer.Argument(
exists=True, help="Path to projection coefficient file", show_default=False
),
typer.Option("--proj", exists=True, help="Path to projection coefficient file"),
],
phenotype_covariance_file: Annotated[
Path,
typer.Argument(
exists=True, help="Path to phenotypic covariance file", show_default=False
),
typer.Option("--pcov", exists=True, help="Path to phenotypic covariance file"),
],
n_covar: Annotated[
int,
typer.Option("--n-covar", help="Number of covariates to use"),
],
output_file: Annotated[
Path,
typer.Argument(exists=False, help="Path to output file", show_default=False),
typer.Option("--out", help="Path to output file"),
],
snp_col: Annotated[str, typer.Option("--snp", help="Name of SNP column")] = "ID",
beta_col: Annotated[
Expand Down Expand Up @@ -485,21 +477,14 @@ def run_command(
],
phenotype_covariance_file: Annotated[
Path,
typer.Argument(
exists=True, help="Path to phenotypic covariance file", show_default=False
),
typer.Option("--pcov", exists=True, help="Path to phenotypic covariance file"),
],
tag_file: Annotated[
Path,
typer.Option("--tagfile", exists=True, help="Path to tag file"),
],
output_file: Annotated[
Path,
typer.Argument(
exists=False,
help="Path to output GWAS summary statistics file",
show_default=False,
),
Path, typer.Option("--out", help="Path to output GWAS summary statistics file")
],
target: Annotated[
Path, typer.Option(exists=True, help="Target phenotype for MaxGCP")
Expand Down

0 comments on commit 94855ac

Please sign in to comment.