You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# ! go to folder with DockerFileexport TABLE= ! fill in full path !# build docker
docker build -t kegg_pathways .# run docker
docker \
run \
-i \
--workdir=/results \
--volume=`pwd`/results:/results:rw \
--volume=${TABLE}:/files/table_file.txt:ro \
kegg_pathways:latest \
/tools/run_pathways.sh \
-i \
/files/table_file.txt
# Results fould be in folder "results". Final annotated pathways would be in folder "results/pathways":
file with "_pathways" - results by all contigs
Prepare files from KEGG (all these files could be found in pathways folder)
# download list of all pathways
curl -s http://rest.kegg.jp/list/module | cut -f1 | cut -c 4- > pathways/list_pathways.txt
# get DEFINITION file with pathway from KEGG file (saving in format: <name:pathway>)
cat pathways/list_pathways.txt |whileread line;doecho"$line:"&& curl -s http://rest.kegg.jp/get/$line| grep ^DEFINITION | cut -c 13-;done| sed -z 's|:\n|:|g'> pathways/all_pathways.txt
# !!! TODO make sure that each pathway has only KO-s but not other MO-s
parallel -k echo -n '{}:'';' curl -s http://rest.kegg.jp/get/{} '|' grep ^NAME '|' cut -c 13- :::: pathways/list_pathways.txt > pathways/all_pathways_names.txt
# taking CLASS
parallel -k echo -n '{}:'';' curl -s http://rest.kegg.jp/get/{} '|' grep ^CLASS '|' cut -c 13- :::: pathways/list_pathways.txt > pathways/all_pathways_class.txt