6 /markers/derivation.mas - a Mason component displaying information about how a marker was derived.
16 $marker - a CXGN::Marker object.
22 Lukas Mueller <lam87@cornell.edu>
34 use CXGN::Page::FormattingHelpers qw | info_section_html |;
35 #sgn id, collections, and sources
37 my $sources=$marker->derived_from_sources();
38 if($sources and @{$sources}) {
39 for my $source(@{$sources}) {
41 if($source->{id_in_source}) {
42 if($source->{source_name} eq 'SGN unigene') {
43 $link="<a href=\"/search/unigene.pl?unigene_id=$source->{id_in_source}\">$source->{source_name} SGN-U$source->{id_in_source}</a>";
45 elsif($source->{source_name} eq 'EST read') {
46 $link="<a href=\"/search/est.pl?request_from=0&request_id=SGN-E$source->{id_in_source}&request_type=7&search=search\">EST read SGN-E$source->{id_in_source}</a>";
48 elsif($source->{source_name} eq 'EST clone') {
49 $link="<a href=\"/search/est.pl?request_from=0&request_id=SGN-C$source->{id_in_source}&request_type=8&search=search\">EST clone SGN-C$source->{id_in_source}</a>";
51 elsif($source->{source_name} eq 'BAC') {
52 my $clone=CXGN::Genomic::Clone->retrieve($source->{id_in_source});
53 my $bac_name=$clone->clone_name();
54 $link="<a href=\"/maps/physical/clone_info.pl?id=$source->{id_in_source} \">BAC $bac_name</a>";
58 $link="a(n) $source->{source_name} (ID unknown)";
61 $about_html.="This marker was derived from $link<br />";
66 print info_section_html(title=>'Derivations',contents=>$about_html);