Skip to content

Commit a80b780

Browse files
committed
HTTP to HTTPS KEGG update module
1 parent 28e1a2a commit a80b780

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.DS_Store

0 Bytes
Binary file not shown.

class/.DS_Store

0 Bytes
Binary file not shown.

class/lib/.DS_Store

0 Bytes
Binary file not shown.

class/lib/db/update_KEGG.sh

100644100755
+4-4
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
organism=$1;
1616
DIR=$2;
1717
mkdir -p $DIR/class/lib/db/${organism};
18-
TOTAL=$(curl -g -s -S "http://rest.kegg.jp/list/pathway/$organism" | wc -l);
18+
TOTAL=$(curl -g -s -S "https://rest.kegg.jp/list/pathway/$organism" | wc -l);
1919
DT=`/bin/date`;
2020
echo "processing started....$DT";
2121
echo "Retreiving $TOTAL KEGG pathways for $organism";
2222
echo "Do not panic. The processing is going on...";
23-
PATHWAY=$(curl -g -s -S "http://rest.kegg.jp/list/pathway/$organism" | sed "s/path\://" | cut -f1);
23+
PATHWAY=$(curl -g -s -S "https://rest.kegg.jp/list/pathway/$organism" | sed "s/path\://" | cut -f1);
2424
(
2525
for i in $PATHWAY; do
2626
{
2727

28-
t1=$(curl -g -s -S "http://rest.kegg.jp/link/$organism/$i" | sed "s/path\://g" | sed "s/$organism\://g" | awk 'BEGIN{FS="\t"}{ if( !seen[$1]++ ) order[++oidx] = $1; stuff[$1] = stuff[$1] $2 "," } END { for( i = 1; i <= oidx; i++ ) print order[i]"\t"stuff[order[i]] }' | cut -f2 )
28+
t1=$(curl -g -s -S "https://rest.kegg.jp/link/$organism/$i" | sed "s/path\://g" | sed "s/$organism\://g" | awk 'BEGIN{FS="\t"}{ if( !seen[$1]++ ) order[++oidx] = $1; stuff[$1] = stuff[$1] $2 "," } END { for( i = 1; i <= oidx; i++ ) print order[i]"\t"stuff[order[i]] }' | cut -f2 )
2929

30-
t2=$(curl -g -s -S "http://rest.kegg.jp/list/pathway/$organism" | grep -w "$i" | sed "s/path\://" | sed "s/\t/~/" | sed "s/ - /\t/" | cut -f1 | sed "s/ /_/g" )
30+
t2=$(curl -g -s -S "https://rest.kegg.jp/list/pathway/$organism" | grep -w "$i" | sed "s/path\://" | sed "s/\t/~/" | sed "s/ - /\t/" | cut -f1 | sed "s/ /_/g" )
3131

3232

3333

0 commit comments

Comments
 (0)