5 $description_from => [ $feature ]
9 use SGN::View::Feature qw/
10 feature_link cvterm_link organism_link feature_length
14 use CXGN::Page::FormattingHelpers qw/info_table_html/;
15 use CXGN::Tools::Text qw/commify_number/;
18 my $description = join( '<hr />', grep $_, map get_description($_), @$description_from );
19 my ($length,$locations) = feature_length($feature);
20 my $feature_length = commify_number($length) . " bases";
22 $feature_length .= " in $locations location" . ($locations > 1 ? 's' : '');
27 'Name' => feature_link( $feature ),
28 'Type' => cvterm_link( $feature->type, 'caps' ),
29 'Location(s)' => join('', map "<div>$_</div>\n", location_list_html( $feature, $featurelocs )),
30 'Length' => $feature_length,
32 'Organism' => organism_link($feature->organism),
39 'Description' => $description || '<span class="ghosted">none</span>',
43 <& /feature/dbxref.mas, dbxref => $feature->dbxref &>