moducomp 0.7.13__tar.gz → 0.7.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {moducomp-0.7.13 → moducomp-0.7.14}/PKG-INFO +9 -3
- {moducomp-0.7.13 → moducomp-0.7.14}/README.md +8 -2
- {moducomp-0.7.13 → moducomp-0.7.14}/moducomp/__init__.py +1 -1
- {moducomp-0.7.13 → moducomp-0.7.14}/moducomp/moducomp.py +17 -9
- {moducomp-0.7.13 → moducomp-0.7.14}/recipe.yaml +2 -2
- {moducomp-0.7.13 → moducomp-0.7.14}/.gitignore +0 -0
- {moducomp-0.7.13 → moducomp-0.7.14}/LICENSE.txt +0 -0
- {moducomp-0.7.13 → moducomp-0.7.14}/moducomp/__main__.py +0 -0
- {moducomp-0.7.13 → moducomp-0.7.14}/moducomp/data/test_genomes/IMG2562617132.faa +0 -0
- {moducomp-0.7.13 → moducomp-0.7.14}/moducomp/data/test_genomes/IMG2568526683.faa +0 -0
- {moducomp-0.7.13 → moducomp-0.7.14}/moducomp/data/test_genomes/IMG2740892217.faa +0 -0
- {moducomp-0.7.13 → moducomp-0.7.14}/pixi.lock +0 -0
- {moducomp-0.7.13 → moducomp-0.7.14}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: moducomp
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.14
|
|
4
4
|
Summary: moducomp: metabolic module completeness and complementarity for microbiomes.
|
|
5
5
|
Keywords: bioinformatics,microbiome,metabolic,kegg,genomics
|
|
6
6
|
Author-email: "Juan C. Villada" <jvillada@lbl.gov>
|
|
@@ -62,6 +62,14 @@ pixi global install \
|
|
|
62
62
|
|
|
63
63
|
`moducomp` needs the eggNOG-mapper database to run. The primary (recommended) way to download it is using the `download_eggnog_data.py` wrapper, which mirrors the upstream downloader behavior. For upstream details, see the eggNOG-mapper setup guide: [eggNOG-mapper database setup](https://github.com/eggnogdb/eggnog-mapper/wiki/eggNOG-mapper-v2.1.5-to-v2.1.13#user-content-Setup).
|
|
64
64
|
|
|
65
|
+
```bash
|
|
66
|
+
download_eggnog_data.py
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
By default, the data are stored in `${XDG_DATA_HOME:-~/.local/share}/moducomp/eggnog`, and `moducomp` will auto-detect that location without needing `EGGNOG_DATA_DIR`.
|
|
70
|
+
|
|
71
|
+
To use a custom location:
|
|
72
|
+
|
|
65
73
|
```bash
|
|
66
74
|
export EGGNOG_DATA_DIR="/path/to/eggnog-data"
|
|
67
75
|
download_eggnog_data.py --eggnog-data-dir "$EGGNOG_DATA_DIR"
|
|
@@ -69,8 +77,6 @@ download_eggnog_data.py --eggnog-data-dir "$EGGNOG_DATA_DIR"
|
|
|
69
77
|
# moducomp download-eggnog-data --eggnog-data-dir "$EGGNOG_DATA_DIR"
|
|
70
78
|
```
|
|
71
79
|
|
|
72
|
-
If `EGGNOG_DATA_DIR` is not set, the downloader defaults to `${XDG_DATA_HOME:-~/.local/share}/moducomp/eggnog`.
|
|
73
|
-
|
|
74
80
|
### Quick test
|
|
75
81
|
|
|
76
82
|
Small test data sets ship with `moducomp`. After installation you can confirm the pipeline by running:
|
|
@@ -37,6 +37,14 @@ pixi global install \
|
|
|
37
37
|
|
|
38
38
|
`moducomp` needs the eggNOG-mapper database to run. The primary (recommended) way to download it is using the `download_eggnog_data.py` wrapper, which mirrors the upstream downloader behavior. For upstream details, see the eggNOG-mapper setup guide: [eggNOG-mapper database setup](https://github.com/eggnogdb/eggnog-mapper/wiki/eggNOG-mapper-v2.1.5-to-v2.1.13#user-content-Setup).
|
|
39
39
|
|
|
40
|
+
```bash
|
|
41
|
+
download_eggnog_data.py
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
By default, the data are stored in `${XDG_DATA_HOME:-~/.local/share}/moducomp/eggnog`, and `moducomp` will auto-detect that location without needing `EGGNOG_DATA_DIR`.
|
|
45
|
+
|
|
46
|
+
To use a custom location:
|
|
47
|
+
|
|
40
48
|
```bash
|
|
41
49
|
export EGGNOG_DATA_DIR="/path/to/eggnog-data"
|
|
42
50
|
download_eggnog_data.py --eggnog-data-dir "$EGGNOG_DATA_DIR"
|
|
@@ -44,8 +52,6 @@ download_eggnog_data.py --eggnog-data-dir "$EGGNOG_DATA_DIR"
|
|
|
44
52
|
# moducomp download-eggnog-data --eggnog-data-dir "$EGGNOG_DATA_DIR"
|
|
45
53
|
```
|
|
46
54
|
|
|
47
|
-
If `EGGNOG_DATA_DIR` is not set, the downloader defaults to `${XDG_DATA_HOME:-~/.local/share}/moducomp/eggnog`.
|
|
48
|
-
|
|
49
55
|
### Quick test
|
|
50
56
|
|
|
51
57
|
Small test data sets ship with `moducomp`. After installation you can confirm the pipeline by running:
|
|
@@ -145,15 +145,23 @@ def require_eggnog_data_dir(eggnog_data_dir: Optional[str], logger: Optional[log
|
|
|
145
145
|
if eggnog_data_dir:
|
|
146
146
|
os.environ["EGGNOG_DATA_DIR"] = eggnog_data_dir
|
|
147
147
|
|
|
148
|
-
env_value = os.environ.get("EGGNOG_DATA_DIR", "")
|
|
149
|
-
if not env_value
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
"
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
148
|
+
env_value = os.environ.get("EGGNOG_DATA_DIR", "").strip()
|
|
149
|
+
if not env_value:
|
|
150
|
+
default_dir = default_eggnog_data_dir()
|
|
151
|
+
if default_dir.exists() and default_dir.is_dir() and any(default_dir.iterdir()):
|
|
152
|
+
os.environ["EGGNOG_DATA_DIR"] = str(default_dir)
|
|
153
|
+
env_value = str(default_dir)
|
|
154
|
+
if logger:
|
|
155
|
+
logger.info("EGGNOG_DATA_DIR not set; using default %s", env_value)
|
|
156
|
+
else:
|
|
157
|
+
message = (
|
|
158
|
+
"EGGNOG_DATA_DIR is required to run eggNOG-mapper. "
|
|
159
|
+
"Set the EGGNOG_DATA_DIR environment variable or pass --eggnog-data-dir. "
|
|
160
|
+
f"Default location is {default_dir}. "
|
|
161
|
+
"Download the data with: download_eggnog_data.py or moducomp download-eggnog-data"
|
|
162
|
+
)
|
|
163
|
+
emit_error(message, logger)
|
|
164
|
+
raise typer.Exit(1)
|
|
157
165
|
|
|
158
166
|
data_dir = Path(env_value).expanduser().resolve()
|
|
159
167
|
if not data_dir.exists() or not data_dir.is_dir():
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
context:
|
|
2
|
-
version: 0.7.
|
|
2
|
+
version: 0.7.14
|
|
3
3
|
|
|
4
4
|
package:
|
|
5
5
|
name: moducomp
|
|
@@ -7,7 +7,7 @@ package:
|
|
|
7
7
|
|
|
8
8
|
source:
|
|
9
9
|
- url: https://pypi.org/packages/source/m/moducomp/moducomp-${{ version }}.tar.gz
|
|
10
|
-
sha256:
|
|
10
|
+
sha256: bfa45b0d4383ce954e89dceb9b54f4502e02b6ebe995f6a07395ce6a6ede7360
|
|
11
11
|
|
|
12
12
|
build:
|
|
13
13
|
script:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|