This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How Many Human Pathways Exist In Kegg Database?

How to know how many Human pathways exist in the KEGG database?

If I search THIS PAGE with 'hsa'(Homo sapiens) in the organism field and keeping the keyword field blank it returns 236. Is this the correct way to find it?

kegg pathway database

6 answers

Hi, I think you could use the APIs in KEGG.For example to get the total numbers of genes in hsa00010.The code is written in Perl:

#!/usr/bin/env perl
use SOAP::Lite +trace => [qw(debug)];
my $serv = SOAP::Lite -> service("http://soap.genome.jp/KEGG.wsdl");
my $result = $serv->get_genes_by_pathway('path:hsa00010');
my $count = 0;
foreach (@{$result}){
    print $_,"\n";
    $count += 1;
}
print $count,"\n";

The answer is 65.

Many Thanks !!!!

+1 for KEGG API, that's a neat resource !

KEGG now operates with REST instead of SOAP. Could be done in a feasible way. But I did this:

wget -O http://rest.kegg.jp/link/pathway/hsa >HSA.txt ##Saving the file
cut -d "      " -f 2 HSA.txt | cut -d ":" -f 2 | sort -u | wc -l ## counting the pathways in Human
283 (pathways in Human in KEGG at present)

~Prakki Datta

Yes, this is the correct number of pathways for human in KEGG and it is also the right way to find them.

I guess D-Horse was faster with providing an answer.. :)

You are correct. The answer now is 260.

You can also use perl script to do this:

#!/usr/bin/env perl

use SOAP::Lite;
$wsdl = 'http://soap.genome.jp/KEGG.wsdl';

$results = SOAP::Lite
-> service($wsdl)
-> list_pathways("hsa");

my $file_name = "kegg_hsa_pathways.txt";

if (open (OUTFILE, '>'.$file_name))
{
    foreach $path (@{$results}) {
        print OUTFILE "$path->{entry_id}\t$path->{definition}\n";
    }
    close(OUTFILE);

    print "Content writtent to $file_name!"
}
else{
    die "Error: Error occur in  writing to file\n";
}

how one can compare pathway of human and pathogen [e.g.mycoplasma]??

can any one say me or else reply me on chintan_biotech@yahoo.com

If you need their graphs, I generated them in dot format.

https://github.com/haluk/kegg

Log in to answer this question.