added a comment section..
[sgn.git] / mason / markers / kfg.mas
blobedf738557f3ebae3e260bb088d1f7b86e85abd2c
2 <%doc>
4 =head1 NAME
6 /markers/kfg.mas - a Mason component displaying information about kfg (known function genes) markers
8 =head1 DESCRIPTION
10 takes the parameter $marker - a CXGN::Marker object.
12 =head1 AUTHOR
14 Lukas Mueller <lam87@cornell.edu>
16 =cut
18 </%doc>
20 <%args>
21 $marker
22 </%args>
24 <%perl>
27   # prints a link to the gene page if this marker maps to a gene 
28   # (KFG = Known Function Gene)
30   my @loci = $marker->associated_loci();
32 my $html = '';
33 foreach my $l (@loci) { 
34   my ($locus_id, $locus_name) = ($l->[0], $l->[1]);
36     $html .= qq{This marker is associated with the <a href="/phenome/locus_display.pl?locus_id=$locus_id">$locus_name</a> locus.<br />};
37   }
39   return $html.'<br />';
42 </%perl>