[Bio] / FigTutorial / code_to_invoke_compare_regions.html Repository:
ViewVC logotype

Annotation of /FigTutorial/code_to_invoke_compare_regions.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (view) (download) (as text)

1 : overbeek 1.1 <h1>How to Create a Comparison of Chromosomal Regions for a Set of PEGs</h1>
2 :     There are points where you might wish to get code to display regions surrounding a set of PEGs. If you
3 :     find yourself in that position try the following:
4 :     <pre>
5 :     $ENV{'REQUEST_METHOD'} = 'GET';
6 :    
7 :     # @pegs should contain the list of PEGs.
8 :    
9 :     $parms = 'sim_cutoff=1.0e-5&pinned_to=' . join('&pinned_to=',@pegs);
10 :     $ENV{'QUERY_STRING'} = $parms;
11 :     @out = `./chromosomal_clusters.cgi 2> /dev/null`;
12 :     for ($i=$#out; ($i >= 0) && ($out[$i] !~ /^Content-Type/); $i--) {}
13 :     splice(@out,0,$i);
14 :     </pre>
15 :     At this point <b>@out</b> should contain the HTML required to show the regions.
16 :    

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3