Bridget McInnes > UMLS-Interface > UMLS::Interface::STFinder

Download:
UMLS-Interface-1.41.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

UMLS::Interface::STFinder - provides the semantic type path information for the modules in the UMLS::Interface package.

DESCRIPTION ^

This package provides the path information about semantic types in the UMLS Semantic Network for the modules in the UMLS::Interface package.

For more information please see the UMLS::Interface.pm documentation.

SYNOPSIS ^

 use UMLS::Interface::CuiFinder;
 use UMLS::Interface::STFinder;
 use UMLS::Interface::ErrorHandler;

 %params = ();

 $params{'realtime'} = 1;

 $cuifinder = UMLS::Interface::CuiFinder->new(\%params);
 die "Unable to create UMLS::Interface::CuiFinder object.\n" if(!$cuifinder);

 $stfinder = UMLS::Interface::STFinder->new(\%params, $cuifinder); 
 die "Unable to create UMLS::Interface::STFinder object.\n" if(!$stfinder);

 my $cell = "T025";
 my $bpoc = "T023";

 my $paths = $stfinder->_pathsToRoot($cell);
 print "The paths between cell ($cell) and the root:\n"; 
 foreach my $path (@{$paths}) { 
    print " => $path\n";
 }

 print "\n\n";
 my $spaths = $stfinder->_findShortestPath($cell, $bpoc);
 print "The paths between cell ($cell) and bpoc ($bpoc): \n";
 foreach my $path (@{$spaths}) { 
    print " => $path\n";
 }

INSTALL ^

To install the module, run the following magic commands:

  perl Makefile.PL
  make
  make test
  make install

This will install the module in the standard location. You will, most probably, require root privileges to install in standard system directories. To install in a non-standard directory, specify a prefix during the 'perl Makefile.PL' stage as:

  perl Makefile.PL PREFIX=/home/sid

It is possible to modify other parameters during installation. The details of these can be found in the ExtUtils::MakeMaker documentation. However, it is highly recommended not messing around with other parameters, unless you know what you're doing.

SEE ALSO ^

http://tech.groups.yahoo.com/group/umls-similarity/

http://search.cpan.org/dist/UMLS-Similarity/

AUTHOR ^

Bridget T McInnes <bthomson@cs.umn.edu> Ted Pedersen <tpederse@d.umn.edu>

COPYRIGHT ^

 Copyright (c) 2007-2009
 Bridget T. McInnes, University of Minnesota
 bthomson at cs.umn.edu

 Ted Pedersen, University of Minnesota Duluth
 tpederse at d.umn.edu

 Serguei Pakhomov, University of Minnesota Twin Cities
 pakh0002 at umn.edu

 Ying Liu, University of Minnesota Twin Cities
 liux0395 at umn.edu

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to

 The Free Software Foundation, Inc.,
 59 Temple Place - Suite 330,
 Boston, MA  02111-1307, USA.
syntax highlighting: