Bio Compressed Files

Read, write, and index compressed sequence files (gzip, bzip2, xz, BGZF) with Biopython and bgzip/samtools. Use when working with .gz, .bz2, or .bgz sequence files, when random access into a compressed FASTA/FASTQ is needed, or when SeqIO.index/faidx/tabix rejects a plain .gz. Covers the BGZF-vs-gzip seekability asymmetry, the 'rt'-not-'rb' handle trap, virtual offsets, and gzip-to-BGZF conversion.

FridrichMethod 6325f5a 3 files · 17.2 KB Updated

File contents

FridrichMethod/awesome-skills/tree/main/skills/compressed-files commit 6325f5afa8

Frequently asked questions

npx skillmds@latest add fridrichmethod/bio-compressed-files