Skip to content

Commit

Permalink
Merge pull request #54 from bowang-lab/development
Browse files Browse the repository at this point in the history
v0.2.6
  • Loading branch information
duncster94 authored Mar 10, 2023
2 parents 02746ce + 807aadb commit b74e117
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ If you are installing a CUDA capable BIONIC wheel (i.e. not CPU), first ensure y

For example, if we wanted to install the latest version of BIONIC to run on the CPU on a Linux system, we would run

$ pip install https://github.com/bowang-lab/BIONIC/releases/download/v0.2.5/bionic_model-0.2.5+cpu-cp38-cp38-linux_x86_64.whl
$ pip install https://github.com/bowang-lab/BIONIC/releases/download/v0.2.6/bionic_model-0.2.6+cpu-cp38-cp38-linux_x86_64.whl

**NOTE:** There is a [known bug](https://github.com/pypa/pip/issues/7626) in certain versions of `pip` which may result in a `No matching distribution` error. If this occurs, install `pip==19.3.1` and try again.

Expand Down Expand Up @@ -118,7 +118,7 @@ The configuration keys are as follows:

Argument | Default | Description
--- | :---: | ---
`net_names` | `null` | Filepaths of input networks. By specifying `"*"` after the path, BIONIC will integrate all networks in the directory.
`net_names` | `null` | List of filepaths of input networks. If a string is used instead with a `"*"` after the path, BIONIC will integrate all networks in the corresponding directory.
`label_names` | `null` | Filepaths of node label JSON files. An example node label file can be found [here](https://github.com/bowang-lab/BIONIC/blob/master/bionic/inputs/yeast_IntAct_complex_labels.json).
`out_name` | config file path | Path to prepend to all output files. If not specified it will be the path of the config file. `out_name` takes the format `path/to/output` where `output` is an extensionless output file name.
`delimiter` | `" "` | Delimiter for input network files.
Expand Down
2 changes: 1 addition & 1 deletion bionic/tests/utils/test_config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_asterisk_in_net_names_fetches_filenames(self):
mock_config_asterisk_names["net_names"] = "*"
cp = ConfigParser(mock_config_asterisk_names)
params = cp.parse()
assert isinstance(params.net_names, list)
assert isinstance(params.net_names, list) and len(params.net_names)

def test_config_fields_replace_defaults(self):
cp = ConfigParser(mock_config)
Expand Down
2 changes: 1 addition & 1 deletion bionic/utils/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def config(self, config: Union[Path, dict]) -> None:

def _resolve_asterisk_path(self, path: Path) -> List[Path]:
directory = path.parent
return [p for p in directory.iterdir() if p.is_dir()]
return [p for p in directory.iterdir() if not p.is_dir()]

def _get_param(self, param: str, default: Any) -> Any:
if param in self.config:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "bionic-model"
version = "0.2.5"
version = "0.2.6"
description = "Biological network integration using convolutions."
authors = ["Duncan Forster <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit b74e117

Please sign in to comment.