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

Update documentation #893

Merged
merged 8 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions backend/src/monarch_py/solr_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ def multi_entity_associations(
typer.Option(
"--counterpart-category",
"-c",
help="A comma-separated list of counterpart categories"
),
] = None,
limit: fields.LimitOption = 20,
Expand Down Expand Up @@ -309,7 +310,7 @@ def histopheno(

@solr_app.command("association-counts")
def association_counts(
entity: Annotated[
entity_id: Annotated[
str, typer.Argument(help="The entity to get association counts for")
],
fmt: fields.FormatOption = fields.OutputFormat.json,
Expand All @@ -322,13 +323,13 @@ def association_counts(
console.print("\n[bold red]Entity ID required.[/]\n")
raise typer.Exit(1)
solr = get_solr(update=False)
response = solr.get_association_counts(entity)
response = solr.get_association_counts(entity_id)
format_output(fmt, response, output)


@solr_app.command("association-table")
def association_table(
entity: Annotated[
entity_id: Annotated[
str,
typer.Argument(
help="The entity to get associations for",
Expand Down Expand Up @@ -363,7 +364,7 @@ def association_table(
):
solr = get_solr(update=False)
response = solr.get_association_table(
entity=entity,
entity=entity_id,
category=category,
traverse_orthologs=traverse_orthologs,
sort=sort,
Expand Down
4 changes: 2 additions & 2 deletions backend/src/monarch_py/utils/cli_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class OutputFormat(str, Enum):
Optional[str],
typer.Option(
"--output",
"-o",
help="The path to write command output (stdout if not specified)",
"-O",
help="Path to file to write command output (stdout if not specified)",
),
]
17 changes: 0 additions & 17 deletions docs/API-Reference/index.md

This file was deleted.

Loading