Skip to content

Commit

Permalink
Change the url for UniRef* from ftp to https in databases downloader (#…
Browse files Browse the repository at this point in the history
…496)

The current ftp urls give an error as follows:
`Invalid request. Privoxy doesn't support FTP.`
  • Loading branch information
fanhuan authored Oct 10, 2021
1 parent 49c2b70 commit e85ceb9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions data/workflow/databases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,24 +66,24 @@ INPUT_TYPE=""
case "${SELECTION}" in
"UniRef100")
if notExists "${TMP_PATH}/uniref100.fasta.gz"; then
downloadFile "ftp://ftp.uniprot.org/pub/databases/uniprot/uniref/uniref100/uniref100.release_note" "${TMP_PATH}/version"
downloadFile "ftp://ftp.uniprot.org/pub/databases/uniprot/uniref/uniref100/uniref100.fasta.gz" "${TMP_PATH}/uniref100.fasta.gz"
downloadFile "https://ftp.uniprot.org/pub/databases/uniprot/uniref/uniref100/uniref100.release_note" "${TMP_PATH}/version"
downloadFile "https://ftp.uniprot.org/pub/databases/uniprot/uniref/uniref100/uniref100.fasta.gz" "${TMP_PATH}/uniref100.fasta.gz"
fi
push_back "${TMP_PATH}/uniref100.fasta.gz"
INPUT_TYPE="FASTA_LIST"
;;
"UniRef90")
if notExists "${TMP_PATH}/uniref90.fasta.gz"; then
downloadFile "ftp://ftp.uniprot.org/pub/databases/uniprot/uniref/uniref90/uniref90.release_note" "${TMP_PATH}/version"
downloadFile "ftp://ftp.uniprot.org/pub/databases/uniprot/uniref/uniref90/uniref90.fasta.gz" "${TMP_PATH}/uniref90.fasta.gz"
downloadFile "https://ftp.uniprot.org/pub/databases/uniprot/uniref/uniref90/uniref90.release_note" "${TMP_PATH}/version"
downloadFile "https://ftp.uniprot.org/pub/databases/uniprot/uniref/uniref90/uniref90.fasta.gz" "${TMP_PATH}/uniref90.fasta.gz"
fi
push_back "${TMP_PATH}/uniref90.fasta.gz"
INPUT_TYPE="FASTA_LIST"
;;
"UniRef50")
if notExists "${TMP_PATH}/uniref50.fasta.gz"; then
downloadFile "ftp://ftp.uniprot.org/pub/databases/uniprot/uniref/uniref50/uniref50.release_note" "${TMP_PATH}/version"
downloadFile "ftp://ftp.uniprot.org/pub/databases/uniprot/uniref/uniref50/uniref50.fasta.gz" "${TMP_PATH}/uniref50.fasta.gz"
downloadFile "https://ftp.uniprot.org/pub/databases/uniprot/uniref/uniref50/uniref50.release_note" "${TMP_PATH}/version"
downloadFile "https://ftp.uniprot.org/pub/databases/uniprot/uniref/uniref50/uniref50.fasta.gz" "${TMP_PATH}/uniref50.fasta.gz"
fi
push_back "${TMP_PATH}/uniref50.fasta.gz"
INPUT_TYPE="FASTA_LIST"
Expand Down

0 comments on commit e85ceb9

Please sign in to comment.