pysradb is a Python tool for querying and downloading metadata and data from NCBI SRA (Sequence Read Archive), ENA (European Nucleotide Archive), and GEO (Gene Expression Omnibus). It provides CLI and Python interfaces to search experiments, samples, runs, and download FASTQ/SRA files. Current version 2.5.1 (released 2025, active development).
pip install pysradbVerified import paths — ran on the pinned version, not inferred.
Initialize the SRA database and search for studies related to a gene/term.
Migrate to new API: use 'from pysradb import SRA database' and new method signatures.
Wrap search in a try-except or check df.empty after calling search.
Use 'pysradb' instead of 'sradb' for CLI commands.