Skip to content

Commit b4f1bab

Browse files
authored
Merge pull request #20 from PopovIILab/dev
feat(cli): add short single-dash aliases for options and bump to v1.1.1
2 parents 7ecc5bb + c3f370e commit b4f1bab

3 files changed

Lines changed: 40 additions & 25 deletions

File tree

README.md

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -69,24 +69,26 @@ Usage: KrakenParser [OPTIONS] COMMAND [ARGS]...
6969
to see options for a specific step.
7070
7171
╭─ Options ────────────────────────────────────────────────────────────────────╮
72-
│ --input -i PATH Directory containing Kraken2 report files. │
73-
│ --output -o PATH Output directory. │
74-
│ --viruses Extract only VIRUSES domain taxa in the │
75-
│ pipeline. │
76-
│ --bacteria Extract only BACTERIA domain taxa in the │
77-
│ pipeline. │
78-
│ --fungi Extract only FUNGI kingdom taxa in the │
79-
│ pipeline. │
80-
│ --archaea Extract only ARCHAEA domain taxa in the │
81-
│ pipeline. │
82-
│ --keep-human Do not filter human-related taxa. │
83-
│ --version -V Show version and exit. │
84-
│ --depth -d INTEGER Rarefaction depth for β-diversity. │
85-
│ [default: 1000] │
86-
│ --seed -s INTEGER Random seed for reproducible rarefaction. │
87-
│ --overwrite Overwrite the output directory if it already │
88-
│ exists. │
89-
│ --help -h Show this message and exit. │
72+
│ --input -i PATH Directory containing Kraken2 report │
73+
│ files. │
74+
│ --output -o PATH Output directory. │
75+
│ --viruses -viruses Extract only VIRUSES domain taxa in │
76+
│ the pipeline. │
77+
│ --bacteria -bacteria Extract only BACTERIA domain taxa in │
78+
│ the pipeline. │
79+
│ --fungi -fungi Extract only FUNGI kingdom taxa in │
80+
│ the pipeline. │
81+
│ --archaea -archaea Extract only ARCHAEA domain taxa in │
82+
│ the pipeline. │
83+
│ --keep-human -keep-human Do not filter human-related taxa. │
84+
│ --version -V Show version and exit. │
85+
│ --depth -d INTEGER Rarefaction depth for β-diversity. │
86+
│ [default: 1000] │
87+
│ --seed -s INTEGER Random seed for reproducible │
88+
│ rarefaction. │
89+
│ --overwrite -overwrite Overwrite the output directory if it │
90+
│ already exists. │
91+
│ --help -h Show this message and exit. │
9092
╰──────────────────────────────────────────────────────────────────────────────╯
9193
╭─ Advanced (Step-by-step pipeline control) ───────────────────────────────────╮
9294
│ mpa Convert a Kraken2 report to MetaPhlAn (MPA) format. │
@@ -319,7 +321,7 @@ results/
319321
│ ├─ counts_genus.txt
320322
│ ├─ ...
321323
│ └─ counts_phylum.txt
322-
└─ krakenparser.log # Pipeline execution logs
324+
└─ krakenparser.log # Pipeline execution logs
323325
```
324326

325327
## Conclusion

krakenparser/krakenparser.py

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,31 @@ def main_callback(
6060
None, "-o", "--output", help="Output directory."
6161
),
6262
viruses: bool = typer.Option(
63-
False, "--viruses", help="Extract only VIRUSES domain taxa in the pipeline."
63+
False,
64+
"-viruses",
65+
"--viruses",
66+
help="Extract only VIRUSES domain taxa in the pipeline.",
6467
),
6568
bacteria: bool = typer.Option(
66-
False, "--bacteria", help="Extract only BACTERIA domain taxa in the pipeline."
69+
False,
70+
"-bacteria",
71+
"--bacteria",
72+
help="Extract only BACTERIA domain taxa in the pipeline.",
6773
),
6874
fungi: bool = typer.Option(
69-
False, "--fungi", help="Extract only FUNGI kingdom taxa in the pipeline."
75+
False,
76+
"-fungi",
77+
"--fungi",
78+
help="Extract only FUNGI kingdom taxa in the pipeline.",
7079
),
7180
archaea: bool = typer.Option(
72-
False, "--archaea", help="Extract only ARCHAEA domain taxa in the pipeline."
81+
False,
82+
"-archaea",
83+
"--archaea",
84+
help="Extract only ARCHAEA domain taxa in the pipeline.",
7385
),
7486
keep_human: bool = typer.Option(
75-
False, "--keep-human", help="Do not filter human-related taxa."
87+
False, "-keep-human", "--keep-human", help="Do not filter human-related taxa."
7688
),
7789
version: Optional[bool] = typer.Option(
7890
None,
@@ -90,6 +102,7 @@ def main_callback(
90102
),
91103
overwrite: bool = typer.Option(
92104
False,
105+
"-overwrite",
93106
"--overwrite",
94107
help="Overwrite the output directory if it already exists.",
95108
),

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "krakenparser"
7-
version = "1.1.0"
7+
version = "1.1.1"
88
description = "A collection of scripts designed to process Kraken2 reports and convert them into CSV format."
99
readme = {file = "README.md", content-type = "text/markdown"}
1010
license = {file = "LICENSE"}

0 commit comments

Comments
 (0)