bio-compressed-files
Read and write compressed sequence files (gzip, bzip2, BGZF) using Biopython. Use when working with .gz or .bz2 sequence files. Use BGZF for indexable compressed files.
npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill bio-compressed-files --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
## Version Compatibility Reference examples tested with: BioPython 1.83+, samtools 1.19+ Before using code patterns, verify installed versions match. If versions differ: - Python: `pip show <package>` then `help(module.function)` to check signatures If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying. # Compressed Files Handle gzip, bzip2, and BGZF compressed sequence files with Biopython. **"Read a compressed sequence file"** → Open a compressed file handle in text mode, then parse with the standard SeqIO interface. - gzip: `gzip.open(path, 'rt')` (Python stdlib) - bzip2: `bz2.open(path, 'rt')` (Python stdlib) - BGZF: `bgzf.open(path, 'rt')` (BioPython) or direct `SeqIO.parse(path, fmt)` **"Make a compressed file indexable"** → Convert to BGZF format. Only BGZF supports `SeqIO.index()` on compressed data. ## Required Imports ```python import gzip import bz2 from Bio import SeqIO from Bio import bgzf ``` ## Reading Compressed Files **Goal:** Parse sequence records from compressed files without decompressing to disk. **Approach:** Open a decompression handle in text mode (`'rt'`
- Version Compatibility
- Required Imports
- Reading Compressed Files
- Gzip (.gz) (BioPython 1.83+)
- Bzip2 (.bz2) (BioPython 1.83+)
- BGZF (Block Gzip) (BioPython 1.83+)
- Writing Compressed Files
- Gzip (.gz)
- Bzip2 (.bz2)
- BGZF (.bgz)
- BGZF: Indexable Compression
- Create Indexable Compressed File
- Index a BGZF File
- Convert Gzip to BGZF
What does the bio-compressed-files skill do?
Read and write compressed sequence files (gzip, bzip2, BGZF) using Biopython. Use when working with .gz or .bz2 sequence files. Use BGZF for indexable compressed files.
How do I install it?
Run `npx skills add FreedomIntelligence/OpenClaw-Medical-Skills --skill bio-compressed-files --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From FreedomIntelligence/OpenClaw-Medical-Skills, a repository with 2,909 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
