Skip to content

Commit

Permalink
fixed wget command
Browse files Browse the repository at this point in the history
  • Loading branch information
kyclark committed Jul 14, 2021
1 parent 4210579 commit 6588892
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 11_mprt/fetch_fasta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ OUT_DIR="fasta"

while read -r PROT_ID; do
echo "$PROT_ID"
URL="https://www.uniprot.org/uniprot/${PROT_ID}"
URL="http://www.uniprot.org/uniprot/${PROT_ID}.fasta"
echo $URL
OUT_FILE="$OUT_DIR/${PROT_ID}.fasta"
wget -q -o "$OUT_FILE" "$URL"
wget -q -O "$OUT_FILE" "$URL"
done < $1

echo "Done, see output in \"$OUT_DIR\"."

0 comments on commit 6588892

Please sign in to comment.