++ed by:

1 PAUSE user

Bridget McInnes
and 1 contributors


spearmans.pl - This program calculates Spearman's Rank Correlation between two datasets.


This utility takes two files in the format of umls-similarity.pl output and calculates the Spearman's Rank Correlation.


Usage: spearmans.pl [OPTIONS] FILE1 FILE2



Two files in the following format:

score<>CUI1<>CUI2 score<>CUI3<>CUI4 ect ...

The output format of umls-similarity.pl will work here because it extracts the CUIs from the paranthesis, so no worries. If you are not using the CUI format or a umls-similarity.pl output file though, use the --word option described below.

Optional Arguments:

Displays the quick summary of program options.


The format of the input files contains words rather than CUIs and/or is not a umls-similarity.pl output file.


displays N - the number of term pairs the correlation is being calculated over. This would be any term pair that has a score greater than or equal to zero.

--precision NUMBER

Displays values up to NUMBER places of decimal. Default is 4.


Displays the version information.


The Spearman's Rank Correlation between the two files.


  • Perl (version 5.8.5 or better) - http://www.perl.org

  • UMLS::Interface - http://search.cpan.org/dist/UMLS-Interface

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


  If you have any trouble installing and using UMLS-Similarity, 
  please contact us via the users mailing list :
  You can join this group by going to:
  You may also contact us directly if you prefer :
      Bridget T. McInnes: bthomson at cs.umn.edu 

      Ted Pedersen : tpederse at d.umn.edu


 Bridget T. McInnes, University of Minnesota


Copyright (c) 2007-2011,

 Bridget T. McInnes, University of Minnesota
 bthomson at cs.umn.edu
 Ted Pedersen, University of Minnesota Duluth
 tpederse at d.umn.edu

 Siddharth Patwardhan, University of Utah, Salt Lake City
 Serguei Pakhomov, University of Minnesota Twin Cities

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.