-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
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
Labels
No labels