[Bio] / FigTutorial / show_similarities.pl Repository:
ViewVC logotype

View of /FigTutorial/show_similarities.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (download) (as text) (annotate)
Thu Jun 10 13:39:16 2004 UTC (15 years, 5 months ago) by olson
Branch: MAIN
CVS Tags: merge-bodev_news-3, rast_rel_2014_0912, rast_rel_2008_06_18, rast_rel_2008_06_16, rast_rel_2008_07_21, rast_rel_2010_0928, rast_2008_0924, Root-bobdev_news, rast_rel_2008_09_30, caBIG-13Feb06-00, rast_rel_2010_0526, rast_rel_2014_0729, merge-trunktag-bobdev_news-1, rast_rel_2009_05_18, caBIG-05Apr06-00, rast_rel_2009_0925, rast_rel_2010_1206, rast_rel_2010_0118, caBIG-00-00-00, rast_rel_2009_02_05, rast_rel_2011_0119, rast_rel_2008_12_18, merge-trunktag-bodev_news-3, merge-bobdev_news-2, merge-bobdev_news-1, rast_rel_2008_10_09, rast_release_2008_09_29, rast_rel_2008_04_23, rast_rel_2008_08_07, rast_rel_2009_07_09, rast_rel_2010_0827, myrast_33, rast_rel_2011_0928, rast_rel_2008_09_29, rast_rel_2008_10_29, rast_rel_2009_03_26, merge-trunktag-bobdev_news-2, rast_rel_2008_11_24, HEAD
Branch point for: Branch-bobdev_news
Changes since 1.1: +0 -14 lines
clean up tutorial code

use FIG;
my $fig = new FIG;
use Sim;

use strict;

my($usage,$peg,$cutoff,$max,$expand);
my(@sims,$sim,$id2,$pscore,$iden,$b1,$e1,$b2,$e2,$ln1,$ln2,$func1,$func2);

$usage = "usage: show_similarities PEG CutOff MaxReturned Expand";

(
 ($peg    = shift @ARGV) &&
 ($cutoff = shift @ARGV) &&
 ($max    = shift @ARGV) &&
 defined($expand = shift @ARGV)
)
    || die $usage;

@sims = $fig->sims($peg,$max,$cutoff,"all",$expand);
foreach $sim (@sims)
{
    $ln1    = $sim->ln1;
    $id2    = $sim->id2;
    $ln2    = $sim->ln2;
    $pscore = $sim->psc;
    $iden   = $sim->iden;
    $b1     = $sim->b1;
    $e1     = $sim->e1;
    $b2     = $sim->b2;
    $e2     = $sim->e2;
    $func2  = $fig->function_of($id2);
    print join("\t",($ln1,$id2,$ln2,$pscore,$iden,$b1,$e1,$b2,$e2,$func2)),"\n";
}

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3