Skip to content

Commit d9802b0

Browse files
committed
Adjust BLAST for latest pandas versions
1 parent 7111a0e commit d9802b0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/src/en/updates.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
[<kbd> View page source on GitHub </kbd>](https://github.com/pachterlab/gget/blob/main/docs/src/en/updates.md)
22

33
## ✨ What's new
4+
**Version ≥ 0.30.4** (Mar 18, 2026):
5+
- [`gget blast`](blast.md): Fixed compatibility with newer pandas versions (≥ 2.0) where `pd.read_html()` no longer accepts raw HTML strings directly, causing a `FileNotFoundError` / `OSError: Filename too long` error when parsing BLAST results
6+
47
**Version ≥ 0.30.3** (Feb 22, 2026):
58
- [`gget virus`](virus.md): New filtering options, quiet mode, and improved download reliability
69
- Added `--segment` filter for segmented viruses (e.g., Influenza A segments like 'HA', 'NA', 'PB1')

gget/gget_blast.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from io import StringIO
2+
13
import pandas as pd
24
import json as json_package
35
import time
@@ -324,7 +326,7 @@ def blast(
324326
)
325327
return
326328

327-
results_df = pd.read_html(str(dsc_table))[0]
329+
results_df = pd.read_html(StringIO(str(dsc_table)))[0]
328330
# Drop the first column
329331
results_df = results_df.iloc[:, 1:]
330332

0 commit comments

Comments
 (0)