Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6588892

Browse files
committed
fixed wget command
1 parent 4210579 commit 6588892

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

11_mprt/fetch_fasta.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ OUT_DIR="fasta"
1111

1212
while read -r PROT_ID; do
1313
echo "$PROT_ID"
14-
URL="https://www.uniprot.org/uniprot/${PROT_ID}"
14+
URL="http://www.uniprot.org/uniprot/${PROT_ID}.fasta"
15+
echo $URL
1516
OUT_FILE="$OUT_DIR/${PROT_ID}.fasta"
16-
wget -q -o "$OUT_FILE" "$URL"
17+
wget -q -O "$OUT_FILE" "$URL"
1718
done < $1
1819

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

0 commit comments

Comments
 (0)