Skip to content

Commit a57f7bd

Browse files
committed
use https download for refseq
1 parent 9dac455 commit a57f7bd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/downloadHuman.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ def getRefSeqLatest():
6262

6363
files_latest = ftp.nlst(folder_release)
6464

65-
ls_url_genome += ['ftp://' + ftp_url + e for e in files_latest if re.findall(f'/.*_genomic.fna.gz',e)]
66-
ls_url_GTF += ['ftp://' + ftp_url + e for e in files_latest if re.findall(f'/.*_genomic.gtf.gz',e)]
67-
ls_url_protein += ['ftp://' + ftp_url + e for e in files_latest if re.findall(f'/.*_protein.faa.gz',e)]
65+
ls_url_genome += ['https://' + ftp_url + e for e in files_latest if re.findall(f'/.*_genomic.fna.gz',e)]
66+
ls_url_GTF += ['https://' + ftp_url + e for e in files_latest if re.findall(f'/.*_genomic.gtf.gz',e)]
67+
ls_url_protein += ['https://' + ftp_url + e for e in files_latest if re.findall(f'/.*_protein.faa.gz',e)]
6868

6969
url_genome = [i for i in ls_url_genome if 'T2T-CHM13' not in i and 'cds_' not in i and 'rna_' not in i][0]
7070
url_GTF = [i for i in ls_url_GTF if 'T2T-CHM13' not in i][0]
@@ -99,9 +99,9 @@ def getRefSeqLatestCHM13():
9999

100100
files_latest = ftp.nlst(folder_release)
101101

102-
ls_url_genome += ['ftp://' + ftp_url + e for e in files_latest if re.findall(f'/.*_genomic.fna.gz',e)]
103-
ls_url_GTF += ['ftp://' + ftp_url + e for e in files_latest if re.findall(f'/.*_genomic.gtf.gz',e)]
104-
ls_url_protein += ['ftp://' + ftp_url + e for e in files_latest if re.findall(f'/.*_protein.faa.gz',e)]
102+
ls_url_genome += ['https://' + ftp_url + e for e in files_latest if re.findall(f'/.*_genomic.fna.gz',e)]
103+
ls_url_GTF += ['https://' + ftp_url + e for e in files_latest if re.findall(f'/.*_genomic.gtf.gz',e)]
104+
ls_url_protein += ['https://' + ftp_url + e for e in files_latest if re.findall(f'/.*_protein.faa.gz',e)]
105105

106106
url_genome = [i for i in ls_url_genome if 'T2T-CHM13' in i and 'cds_' not in i and 'rna_' not in i][0]
107107
url_GTF = [i for i in ls_url_GTF if 'T2T-CHM13' in i][0]

0 commit comments

Comments
 (0)