Skip to main content

ngsfetch (v0.1.2)

GitHub License DOI GitHub Release GitHub Release Date Create Release Publish PyPI Python PyPI PyPI - Downloads Conda Conda - Downloads Docker Docker Pulls Docker Image Size

A utility to retrieve fastq files with ffq and aria2. It is designed to be fast and efficient, allowing you to download large datasets quickly and easily. This tool can be used to fetch fastq files from various public repositories, including:

  • GEO: Gene Expression Omnibus,
  • SRA: Sequence Read Archive,
  • EMBL-EBI: European Molecular BIology Laboratory’s European BIoinformatics Institute,
  • DDBJ: DNA Data Bank of Japan.

[!IMPORTANT]

  • Fast: Uses aria2 to download files in parallel, which can significantly speed up the download process.
  • Integrity: Verifies the integrity of downloaded files using md5sum to ensure that the files are not corrupted during the download process.
  • Retry Mechanism: Automatically attempts to re-download files if the initial download fails, ensuring successful retrieval of data.

Quick start

# Fetch fastq files of GSE52856
ngsfetch -i GSE52856 -o /path/to/output/GSE52856 -p 16

# Fetch fastq files of SRP175008
ngsfetch -i SRP175008 -o /path/to/output/SRP175008 -p 16

# Fetch fastq files of ERP126666
ngsfetch -i ERP126666 -o /path/to/output/ERP126666 -p 16

How to install

pip

pip install ngsfetch

or

git clone https://github.com/NaotoKubota/ngsfetch.git
cd ngsfetch
pip install .

conda

conda create -n ngsfetch python=3.9
conda activate ngsfetch
conda install -c bioconda ngsfetch

Docker

docker pull naotokubota/ngsfetch

Dependencies

Operating system

  • Linux (i.e. where the md5sum command is available)

[!TIP] Are you using MacOS or Windows? Don't worry! You can use Docker to run ngsfetch on your local machine. Just install Docker and run the following command:

docker run -it --rm -v /path/to/output:/data naotokubota/ngsfetch ngsfetch -i GSE52856 -o /data -p 16

This command will mount the /path/to/output directory on your local machine to the /data directory in the Docker container, allowing you to access the downloaded files on your local machine. Make sure to replace /path/to/output with the actual path where you want to save the downloaded files.

python packages

  • python (>=3.9)
  • ffq (>=0.3.1)
  • aria2 (>=0.0.1b0)

Usage

usage: ngsfetch [-h] [-i ID] [-o OUTPUT] [-p PROCESSES] [--attempts ATTEMPTS] [-v]

ngsfetch v0.1.2 - fast retrieval of metadata and fastq files with ffq and aria2c

optional arguments:
  -h, --help            show this help message and exit
  -i ID, --id ID        ID of the data to fetch
  -o OUTPUT, --output OUTPUT
                        Output directory
  -p PROCESSES, --processes PROCESSES
                        Number of processes to use (up to 16)
  --attempts ATTEMPTS   Number of attempts to fetch metadata and fastq files
  -v, --verbose         Increase verbosity

Contributing

Thank you for wanting to improve ngsfetch! If you have any bugs or questions, feel free to open an issue or pull request.

Authors

Metadata

Release files for ngsfetch 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ngsfetch 0.1.2
File Size Uploaded Provenance
ngsfetch-0.1.2.tar.gz 9.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ngsfetch 0.1.2
File Interpreter ABI Platform
ngsfetch-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 18.0 kB

Release files / ngsfetch-0.1.2.tar.gz

Download URL ngsfetch-0.1.2.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
910b654dca630f57b7a1d780aa0cb3fb0686043edf2a12cb7e203af22c4d80e1
BLAKE2b-256 checksum
How to use checksums
f3b765a6612773cb505d773d715d0f4bdfe89830c216786797f49b6ee8d3b6a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / ngsfetch-0.1.2-py3-none-any.whl

Download URL ngsfetch-0.1.2-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
931375fe4597f1746084bae9c9a1b7cb470c5f2f6999e457944f1e4dc5a483d8
BLAKE2b-256 checksum
How to use checksums
4cd8aab85016ac10418c00dac324a6f75a3114793ef0f69e9a2d0e73e1a879ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for ngsfetch 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page