You can retrieve metadata for a specific SRA accession using either the CLI or the Python API. When using Python, the results are returned as a pandas DataFrame, allowing for standard pandas query and selection operations.
To get basic metadata, use the metadata command or sra_metadata method. To include more detailed information, such as download URLs, enable the detailed flag/parameter.
from pysradb.sraweb import SRAweb
client = SRAweb()
# Basic metadata
df = client.sra_metadata('SRP016501')
# Detailed metadata including download URLs
df_detailed = client.sra_metadata('SRP016501', detailed=True)