[Bio] / FigKernelScripts / sphinx_index_genome.pl Repository:
ViewVC logotype

Diff of /FigKernelScripts/sphinx_index_genome.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8, Sat May 7 23:27:39 2011 UTC revision 1.9, Wed May 18 18:49:26 2011 UTC
# Line 20  Line 20 
20  }  }
21  elsif ($which eq 'genome')  elsif ($which eq 'genome')
22  {  {
23      @fields = qw(genome name taxonomy);      @fields = qw(genome name taxonomy contigs);
24      $attr_types{$_} = "attr=\"string\"" for qw(genome name);      $attr_types{$_} = "attr=\"string\"" for qw(genome name);
25  }  }
26  elsif ($which eq 'attrib')  elsif ($which eq 'attrib')
# Line 173  Line 173 
173      {      {
174          my $gs = escape($fig->genus_species($g));          my $gs = escape($fig->genus_species($g));
175          my $tax =escape($fig->taxonomy_of($g));          my $tax =escape($fig->taxonomy_of($g));
176    
177            my $contigs = escape(join(" ", $fig->all_contigs($g)));
178    
179          print "<sphinx:document id=\"$i\">\n";          print "<sphinx:document id=\"$i\">\n";
180    
181          print "<genome>$g</genome>\n";          print "<genome>$g</genome>\n";
182          print "<name>$gs</name>\n";          print "<name>$gs</name>\n";
183            print "<contigs>$contigs</contigs>\n";
184          print "<taxonomy>$tax</taxonomy>\n";          print "<taxonomy>$tax</taxonomy>\n";
185          print "</sphinx:document>\n";          print "</sphinx:document>\n";
186          $i++;          $i++;

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3