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

Download files

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

Source Distribution

ngsfetch-0.1.2.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ngsfetch-0.1.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file ngsfetch-0.1.2.tar.gz.

File metadata

  • Download URL: ngsfetch-0.1.2.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for ngsfetch-0.1.2.tar.gz
Algorithm Hash digest
SHA256 910b654dca630f57b7a1d780aa0cb3fb0686043edf2a12cb7e203af22c4d80e1
MD5 5f6e37f291374a08d541dca111db6020
BLAKE2b-256 f3b765a6612773cb505d773d715d0f4bdfe89830c216786797f49b6ee8d3b6a3

See more details on using hashes here.

File details

Details for the file ngsfetch-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ngsfetch-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for ngsfetch-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 931375fe4597f1746084bae9c9a1b7cb470c5f2f6999e457944f1e4dc5a483d8
MD5 8345a1723110cc63477c72db04350899
BLAKE2b-256 4cd8aab85016ac10418c00dac324a6f75a3114793ef0f69e9a2d0e73e1a879ec

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

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