7 $build => "dummy_build_test"
8 $genefamily_id => undef
13 <& /page/page_title.mas, title=>'Gene family search' &>
16 <h4>Browse Genefamilies</h4>
23 my $DIR = $c->get_conf('genefamily_dir'); # '/home/mueller/dutch_tomato_assembly/tomato_ara_rice_comparison/';
24 if (!$action) { $action = "input"; }
25 if ($genefamily_id eq '') { $genefamily_id=0; }
28 my @builds = SGN::Genefamily->get_available_builds($DIR);
30 my $select = '<select id="build" name="build">';
32 foreach my $d (@builds) {
33 if ($d eq $build) { $selected="selected=\"selected\" "; }
34 else { $selected= ""; }
35 $select .= qq | <option value="$d" $selected>$d</option> |;
37 $select .= "</select>";
39 print $select."<br /><br />";
44 <table id="genefamily_datatable">
46 <th>Genefamily ID</th><th>Sequences</th><th>Alignments</th><th>Trees</th><th>Member Count</th><th>Members</th></thead>
55 jQuery(document).ready( function() {
57 var build = jQuery('#build option:selected').val();
58 //alert('using build '+build);
59 jQuery('#genefamily_datatable').dataTable( {
60 ajax: '/ajax/tools/genefamily/table?build='+build,
63 { "bSearchable" : true,
80 use File::Spec::Functions;