Skip to content

Commit

Permalink
Polished ov util sqliteinfo.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkimoakbioinformatics committed Dec 5, 2023
1 parent eedf4cc commit 6522a37
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions oakvar/api/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ def get_sqliteinfo(fmt: str = "json", outer=None, dbpaths: List[str] = []):
if not ret:
c.execute('select colval from info where colkey="inputs"')
ret = c.fetchone()
if not ret:
if outer:
outer.error(f"{dbpath} does not seem to be a proper OakVar result database file. Exiting.")
exit(1)
input_paths = loads(ret[0].replace("'", '"'))
if fmt == "text":
s = "\n# Input files:"
Expand Down
2 changes: 1 addition & 1 deletion oakvar/cli/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def get_parser_fn_util():
"sqliteinfo", help="Show SQLite result file information"
)
parser_fn_util_showsqliteinfo.add_argument(
"paths", nargs="+", help="SQLite result file paths"
"dbpaths", nargs="+", help="SQLite result file paths"
)
parser_fn_util_showsqliteinfo.add_argument(
"--fmt", default="json", help="Output format. text / json / yaml"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def walk_and_add(d, pkg_files):
walk_and_add("cravat", cravat_files)
setup(
name="oakvar",
version="2.9.70",
version="2.9.71",
description="A genomic variant analysis platform",
long_description=long_description,
long_description_content_type="text/x-rst",
Expand Down

0 comments on commit 6522a37

Please sign in to comment.