« blib/conf/plugins/SimpleTrackFinder.pm
↑ Summary
blib/htdocs/example_scripts/gbrowse_get_sessionid.pl »
| 1 | package Bio::Graphics::Browser2::Plugin::test; | ||
| 2 | # $Id: test.pm,v 1.1 2002-03-25 05:31:45 lstein Exp $ | ||
| 3 | # test plugin | ||
| 4 | use strict; | ||
| 5 | use Bio::Graphics::Browser2::Plugin; | ||
| 6 | use CGI qw(param url header p); | ||
| 7 | |||
| 8 | use vars '$VERSION','@ISA'; | ||
| 9 | $VERSION = '0.10'; | ||
| 10 | |||
| 11 | @ISA = qw(Bio::Graphics::Browser2::Plugin); | ||
| 12 | |||
| 13 | sub name { "Test" } | ||
| 14 | sub description { | ||
| 15 | p("This is the Test plugin, used to test that the dump architecture is working properly."); | ||
| 16 | } | ||
| 17 | sub dump { | ||
| 18 | my $self = shift; | ||
| 19 | my $segment = shift; | ||
| 20 | print header('text/plain'); | ||
| 21 | my $dna = $segment->dna; | ||
| 22 | $dna =~ s/(.{1,60})/$1\n/g; | ||
| 23 | print ">$segment\n"; | ||
| 24 | print $dna; | ||
| 25 | } | ||
| 26 | |||
| 27 | 1; |