Skip to main content

Fetch run information from the European Nucleotide Archive (ENA).

Project description

ffq

github version pypi version python versions status pypi downloads license

Fetch run information from the European Nucleotide Archive (ENA).

Installation

pip install ffq

Usage

Fetch information of an SRA run and display it in the terminal

ffq [SRR]

where [SRR] is the run accession.

Fetch information of multiple SRA runs and display it in the terminal

ffq [SRR1] [SRR2] ...

where [SRR1] and [SRR2] are run accessions.

Write SRA run information to a single JSON file

ffq -o [JSON_PATH] [SRRS]

where [JSON_PATH] is the path to the JSON file that will contain run information and [SRRS] is a space-delimited list of one or more run accessions.

Write SRA run information to multiple JSON files, one file per run

ffq -o [OUT_DIR] --split [SRRS]

where [OUT_PATH] is the path to directory to which to write the JSON files. Information about each run will be written to its own separate JSON file named [ACCESSION].json. [SRRS] is a space-delimited list of one or more run accessions.

Fetch information of one or more SRA study (and all of their runs)

ffq -t SRP [SRPS]

where [SRPS] is a space-delimited list of one or more SRA study accessions. The output is a JSON-formatted string (or a JSON file if -o is provided) with study accessions as keys. When --split is also provided, each study is written to its own separate JSON.

Fetch information of one or more GEO study (and all of their runs)

ffq -t GSE [GSES]

where [GSES] is a space-delimited list of one or more GEO study accessions. The output is a JSON-formatted string (or a JSON file if -o is provided) with study accessions as keys. When --split is also provided, each study is written to its own separate JSON.

Fetch information of all studies (and all of their runs) in one or more papers

ffq -t DOI [DOIS]

where [DOIS] is a space-delimited list of one or more DOIs. The output is a JSON-formatted string (or a JSON file if -o is provided) with SRA study accessions as keys. When --split is also provided, each study is written to its own separate JSON.

Examples

Examples are available in the examples directory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ffq-0.0.2.tar.gz (16.7 kB view hashes)

Uploaded Source

Built Distribution

ffq-0.0.2-py3-none-any.whl (17.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page