Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider FTP-based access of IDR data #24

Open
d33bs opened this issue Apr 5, 2024 · 0 comments
Open

Consider FTP-based access of IDR data #24

d33bs opened this issue Apr 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@d33bs
Copy link
Member

d33bs commented Apr 5, 2024

I noticed this project leverages Aspera to help download IDR data. In searching through documentation and image.sc forum posts, I came across this IDR download instructions page, which indicates you can now use anonymous FTP access for downloading IDR data. It might be helpful to move over to this approach, especially as there are built-in FTP clients within Python. The advantage of reducing code-complexity here might need to be balanced with Aspera's download performance considerations (if it's faster than FTP).

May relate / overlap with efforts in #4 (S3-based access of IDR resources).

For example:

from ftplib import FTP

# Connect to the FTP server
with FTP("ftp.ebi.ac.uk") as ftp:
    # Log in to the FTP server
    ftp.login(user="anonymous", passwd="")

    # Change to the desired directory (optional)
    ftp.cwd("/pub/databases/IDR")

    # List directories
    dirs = []
    ftp.dir(dirs.append)

    # Print the list of directories
    print("Directories on FTP server:")
    for dir_info in dirs:
        print(dir_info)
@d33bs d33bs added the enhancement New feature or request label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant