I think this is quite a common thing, but not sure if it effects all regions and institutions, but I have had to replace ftp with https.
ftp doesnt work for me!
so it would be url = "https://ftp.ncbi.nlm.nih.gov/genomes/all/{gcf}/{letter}/{id}/{filename}".format(gcf=gcf, letter=letter, id=id, filename=filename)
I think this is quite a common thing, but not sure if it effects all regions and institutions, but I have had to replace ftp with https.
ftp doesnt work for me!
so it would be
url = "https://ftp.ncbi.nlm.nih.gov/genomes/all/{gcf}/{letter}/{id}/{filename}".format(gcf=gcf, letter=letter, id=id, filename=filename)
https://github.com/ythuang0522/homopolish/blob/4f0022c13ebb6271fd205d127fe03d2df21e9ef4/modules/download.py#L118