in reply to Re^3: Statistics via hash- NCBI BLAST Tab Delimited file
in thread Statistics via hash- NCBI BLAST Tab Delimited file
With a comma separated values file format, you could open the files in Excel, (if you are on a Windows machine), and, if there is a large dataset, (more than a couple of pages), you can freeze the headers in Excel while still scrolling your data.
If your results will have many lines of results, with Perl6::Form, you could arrange headers to print after so many lines.
I say that about Text::Table because I'm guessing your results will be more than a couple of pages. If not, Text::Table would be OK.
If there are alot of rows to print, you might want to print your header for every (50?) lines or so to aid your readers. A way to do it below:
Instead of print $tb at the end of your script, the following would repeat the header every 50 lines.
my $rows = $tb->body_height(); $pagelines = 50; for my $i (0 .. $rows-1) { print $tb->title() if $i % $pagelines == 0; print $tb->body($i); print "\n" if $i % $pagelines == $pagelines-1; }
Chris
Update: set rows to the number of rows in table.
I was getting the number of items from keys %freq.
|
|---|