1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339
|
use CGI 'escape','img';
# here's the root of all our stuff
$ROOT = '/perl/ace/elegans';
$WB = '/wormbase'; # The root is at the top level
# ========= $NAME =========
# symbolic name of the database (defaults to name of file, lowercase)
$NAME = 'elegans';
# ========= $HOST =========
# name of the host to connect to
#$HOST = 'brie2.cshl.org';
#$HOST = 'stein.cshl.org';
$HOST = 'localhost';
#$HOST = 'brie.cshl.org';
# ========= $PORT =========
# Port number to connect to
$PORT = 2005;
# ========= $STYLESHEET =========
# stylesheet to use
$STYLESHEET = "$WB/stylesheets/wormdb.css";
# ========= $PICTURES ==========
# Where to write temporary picture files to:
# The URL and the physical location, which must be writable
# by the web server.
@PICTURES = ('/ace_images' => '/var/tmp/ace_images');
# This controls at what point the "pic" script should stop making individually-clickable
# elements.
$MAX_IN_COLUMN = 100;
# location of random pictures to display on certain pages
$RANDOM_PICTS = "$WB/random_pic";
$PIC_SCRIPT = "$ROOT/misc/random_pic";
#========================= WORMBASE-SPECIFIC CONFIGURATION ==================
# ========== An icon to use for "home" ==========
# leaving this undefined suppresses the generation of a "home" link
# $HOME_ICON = "$ICONS/arrows/uarrw.gif";
# ========= An icon to use for searching =======
# leaving this undefined suppresses the generation of a "search" link
# $SEARCH_ICON = "$ICONS/unknown.gif";
# position of the big banner
$BANNERS = "$WB/banners";
$BANNERS = "$WB/banners";
@BANNER_SIZE = (640,56);
# fixed width for the page
$PAGEWIDTH = 660;
# position of the "cross"
$CROSS_ICON = "$WB/images/cross1.gif";
$ARROWR_ICON = "$WB/images/arrow_right.gif";
$ARROWL_ICON = "$WB/images/arrow_left.gif";
# position of neuron diagrams
$NEURON_DIAGRAMS = "$WB/cell/diagrams";
# ======== BLAST DATABASES ===========
# location of BLAST databases
$BLAST_ROOT = '/usr/local/wublast';;
$BLAST_BIN = "$BLAST_ROOT/bin/";
$BLAST_MATRIX = "$BLAST_ROOT/matrix";
$BLAST_FILTER = "$BLAST_ROOT/filter";
$BLAST_DB = "/usr/local/acedb/elegans/blast";
$BLAST_CUTOFF = 0.001;
$BLAST_MAXHITS = 20;
@BLAST_default = ('blastp' => 'WormPep');
%BLAST_labels = ('EST_Elegans' => 'elegans ESTs',
'Elegans' => 'elegans genomic',
'WormPep' => 'WormPep');
%BLAST_ok = ('blastn' => [qw/Elegans EST_Elegans/],
'tblastn' => [qw/Elegans EST_Elegans/],
'blastp' => [qw/WormPep/],
'blastx' => [qw/WormPep/]
);
# ========= $BANNER =========
# Banner HTML
# This will appear at the top of each page.
$BANNER = 'WormBase';
# ========= $FOOTER =========
# Footer HTML
# This will appear at the bottom of each page
# $FOOTER = img({-src=>"$WORMBASE/images/foot_logo.gif"});
$MY_FOOTER = a({-href=>'http://stein.cshl.org/'},
img({-border=>0,-src=>"$WB/images/foot_logo2.gif"})
);
# ========= @SEARCHES =========
# search scripts available
# NOTE: the order is important
@SEARCHES = (
basic => { name => 'Simple Search',
url => "$ROOT/searches/basic",
onimage => "$WB/buttons/basic_on.gif",
offimage => "$WB/buttons/basic_off.gif",
#width, height
size => [109,20], },
expr_search => { name => 'Expr. Pattern Search',
url => "$ROOT/searches/expr_search",
onimage => "$WB/buttons/expr_on.gif",
offimage => "$WB/buttons/expr_off.gif",
size => [147,20], },
hunter => { name => 'Gene Hunter',
url => "$ROOT/hunter/hunter.cgi",
onimage => "$WB/buttons/hunter_on.gif",
offimage => "$WB/buttons/hunter_off.gif",
size => [100,20], },
# browser => { name => 'Class Browser',
# url => "$ROOT/searches/browser",
# onimage => "$WB/buttons/browser_on.gif",
# offimage => "$WB/buttons/browser_off.gif",
# size => [100,20], },
blast => { name => 'Blast Search',
url => "$ROOT/searches/blast",
onimage => "$WB/buttons/blast_on.gif",
offimage => "$WB/buttons/blast_off.gif",
size => [99,20], },
advanced => { name => 'Advanced Search',
url => "$ROOT/searches/query",
onimage => "$WB/buttons/advanced_on.gif",
offimage => "$WB/buttons/advanced_off.gif",
size => [129,20], },
atlas => { name => 'Worm Atlas',
url => "$WB/atlas/atlas.html",
onimage => "$WB/buttons/atlas_on.gif",
offimage => "$WB/buttons/atlas_off.gif",
size => [46,20], },
);
# ========= %HOME =========
# Home page URL
@HOME = (
'http://www.wormbase.org' => 'WormBase home'
);
@HOME_BUTTON = ("$WB/buttons/home_bottom.gif" => [20,56]);
# ========= %DISPLAYS =========
%DISPLAYS = (
gene => {'url' => "$ROOT/gene/locus",
'label' => 'Gene Report'},
cell => {'url' => "$ROOT/cell/cell.cgi",
'label' => 'Cell Summary'},
pedigree => {'url' => "$ROOT/cell/pedigree",
'label' => 'Pedigree Browser'},
mappingdata => {'url' => "$ROOT/gene/mapping_data",
'label' => 'Map Data'},
biblio => {'url' => "$ROOT/misc/biblio",
'label' => 'Bibliography'},
nearby_genes => {'url' =>"$ROOT/gene/genetable#pos",
'label' => 'Nearby Genes'},
geneapplet => {'url' =>"$ROOT/gene/geneapplet",
'label' => 'Interactive Map'},
hunter => {'url' =>"$ROOT/hunter/hunter.cgi",
'label' => 'Genome Hunter'},
sequence => { 'url' => "$ROOT/seq/sequence",
'label' => 'Sequence Report'},
author => { 'url' => "$ROOT/misc/author",
'label' => 'Author Info'},
biblio => {'url' => "$ROOT/misc/biblio",
'label' => 'Bibliography'},
clone => {'url' => "$ROOT/seq/clone",
'label' => 'Clone Report'},
paper => {'url' => "$ROOT/misc/paper",
'label' => 'Citation'},
laboratory => { 'url' => "$ROOT/misc/laboratory",
'label' => 'Lab Listing'},
expr_pattern => { 'url' => "$ROOT/gene/expression",
'label' => 'Expression Pattern'},
tree => { 'url' => "$ROOT/misc/etree",
'label' => 'Tree Display'},
xml => { 'url' => "$ROOT/misc/xml",
'label' => 'XML Dump'},
pic => { 'url' => "$ROOT/misc/epic",
'label' => 'Graphic Display'},
align => { 'url' => "$ROOT/seq/align",
'label' => 'alignment'},
);
# ========= %CLASSES =========
# displays to show
%CLASSES = (
# There are three representations of Locus, in addition to the basic ones
Locus => [ qw/gene mappingdata nearby_genes hunter biblio geneapplet/ ],
# there are two representations of sequence, in addition to the basic ones
Sequence => [ qw/sequence nearby_genes hunter/ ],
# two representations of Author
Author => [ qw/author biblio/ ],
# one representation of Clone, Paper, Laboratory, and Expr_pattern
Clone => [ 'clone' ],
Paper => [ 'paper' ],
Cell => [ 'cell','pedigree' ],
Map => [ 'pic', 'geneapplet' ],
Laboratory => [ 'laboratory' ],
Expr_pattern => [ 'expr_pattern' ],
# default has special meaning
Default => [ qw/tree xml pic/ ],
);
# ========= &URL_MAPPER =========
# mapping from object type to URL. Return empty list to fall through
# to default.
sub URL_MAPPER {
my ($display,$name,$class) = @_;
# Small Ace inconsistency: Models named "#name" should be
# transduced to Models named "?name"
$name = "?$1" if $class eq 'Model' && $name=~/^\#(.*)/;
my $n = escape($name);
my $c = escape($class);
my $qs = "name=$n";
my $qsc = "name=$n&class=$c";
return (laboratory => $qs) if $class eq 'Laboratory';
return (paper => $qs) if $class eq 'Paper';
return (biblio => "$qs&class=Keyword") if $class eq 'Keyword';
return (clone => $qs ) if $class eq 'Clone';
return (gene => $qs ) if $class eq 'Locus';
return (sequence => $qs ) if $class eq 'Sequence';
return (expr_pattern => $qs) if $class eq 'Expr_pattern';
return (author => $qs ) if $class eq 'Author';
return (tree => $qsc) if $class eq 'Metabolite';
return (cell => $qs) if $class eq 'Cell';
if ($class eq 'Pathway') {
return (pic => $qsc ) if $name =~ /^\*/;
return (tree => $qsc) if $name !~ /^\*/;
}
# maps are always displayed graphically by default
return (pic => $qsc ) if $class =~ /map/i;
# pictures remain pictures
return (pic => $qsc ) if $display eq 'pic';
return (tree => $qsc );
}
# ========= Configuration information for the simple search script
@SIMPLE = ('Any' => '<i>Anything</i>',
'Accession_number' => 'Genbank Accession Number',
'Author' => 'Author',
'Cell' => 'Cell',
'Clone' => 'Clone',
'Locus' => 'Confirmed Gene',
'Genetic_map' => 'Genetic Map',
'Predicted_gene' => 'Predicted Gene',
'Sequence' => 'Sequence (any)',
'Genome_sequence', => 'Sequence (genomic)',
'Sequence_map' => 'Sequence Map',
'Strain' => 'Worm Strain',
);
# Jalview configuration information
$JALVIEW = '/applets/jalview.jar';
$JALVIEW_MAIL = 'beta.crbm.cnrs-mop.fr';
$JALVIEW_HELP = 'http://circinus.ebi.ac.uk:6543/jalview/help.html';
# Meow configuration
$MEOW_CONFIRMED = 'http://iubio.bio.indiana.edu/meow/.bin/moquery?dbid=ACEDB:';
$MEOW_PREDICTED = 'http://iubio.bio.indiana.edu/meow/.bin/moquery?dbid=ACEPRED:';
# ========= Configuration information for the feedback script
@FEEDBACK_RECIPIENTS = (
[ ' Paul Sternberg <pws@its.caltech.edu>' => 'general complaints and suggestions'=>1 ],
[ ' Lincoln Stein <lstein@cshl.org>' => 'user interface' ],
[ ' Norma Foltz <norma@caltech.edu>' => 'cells and expression patterns' ],
[ ' Jonathan Hodgkin & Sylvia Martinelli <cgc@mrc-lmb.cam.ac.uk>' => 'genetic data; gene names'],
[ ' wormbase@caltech.edu ' => 'gene regulation and interactions' ],
[ ' Sylvia Martinelli <cgc@mrc-lmb.cam.ac.uk>' => 'addresses' ],
[ ' Theresa Stiernagle <stier@biosci.cbs.umn.edu>' => 'strains, bibliographic references' ],
[ ' Richard Durbin <rd@sanger.ac.uk>' =>'systematic genome sequence analysis, acedb problems' ],
[ ' Danielle & Jean Thierry-Mieg <mieg@ncbi.nlm.nih.gov>' => 'gene structures, ESTs and new largescale datasets' ],
[ ' John Spieth <jspieth@watson.wustl.edu>' => 'St. Louis sequence annotations; gene structures' ],
[ ' worm@sanger.ac.uk' => 'Cambridge sequence annotations; gene structures' ],
[ ' Alan Coulson <alan@sanger.ac.uk> ' => 'physical map' ],
);
@FEEDBACK_CHECKED = (0); # number zero is paul
# position of the chromosome tables, in URL space
$CHROMOSOME_TABLES = "$WB/chromosomes";
$CHROMOSOME_TABLE_LENGTH = 2_000_000;
# all-important copyright statement
$COPYRIGHT = "$WB/copyright.html";
# ========= transcript script ===========
# dimensions of the transcript picture shown in the sequence screen
@TRANSCRIPT_DIMENSIONS = ($PAGEWIDTH,150);
$TRANSCRIPT_HEIGHT = 10;
# ======== geneapplet script ==========
$JADEX_PORT = 2005;
$JADEX_PATH = '/applets/jadex.jar';
$JADEX_IMAGE = "$WB/images/geneticMapApplet.gif";
# ======== promoter motif search script ==========
$PROMOTER_DB = "$WB/chromosomes/promoters.db";
|