This directory contains various example client scripts that can be used to access the functionality of of the GO::TermFinder and related modules, that provide a rich API for accessing information from the Gene Ontology project. These examples serve the purpose of providing useful example code for people who wish to write alternate clients of these objects, as well as providing useful functionality in their own right. Before running any of the example programs, you should first install the GO::TermFinder modules, according to the instructions in the README file. Also, see the associated pod for each example program for more information about that particular program. The example client programs are:
This program takes a list of files, each of which contain a list of genes, with one gene per line. It will findTerms for the lists of genes in each of the GO aspects, outputting the results to a file named for the original file, but with a .terms extension. It will only output terms with a corrected P-value of <= 0.05. It will use the first supplied argument as the annotation file, the second argument as the expected number of genes within the organism, and all subsequent files as ones containing lists of genes. You need to provide the ontology files in the same directory from which you are executing this script, and the GO-TermFinder libraries must be in your path. Usage: analyze.pl <annotation_file> <numGenes> <file1> <file2> <file3> ... <fileN> e.g. analyze.pl gene_association.sgd 7200 file1.txt file2.txt file3.txt ancestors.pl simply takes as input a GOID, and an ontology file, and prints out the all the paths from that GO node to the root of the ontology, e.g: >ancestors.pl GO:0008346 ../t/process.ontology GO:0003673 Gene_Ontology GO:0008150 biological_process GO:0007610 behavior GO:0030537 larval behavior GO:0008345 larval locomotory behavior GO:0008346 larval walking behavior GO:0003673 Gene_Ontology GO:0008150 biological_process GO:0007610 behavior GO:0007626 locomotory behavior GO:0008345 larval locomotory behavior GO:0008346 larval walking behavior batchGoView.pl will read through a number of files, each containing a list of genes, and will create for each one an html page with a GO::View, such that you can graphically browse the results. You need to provide a .conf file, and then a list of files for processing, each of which contain a list of genes. An example .conf file exists in this directory - edit as appropriate. The following usage should give you some output, using the example files. Usage: batchGOView.pl <.conf_file>> <file1>> <file2> <file3> ... <fileN> e.g. batchGOView.pl GoView.conf genes.txt genes2.txt
Notes about the conf file: name = valuelines beginning with # are comment lines. See the example .conf file in the same directory as this html file. Output from batchGOView.pl looks something like: Terms for genes.txt![]() Result Table
|