GO::TermFinderReport::Html - prints an html table of the results of GO::TermFinder


GO-TermFinder documentation  | view source Contained in the GO-TermFinder distribution.

Index


NAME

Top

GO::TermFinderReport::Html - prints an html table of the results of GO::TermFinder

DESCRIPTION

Top

This print() method of this Perl module receives a reference to an the array that is the return value from the findTerms method of GO::TermFinder, the aspect for which terms were found, the number of genes that were used to generate the terms, and the number of genes that were said to be in the genome. It will then generate an html table that summarizes those results. Optionally, filehandle, p-value cutoff, gene URL, and GOID URL arguments may also be passed in. Url links should have the string <REPLACE_THIS> to indicate where the gene name, or GOID should be put.

SYNOPSIS

Top

    use GO::TermFinder;
    use GO::TermFinderReport::Html;

    .
    .
    .

    my @pvalues = $termFinder->findTerms(genes=>\@genes);

    my $report  = GO::TermFinderReport::Html->new();

    open (HTML, ">blah.html");

    print HTML "<html><body>";

    my $numRows = $report->print(pvalues  => \@pvalues,
                                 aspect   => $aspect,
                                 numGenes => scalar(@genes),
                                 totalNum => $totalNum,
                                 fh       => \*HTML,
                                 cutoff   => 0.01,
                                 geneUrl  => 'http://db.yeastgenome.org/cgi-bin/SGD/locus.pl?locus=<REPLACE_THIS>',
                                 goidUrl  => 'http://amigo.geneontology.org/cgi-bin/amigo/go.cgi?view=details&search_constraint=terms&depth=0&query=<REPLACE_THIS>');

    print HTML "</body></html>";

    close HTML;

new

This is the constructor.

Usage:

    my $report = GO::TermFinderReport::Html->new();

A GO::TermFinderReport::Html object is returned.

print

AUTHOR

Top

Gavin Sherlock

sherlock@genome.stanford.edu


GO-TermFinder documentation  | view source Contained in the GO-TermFinder distribution.