NAME

WWW::Search::PharmGKB - Search and retrieve information from the PharmGKB database

VERSION

Version 2.00

SYNOPSIS

use WWW::Search::PharmGKB;
use Data::Dumper;
my $foo = WWW::Search::PharmGKB->new();
my $search_result = $foo->gene_search('CYP2D6');
print Dumper $search_result;

METHODS

new

Usage:

    $foo = WWW::Search::PharmGKB->new();
	    or
    $foo = new WWW::Search::PharmGKB;

Returns:

Self

Usage:

$foo->gene_search(<gene_name>);

Returns:

A referenced hash. The keys are 'drugs', 'name', 'symbol', 'pathways',
'drugs', 'diseases', 'phenotypes', 'alternate_names', 'alternate_symbols'

Note:

all the keys contain referenced arrays as values. In the pathway value,
the array has  key => value pairs 'pathway' => 'pharmGKB URL' as elements.
All other keys have referenced array of PharmGKB IDs.

Usage:

$foo->disease_search(<disease_name>);

Returns:

A referenced hash of pharmGKB IDs. Each ID contains 'drugs', 'names', 'pathways', 'drugs',
'genes', 'phenotypes'.

Note:

all the keys contain referenced arrays as values. in the pathway value,
the array has  key => value pairs 'pathway' => 'pharmGKB URL' as elements.
All other keys have referenced array of PharmGKB IDs.

Usage:

$foo->drug_search(<drug_name>);

Returns:

A referenced hash of pharmGKB IDs. Each ID contains 'diseases', 'generic_names', 'trade_names',
'pathways', 'genes', 'phenotypes', 'category', 'classification'

Note:

all the keys contain referenced arrays as values. in the pathway value,
the array has  key => value pairs 'pathway' => 'pharmGKB URL' as elements.
All other keys have referenced array of PharmGKB IDs.

Usage:

$foo->publication_search(<something>);

Returns:

A referenced hash of pharmGKB IDs. Each ID contains 'authors', 'page',
'volume', 'month', 'grant_id', 'cross_reference', 'title', 'abstract', 'year',
'journal'.

AUTHOR

Arun Venkataraman, <arvktr at gmail.com>

BUGS

Please report any bugs or feature requests to bug-www-search-pharmgkb at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Search-PharmGKB. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc WWW::Search::PharmGKB

You can also look for information at:

You can contact the author for any issues or suggestions you come accross using this module.

ACKNOWLEDGEMENTS

This module is based on the perl client written by Andrew MacBride (andrew@helix.stanford.edu) for PharmGKB's web services.

COPYRIGHT & LICENSE

Copyright 2010 Arun Venkataraman arvktr@gmail.com, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.