Skip to content

Additional download options #208

@pwalczysko

Description

@pwalczysko

In the https://idr.openmicroscopy.org/about/download.html there is no mention about download possiblities without the usage of the software such as ftp or Globus.

We could add code snippets such as usage of wget or ftputil library:

download locally the image by running from a terminal

wget https://ftp.ebi.ac.uk/pub/databases/IDR/idr0062-blin-nuclearsegmentation/20190429-ftp/Blastocysts/B4_C3.tif

When writing a Python script, using wget is not really practical. In such case, one of the possibilities is the ftputil library

import ftputil
import os


files = ["pub/databases/IDR/idr0062-blin-nuclearsegmentation/20190429-ftp/Blastocysts/B4_C3.tif"]           
with ftputil.FTPHost('ftp.ebi.ac.uk', 'anonymous') as host:
    names = host.listdir(host.curdir)
    for name in names:
        if name == 'pub': # only check the IDR data
            for file in files:
                local_name = os.path.basename(file)
                if host.path.isfile(file):
                    host.download(file, local_name)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions