Skip to content

Instantly share code, notes, and snippets.

@s4553711
Created July 23, 2013 03:48
Show Gist options
  • Save s4553711/6059718 to your computer and use it in GitHub Desktop.
Save s4553711/6059718 to your computer and use it in GitHub Desktop.
A sample code for parsing KEGG Pathway from KGML
#!/usr/bin/perl
use local::lib;
use utf8;
use Bio::Database::KEGG::Path;
use Data::Dumper;
# input file (KGML file)
my $file = shift;
# parse the pathway info
$kegg = Bio::Database::KEGG::Path->new();
my $data = $kegg->fetch($file);
print Dumper($data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment