Skip to content

Commit 3e7fdf8

Browse files
committed
download phrogs
1 parent 0e35231 commit 3e7fdf8

File tree

14 files changed

+883721
-51
lines changed

14 files changed

+883721
-51
lines changed

Makefile

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
.PHONY: help install install-dev test lint format clean docs
2+
3+
# Default target
4+
help:
5+
@echo "Available commands:"
6+
@echo " make install - Install package"
7+
@echo " make install-dev - Install package with development dependencies"
8+
@echo " make test - Run tests"
9+
@echo " make lint - Run linters"
10+
@echo " make format - Format code"
11+
@echo " make docs - Generate documentation"
12+
@echo " make clean - Remove build artifacts"
13+
14+
# Install package
15+
install:
16+
pip install -e .
17+
18+
# Install with development dependencies
19+
install-dev:
20+
pip install -e ".[dev]"
21+
22+
# Run tests
23+
test:
24+
pytest tests/ -v
25+
26+
# Run linters
27+
lint:
28+
ruff check src/
29+
mypy src/
30+
31+
# Format code
32+
format:
33+
ruff format src/
34+
ruff check --fix src/
35+
36+
# Generate documentation
37+
docs:
38+
@echo "📚 Generating documentation..."
39+
@if command -v pdoc > /dev/null; then \
40+
pdoc -o docs src/votuderep && \
41+
echo "✅ Documentation generated in docs/"; \
42+
else \
43+
echo "❌ Error: pdoc is not installed"; \
44+
echo " Install with: pip install pdoc"; \
45+
exit 1; \
46+
fi
47+
48+
# Clean build artifacts
49+
clean:
50+
@echo "🧹 Cleaning build artifacts..."
51+
rm -rf build/
52+
rm -rf dist/
53+
rm -rf *.egg-info
54+
rm -rf src/*.egg-info
55+
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
56+
find . -type f -name "*.pyc" -delete
57+
@echo "✅ Clean complete"

docs/votuderep.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ <h2 id="version-information">Version Information</h2>
260260
</span><span id="L-91"><a href="#L-91"><span class="linenos">91</span></a><span class="sd">-------------------</span>
261261
</span><span id="L-92"><a href="#L-92"><span class="linenos">92</span></a><span class="sd">&quot;&quot;&quot;</span>
262262
</span><span id="L-93"><a href="#L-93"><span class="linenos">93</span></a>
263-
</span><span id="L-94"><a href="#L-94"><span class="linenos">94</span></a><span class="n">__version__</span> <span class="o">=</span> <span class="s2">&quot;0.5.0&quot;</span>
263+
</span><span id="L-94"><a href="#L-94"><span class="linenos">94</span></a><span class="n">__version__</span> <span class="o">=</span> <span class="s2">&quot;0.6.0&quot;</span>
264264
</span><span id="L-95"><a href="#L-95"><span class="linenos">95</span></a><span class="n">__author__</span> <span class="o">=</span> <span class="s2">&quot;Andrea Telatin&quot;</span>
265265
</span><span id="L-96"><a href="#L-96"><span class="linenos">96</span></a><span class="n">__license__</span> <span class="o">=</span> <span class="s2">&quot;MIT&quot;</span>
266266
</span><span id="L-97"><a href="#L-97"><span class="linenos">97</span></a>
@@ -272,7 +272,7 @@ <h2 id="version-information">Version Information</h2>
272272
<section id="__version__">
273273
<div class="attr variable">
274274
<span class="name">__version__</span> =
275-
<span class="default_value">&#39;0.5.0&#39;</span>
275+
<span class="default_value">&#39;0.6.0&#39;</span>
276276

277277

278278
</div>

src/votuderep.egg-info/PKG-INFO

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ A small toolkit developed for the [EBAME](https://maignienlab.gitlab.io/ebame/)
5454
- **filter**: Filter viral contigs based on quality, completeness, and other metrics from CheckV tsv output
5555
- **tabulate**: Generate CSV tables from paired-end sequencing read directories (for nextflow)
5656
- **trainingdata**: Fetch viral assembly datasets for training purposes
57-
- **getdbs**: Download Genomad and CheckV databases
57+
- **getdbs**: Download Genomad and CheckV databases
58+
- **splitcoverm**: Split a CoverM TSV by metric into separate TSVs, one per metric.
5859

5960
## Requirements
6061

@@ -95,7 +96,8 @@ brew install blast
9596

9697
## Usage
9798

98-
votuderep provides subcommands: `derep`, `filter`, `tabulate`, and `trainingdata`...
99+
votuderep provides subcommands: `derep`, `filter`, `tabulate`, `trainingdata`, and `splitcoverm`.
100+
99101

100102
### Dereplicate vOTUs
101103

@@ -265,6 +267,31 @@ votuderep trainingdata
265267
votuderep trainingdata -o ./training_data/
266268
```
267269

270+
### Split CoverM TSV
271+
272+
Split a CoverM TSV by metric into separate TSVs, one per metric.
273+
Reads a CoverM output table containing multiple metrics across samples and splits it into individual TSV files, one for each metric. Each output file will have the format: `<basename>_<metric>.tsv`
274+
The input TSV is expected to have columns formatted as: "Contig", "<sample1> <metric1>", "<sample1> <metric2>", ...
275+
276+
```bash
277+
votuderep splitcoverm -i coverage.tsv -o output/cov
278+
```
279+
280+
**Options:**
281+
282+
- `-i, --input`: Input CoverM TSV (optionally gzipped: .gz) [required]
283+
- `-o, --output-basename`: Output basename/prefix for generated files [required]
284+
285+
**Examples:**
286+
287+
```bash
288+
# Basic usage
289+
votuderep splitcoverm -i coverage.tsv -o output/cov
290+
291+
# With gzipped input
292+
votuderep splitcoverm -i coverage.tsv.gz -o results/sample
293+
```
294+
268295
## Global Options
269296

270297
- `-v, --verbose`: Enable verbose logging

src/votuderep/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
-------------------
9292
"""
9393

94-
__version__ = "0.5.0"
94+
__version__ = "0.6.0"
9595
__author__ = "Andrea Telatin"
9696
__license__ = "MIT"
9797

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)