Skip to content

Commit

Permalink
Merge pull request #198 from mmore500/cli-version
Browse files Browse the repository at this point in the history
Add version info to cli
  • Loading branch information
mmore500 authored Jan 10, 2025
2 parents b5b8c91 + 2ddba1c commit 8e7910d
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 6 deletions.
4 changes: 3 additions & 1 deletion hstrat/_auxiliary_lib/_alifestd_as_newick_asexual.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ def alifestd_as_newick_asexual(
return result


_raw_description = """Convert Alife standard phylogeny data to Newick format.
_raw_description = f"""{os.path.basename(__file__)} | (hstrat v{get_hstrat_version()})
Convert Alife standard phylogeny data to Newick format.
Note that this CLI entrypoint is experimental and may be subject to change.
"""
Expand Down
6 changes: 5 additions & 1 deletion hstrat/_auxiliary_lib/_alifestd_downsample_tips_asexual.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import argparse
import functools
import logging
import os
import sys
import typing

import joinem
from joinem._dataframe_cli import _add_parser_base, _run_dataframe_cli
import numpy as np
import pandas as pd
Expand Down Expand Up @@ -75,7 +77,9 @@ def alifestd_downsample_tips_asexual(
return impl(phylogeny_df, n_downsample)


_raw_description = """Create a subsample phylogeny containing `num_tips` tips.
_raw_description = f"""{os.path.basename(__file__)} | (hstrat v{get_hstrat_version()}/joinem v{joinem.__version__})
Create a subsample phylogeny containing `num_tips` tips.
If `num_tips` is greater than the number of tips in the phylogeny, the whole phylogeny is returned.
Expand Down
6 changes: 5 additions & 1 deletion hstrat/_auxiliary_lib/_alifestd_try_add_ancestor_list_col.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import argparse
import logging
import os
import warnings

import joinem
from joinem._dataframe_cli import _add_parser_base, _run_dataframe_cli
import pandas as pd
import polars as pl
Expand Down Expand Up @@ -58,7 +60,9 @@ def alifestd_try_add_ancestor_list_col(
return phylogeny_df


_raw_description = """Create 'ancestor_list' column, if not already present, to comply with Alife standard phylogeny data format.
_raw_description = f"""{os.path.basename(__file__)} | (hstrat v{get_hstrat_version()}/joinem v{joinem.__version__})
Create 'ancestor_list' column, if not already present, to comply with Alife standard phylogeny data format.
Additional Notes
================
Expand Down
6 changes: 5 additions & 1 deletion hstrat/dataframe/surface_build_tree.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import argparse
import functools
import logging
import os

import joinem
from joinem._dataframe_cli import _add_parser_base, _run_dataframe_cli

from .. import hstrat
Expand All @@ -13,7 +15,9 @@
)
from ._surface_build_tree import surface_build_tree

raw_message = """End-to-end interface to tree reconstruction for surface-based genome annotations.
raw_message = f"""{os.path.basename(__file__)} | (hstrat v{get_hstrat_version()}/joinem v{joinem.__version__})
End-to-end interface to tree reconstruction for surface-based genome annotations.
Reads raw hex genome data from tabular data file(s) and writes postprocessed phylogeny data to output file in alife standard format.
Expand Down
6 changes: 5 additions & 1 deletion hstrat/dataframe/surface_postprocess_trie.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import argparse
import functools
import logging
import os

import joinem
from joinem._dataframe_cli import _add_parser_base, _run_dataframe_cli

from .. import hstrat
Expand All @@ -13,7 +15,9 @@
)
from ._surface_postprocess_trie import surface_postprocess_trie

raw_message = """Second component of raw interface to tree reconstruction for surface-based genome annotations.
raw_message = f"""{os.path.basename(__file__)} | (hstrat v{get_hstrat_version()}/joinem v{joinem.__version__})
Second component of raw interface to tree reconstruction for surface-based genome annotations.
Reads raw phylogeny reconstruction data from reconstruction in tabular data file(s) and writes postprocessed phylogeny data to output file in alife standard format.
Expand Down
6 changes: 5 additions & 1 deletion hstrat/dataframe/surface_unpack_reconstruct.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import argparse
import functools
import logging
import os

import joinem
from joinem._dataframe_cli import _add_parser_base, _run_dataframe_cli

from .._auxiliary_lib import (
Expand All @@ -12,7 +14,9 @@
)
from ._surface_unpack_reconstruct import surface_unpack_reconstruct

raw_message = """First component of raw interface to tree reconstruction for surface-based genome annotations.
raw_message = f"""{os.path.basename(__file__)} | (hstrat v{get_hstrat_version()}/joinem v{joinem.__version__})
First component of raw interface to tree reconstruction for surface-based genome annotations.
Reads raw genome data from tabular data file(s) and writes reconstructed phylogeny data to output file in alife standard format.
Expand Down

0 comments on commit 8e7910d

Please sign in to comment.