Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(42) |
Dec
(93) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(74) |
Feb
(149) |
Mar
(202) |
Apr
(94) |
May
(113) |
Jun
(88) |
Jul
|
Aug
(13) |
Sep
(25) |
Oct
(44) |
Nov
(25) |
Dec
(12) |
2007 |
Jan
(8) |
Feb
(13) |
Mar
(6) |
Apr
(13) |
May
(35) |
Jun
(74) |
Jul
(61) |
Aug
(47) |
Sep
(17) |
Oct
(3) |
Nov
(1) |
Dec
|
2008 |
Jan
(3) |
Feb
(12) |
Mar
(12) |
Apr
|
May
(7) |
Jun
(27) |
Jul
(13) |
Aug
(24) |
Sep
(3) |
Oct
(17) |
Nov
(2) |
Dec
(2) |
2009 |
Jan
(3) |
Feb
(3) |
Mar
(4) |
Apr
|
May
(33) |
Jun
(18) |
Jul
(20) |
Aug
(23) |
Sep
|
Oct
(4) |
Nov
(15) |
Dec
|
2010 |
Jan
(2) |
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(5) |
Oct
(2) |
Nov
(1) |
Dec
(17) |
2011 |
Jan
(4) |
Feb
|
Mar
|
Apr
(1) |
May
(3) |
Jun
|
Jul
(6) |
Aug
(1) |
Sep
(13) |
Oct
(6) |
Nov
(7) |
Dec
|
2012 |
Jan
(46) |
Feb
(1) |
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
(11) |
Aug
|
Sep
|
Oct
(25) |
Nov
|
Dec
(9) |
2013 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
1
|
2
|
3
|
4
(2) |
5
|
6
|
7
(3) |
8
|
9
(2) |
10
(4) |
11
(4) |
12
|
13
|
14
|
15
|
16
|
17
(1) |
18
(1) |
19
|
20
|
21
(1) |
22
(1) |
23
(2) |
24
|
25
(7) |
26
|
27
|
28
(7) |
29
|
30
|
31
|
|
|
From: elodiepc <elodiepc@us...> - 2007-05-28 23:00:57
|
Update of /cvsroot/pazar/XML In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16767 Added Files: example_xmlparser.pl Removed Files: pazarxmlparser.pl Log Message: renaming an earlier xml parser file to avoid confusion --- pazarxmlparser.pl DELETED --- --- NEW FILE: example_xmlparser.pl --- #!/usr/bin/perl -w use strict; use XML::Parser; use XML::SimpleObject; #This file parses files that comply with the pazar DTD #All it needs is code to insert the attribute data my $file = 'pazarexample.xml'; my $parser = XML::Parser->new(ErrorContext => 2, Style => "Tree"); my $xso = XML::SimpleObject->new( $parser->parsefile($file) ); sub handle_params { my $parent = new XML::SimpleObject; $parent = shift; my @params = $parent->children('parameter'); #param attributes: tag, value foreach my $param (@params) { #do something } } sub handle_transcript { my $transcript = shift; handle_params($transcript); #attributes:db_subset,db_name my $transcript_dbsource = $transcript->child('db_source'); handle_params($transcript_dbsource); #attributes: class,edit_date,family,pazar_id my $transcript_tf = $transcript->child('tf'); if($transcript_tf) { handle_params($transcript_tf); } } sub handle_coordinate { my $coord = shift; # do coordinate stuff handle_params($coord); my $coord_location = $coord->child('location'); handle_params($coord_location); my $coord_location_dbsource = $coord_location->child('db_source'); if($coord_location_dbsource) { handle_params($coord_location_dbsource); } } sub handle_regseq { my $regseq = shift; handle_params($regseq); my $regseq_coord = $regseq->child('coordinate'); handle_coordinate($regseq_coord); # do mutation set stuff my @regseq_mutation_sets = $regseq->children('mutation_set'); if(@regseq_mutation_sets) { foreach my $mutation_set (@regseq_mutation_sets) { handle_params($mutation_set); my $mutation_set_coord = $mutation_set->child('coordinate'); handle_coordinate($mutation_set_coord); my $mutation_set_method = $mutation_set->child('method'); handle_params($mutation_set_method); my $mutation_set_ref = $mutation_set->child('ref'); if($mutation_set_ref) { handle_params($mutation_set_ref); } #handle mutations my @mutation_set_mutations = $mutation_set->children('mutation'); foreach my $mutation_set_mutation (@mutation_set_mutations) { handle_params($mutation_set_mutation); } } } #do construct stuff my @regseq_constructs = $regseq->children('construct'); foreach my $regseq_construct (@regseq_constructs) { handle_params($regseq_construct); } } sub handle_gene_source { my $gene_source = shift; # print $gene_source->attribute('description'); handle_params($gene_source); #attributes:db_name,db_subset my $gene_source_db_source = $gene_source->child('db_source'); handle_params($gene_source_db_source); #attributes:predominant_start,fuzzy_start,fuzzy_end,pazar_id my @gene_source_tsrs = $gene_source->children('TSR'); if(@gene_source_tsrs) { foreach my $gene_source_tsr (@gene_source_tsrs) { handle_params($gene_source_tsr); my $gene_source_tsr_transcript = $gene_source_tsr->child('transcript'); if($gene_source_tsr_transcript) { handle_transcript($gene_source_tsr_transcript); } #attributes:TFBS_name,quality,pazar_id,sequence my @gene_source_tsr_regseqs = $gene_source_tsr->children('reg_seq'); if(@gene_source_tsr_regseqs) { foreach my $gene_source_tsr_regseq (@gene_source_tsr_regseqs) { handle_regseq($gene_source_tsr_regseq); } } } } #attributes:edit_date,pazar_id my @gene_source_transcripts = $gene_source->children('transcript'); foreach my $gene_source_transcript (@gene_source_transcripts) { handle_transcript($gene_source_transcript); } } #########################handle project section###################### #attributes:edit_date,project_name,pazar_id,status my $project = $xso->child('pazar')->child('project'); #print $project->attribute('edit_date'); #user details #attributes: affiliation,first_name,last_name,pazar_id,username my $user = $project->child('user'); #print $user->attribute('affiliation'); #########################handle data###################### my $data = $xso->child('pazar')->child('data'); if($data) { #matrixes #matrix attributes: pazar_id,name,db_accn,vectorA,vectorC,vectorG,vectorT,description my @matrixes = $data->children('matrix'); #In my experience XML::SimpleObject returns with this example empty string #as a first array element, which breaks XML::Parser if ((@matrixes)&&($matrixes[0] ne '')) { foreach my $matrix (@matrixes) { handle_params($matrix); my $matrix_dbsource = $matrix->child('db_source'); handle_params($matrix_dbsource); my $matrix_info = $matrix->child('matrix_info'); handle_params($matrix_info); #handle regseqs my @matrix_reg_seqs = $matrix->children('reg_seq'); if(@matrix_reg_seqs) { foreach my $matrix_reg_seq (@matrix_reg_seqs) { handle_reg_seq($matrix_reg_seq); } } } } #homologs my @homologs = $data->children('homolog'); if((@homologs)&&($homologs[0] ne '')) { foreach my $homolog (@homologs) { handle_params($homolog); my $homolog_dbsource = $homolog->child('db_source'); handle_params($homolog_dbsource); my @homolog_gene_sources = $homolog->children('gene_source'); foreach my $homolog_gene_source (@homolog_gene_sources) { handle_gene_source($homolog_gene_source); } my @homolog_conserved_els = $homolog->children('conserved_el'); if(@homolog_conserved_els) { foreach my $homolog_conserved_el (@homolog_conserved_els) { handle_params($homolog_conserved_el); } } } } #gene sources my @gene_sources = $data->children('gene_source'); #attributes #pazar_id, db_accn, description if((@gene_sources)&&($gene_sources[0] ne '')) { foreach my $gene_source (@gene_sources) { handle_gene_source($gene_source); } #for each gene source } #attributes: dataset_name my @datasets = $data->children('dataset'); if((@datasets)&&($datasets[0] ne '')) { foreach my $dataset (@datasets) { handle_params($dataset); my @dataset_regseqs = $dataset->children('reg_seq'); foreach my $dataset_regseq (@dataset_regseqs) { handle_regseq($dataset_regseq); } } } #sample attributes: pazar_id, sample_type my @samples = $data->children('sample'); if((@samples)&&($samples[0] ne '')) { foreach my $sample (@samples) { handle_params($sample); my $cell = $sample->child('cell'); handle_params($cell); #do something with cell attributes my $time = $sample->child('time'); handle_params($time); #do something with time attributes } } #funct_tf attributes: pazar_id, tf_ids, funct_TF_name, modifications my @funct_tfs = $data->children('funct_tf'); if((@funct_tfs)&&($funct_tfs[0] ne '')) { foreach my $funct_tf (@funct_tfs) { handle_params($funct_tf); my $funct_tf_ref = $funct_tf->child('ref'); if($funct_tf_ref) { handle_params($funct_tf_ref); } } } #attributes: pazar_id, construct_name, description, sequence my @constructs = $data->children('construct'); if((@constructs)&&($constructs[0] ne '')) { foreach my $construct (@constructs) { handle_params($construct); } } #attributes: pazar_id, cond_type, molecule, description, concentration my @conditions = $data->children('condition'); if((@conditions)&&($conditions[0] ne '')) { foreach my $condition (@conditions) { handle_params($condition); } } #attributes: scale,comments,quantitative,qualitative,pazar_id my @expressions = $data->children('expression'); if((@expressions)&&($expressions[0] ne '')) { foreach my $expression (@expressions) { handle_params($expression); } } #attributes:scale,comments,quantitative,qualitative,pazar_id my @interactions = $data->children('interaction'); if((@interactions)&&($expressions[0] ne '')) { foreach my $interaction (@interactions) { handle_params($interaction); } } #attributes: type_evid,status_evid my @evidences = $data->children('evidence'); if((@evidences)&&($evidences[0] ne '')) { foreach my $evidence (@evidences) { handle_params($evidence); } } #attributes: description,method my @methods = $data->children('method'); if((@methods)&&($methods[0] ne '')) { foreach my $method (@methods) { handle_params($method); } } #attributes: pmid my @refs = $data->children('ref'); if((@refs)&&($refs[0] ne '')) { foreach my $ref (@refs) { handle_params($ref); } } #attributes: pazar_id,name,tissue_ontology,description,species,status my @cells = $data->children('cell'); if((@cells)&&($cells[0] ne '')) { foreach my $cell (@cells) { handle_params($cell); } } #attributes: pazar_id,name,description,scale my @times = $data->children('time'); if((@times)&&($times[0] ne '')) { foreach my $time (@times) { handle_params($time); } } }# if data #########################handle analysis###################### my @analyses = $xso->child('pazar')->children('analysis'); if((@analyses)&&($analyses[0] ne '')) { #analysis attributes: name,comments foreach my $analysis (@analyses) { #attributes: type_evid,status_evid my $evidence = $analysis->child('evidence'); handle_params($evidence); #attributes: description,method my $method = $analysis->child('method'); handle_params($method); #attributes: pmid my $ref = $analysis->child('ref'); if($ref) { handle_params($ref); } #attributes: pazar_id,name,tissue_ontology,description,species,status my $cell = $analysis->child('cell'); if($cell) { handle_params($cell); } #attributes: pazar_id,name,description,scale my $time = $analysis->child('time'); if($time) { handle_params($time); } #handle multiple input_outputs my @input_outputs = $analysis->children('input_output'); #attributes: edit_date foreach my $input_output (@input_outputs) { #attributes: inputs my @inputs = $input_output->children('input'); foreach my $input (@inputs) { #do something } #attributes: outputs my @outputs = $input_output->children('output'); foreach my $output (@outputs) { #do something } } } } |
From: elodiepc <elodiepc@us...> - 2007-05-28 20:33:36
|
Update of /cvsroot/pazar/HTML/pazar.info/cgi-bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26560 Modified Files: tf_search.cgi Log Message: fixing tf name problem when writing to file Index: tf_search.cgi =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/tf_search.cgi,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** tf_search.cgi 25 May 2007 00:09:15 -0000 1.39 --- tf_search.cgi 28 May 2007 20:33:36 -0000 1.40 *************** *** 443,447 **** print "<table bordercolor='white' bgcolor='white' border=1 cellspacing=0 cellpadding=10><tr><td><span class=\"title4\">Position Frequency Matrix</span></td><td><SPAN class=\"monospace\">$prettystring</SPAN></td></tr>"; #draw the logo ! my $logo = $accn.".png"; my $gd_image = $pfm->draw_logo(-file=>"$pazarhtdocspath/tmp/".$logo, -xsize=>400); print "<tr><td><span class=\"title4\">Logo</span></td><td><img src=\"$pazar_html/tmp/$logo\">"; --- 443,449 ---- print "<table bordercolor='white' bgcolor='white' border=1 cellspacing=0 cellpadding=10><tr><td><span class=\"title4\">Position Frequency Matrix</span></td><td><SPAN class=\"monospace\">$prettystring</SPAN></td></tr>"; #draw the logo ! my $accn_s=$accn; ! $accn_s=~s/\//-/g; ! my $logo = $accn_s.".png"; my $gd_image = $pfm->draw_logo(-file=>"$pazarhtdocspath/tmp/".$logo, -xsize=>400); print "<tr><td><span class=\"title4\">Logo</span></td><td><img src=\"$pazar_html/tmp/$logo\">"; |
From: elodiepc <elodiepc@us...> - 2007-05-28 19:11:15
|
Update of /cvsroot/pazar/HTML/pazar.info/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28256 Modified Files: TF_Mall.swf Log Message: updating the mall map Index: TF_Mall.swf =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/images/TF_Mall.swf,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 Binary files /tmp/cvs3D5OcK and /tmp/cvsYwo5aU differ |
From: elodiepc <elodiepc@us...> - 2007-05-28 18:00:54
|
Update of /cvsroot/pazar/HTML/pazar.info/cgi-bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2242 Modified Files: gene_search.cgi Log Message: regseq_counter was reset to 0 for each gene and forms were not unique anymore Index: gene_search.cgi =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/gene_search.cgi,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -d -r1.49 -r1.50 *** gene_search.cgi 25 May 2007 00:09:15 -0000 1.49 --- gene_search.cgi 28 May 2007 18:00:40 -0000 1.50 *************** *** 243,247 **** } print "</table><br><hr color='black'><p class=\"title2\">Search Result Details Gene by Gene</p>"; ! foreach my $gene_data (@gene_info) { $species=$gene_data->{species}; --- 243,248 ---- } print "</table><br><hr color='black'><p class=\"title2\">Search Result Details Gene by Gene</p>"; ! ! my $regseq_counter = 0; # counter for naming forms foreach my $gene_data (@gene_info) { $species=$gene_data->{species}; *************** *** 277,281 **** #loop through regseqs and print tables - my $regseq_counter = 0; # counter for naming forms my @regseqs = $dbh->get_reg_seqs_by_gene_id($gene_data->{GID}); if (!$regseqs[0]) { --- 278,281 ---- |
From: elodiepc <elodiepc@us...> - 2007-05-28 17:05:49
|
Update of /cvsroot/pazar/API/pazar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14141 Modified Files: talk.pm Log Message: roll-back to version 1.10 as changed by Stefan Index: talk.pm =================================================================== RCS file: /cvsroot/pazar/API/pazar/talk.pm,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** talk.pm 28 May 2007 16:54:14 -0000 1.11 --- talk.pm 28 May 2007 17:05:49 -0000 1.12 *************** *** 19,28 **** require($file); #If database name/SID not provded try to guess ! unless (($args{ADD})||($args{DB} eq 'ensembl')) { my $varname='TALKDB_'.uc($args{DB}).'_NAME'; my $dbname=$ENV{$varname}; - unless ($dbname) { $dbname=$args{DB}; } #Can be done smarter with driver recognition ! $args{ADD}=";database=$dbname;sid=$dbname"; } my $self="pazar::talk::$db"->new(%args); --- 19,27 ---- require($file); #If database name/SID not provded try to guess ! unless ($args{ADD}) { my $varname='TALKDB_'.uc($args{DB}).'_NAME'; my $dbname=$ENV{$varname}; #Can be done smarter with driver recognition ! $args{ADD}=";database=$dbname;sid=$dbname" if ($dbname); } my $self="pazar::talk::$db"->new(%args); |
From: elodiepc <elodiepc@us...> - 2007-05-28 17:00:12
|
Update of /cvsroot/pazar/API In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12067 Modified Files: pazar.pm Log Message: problem with auxdb Index: pazar.pm =================================================================== RCS file: /cvsroot/pazar/API/pazar.pm,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -d -r1.49 -r1.50 *** pazar.pm 25 May 2007 17:44:21 -0000 1.49 --- pazar.pm 28 May 2007 17:00:10 -0000 1.50 *************** *** 132,139 **** my $add='database='.lc($self->{auxDB}).';' if ($self->{drv} eq 'mysql'); #Todo- make all params here ! if ($self->{auxDB}) { ! $self->{talkdb}=pazar::talk->new(DB=>$self->{auxDB},USER=>$self->{user}, ! PASS=>$self->{pass},HOST=>$self->{host},ADD=>$add,DRV=>$self->{drv},-organism=>$params{-organism}); ! } return $self; } --- 132,139 ---- my $add='database='.lc($self->{auxDB}).';' if ($self->{drv} eq 'mysql'); #Todo- make all params here ! # if ($self->{auxDB}) { ! # $self->{talkdb}=pazar::talk->new(DB=>$self->{auxDB},USER=>$self->{user}, ! # PASS=>$self->{pass},HOST=>$self->{host},ADD=>$add,DRV=>$self->{drv},-organism=>$params{-organism}); ! # } return $self; } |
From: elodiepc <elodiepc@us...> - 2007-05-28 16:54:59
|
Update of /cvsroot/pazar/API/pazar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9843 Modified Files: talk.pm Log Message: roll-back one version Index: talk.pm =================================================================== RCS file: /cvsroot/pazar/API/pazar/talk.pm,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** talk.pm 25 May 2007 18:17:35 -0000 1.10 --- talk.pm 28 May 2007 16:54:14 -0000 1.11 *************** *** 19,27 **** require($file); #If database name/SID not provded try to guess ! unless ($args{ADD}) { my $varname='TALKDB_'.uc($args{DB}).'_NAME'; my $dbname=$ENV{$varname}; #Can be done smarter with driver recognition ! $args{ADD}=";database=$dbname;sid=$dbname" if ($dbname); } my $self="pazar::talk::$db"->new(%args); --- 19,28 ---- require($file); #If database name/SID not provded try to guess ! unless (($args{ADD})||($args{DB} eq 'ensembl')) { my $varname='TALKDB_'.uc($args{DB}).'_NAME'; my $dbname=$ENV{$varname}; + unless ($dbname) { $dbname=$args{DB}; } #Can be done smarter with driver recognition ! $args{ADD}=";database=$dbname;sid=$dbname"; } my $self="pazar::talk::$db"->new(%args); |
From: kirovs <kirovs@us...> - 2007-05-25 18:17:35
|
Update of /cvsroot/pazar/API/pazar In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16082/pazar Modified Files: talk.pm Log Message: Fix database name recognition; no exception rule for ensembl and $dbname does not take the module name Index: talk.pm =================================================================== RCS file: /cvsroot/pazar/API/pazar/talk.pm,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** talk.pm 29 May 2006 23:02:42 -0000 1.9 --- talk.pm 25 May 2007 18:17:35 -0000 1.10 *************** *** 19,28 **** require($file); #If database name/SID not provded try to guess ! unless (($args{ADD})||($args{DB} eq 'ensembl')) { my $varname='TALKDB_'.uc($args{DB}).'_NAME'; my $dbname=$ENV{$varname}; - unless ($dbname) { $dbname=$args{DB}; } #Can be done smarter with driver recognition ! $args{ADD}=";database=$dbname;sid=$dbname"; } my $self="pazar::talk::$db"->new(%args); --- 19,27 ---- require($file); #If database name/SID not provded try to guess ! unless ($args{ADD}) { my $varname='TALKDB_'.uc($args{DB}).'_NAME'; my $dbname=$ENV{$varname}; #Can be done smarter with driver recognition ! $args{ADD}=";database=$dbname;sid=$dbname" if ($dbname); } my $self="pazar::talk::$db"->new(%args); |
From: elodiepc <elodiepc@us...> - 2007-05-25 17:44:22
|
Update of /cvsroot/pazar/API In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3763 Modified Files: pazar.pm Log Message: fixing environment variables Index: pazar.pm =================================================================== RCS file: /cvsroot/pazar/API/pazar.pm,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** pazar.pm 7 Dec 2006 20:15:17 -0000 1.48 --- pazar.pm 25 May 2007 17:44:21 -0000 1.49 *************** *** 97,107 **** $self->{drv}=$params{-drv}||$ENV{PAZAR_drv}; $self->{globalsearch}=$params{-globalsearch}||'no'; ! $self->{dbname}=$params{-dbname}||$ENV{PAZAR_dbname}; ! $self->{user}=$params{-user}||$ENV{PAZAR_user}; ! $self->{pass}=$params{-pass}||$ENV{PAZAR_pass}; $self->{pazaruser}=$params{-pazar_user}; $self->{pazarpass}=$params{-pazar_pass}; $self->{host}=$params{-host}||$ENV{PAZAR_host}; ! $self->{sock}=$params{-socket}||$ENV{PAZAR_sock}; $self->{auxDB}=$params{-talkdb}||$ENV{PAZAR_talkdb}; $self->{duplicates}=$params{-duplicates}||'yes'; --- 97,107 ---- $self->{drv}=$params{-drv}||$ENV{PAZAR_drv}; $self->{globalsearch}=$params{-globalsearch}||'no'; ! $self->{dbname}=$params{-dbname}||$ENV{PAZAR_name}; ! $self->{user}=$params{-user}||$ENV{PAZAR_adminuser}; ! $self->{pass}=$params{-pass}||$ENV{PAZAR_adminpass}; $self->{pazaruser}=$params{-pazar_user}; $self->{pazarpass}=$params{-pazar_pass}; $self->{host}=$params{-host}||$ENV{PAZAR_host}; ! $self->{port}=$params{-port}||$ENV{PAZAR_port}; $self->{auxDB}=$params{-talkdb}||$ENV{PAZAR_talkdb}; $self->{duplicates}=$params{-duplicates}||'yes'; *************** *** 110,114 **** $self->{project}=$params{-project}||'na';#IMPORTANT: If project is unknown only queries are possible!!! my $dsn='DBI:'.$self->{drv}.':database='.$self->{dbname}.';host='.$self->{host}; ! $dsn .= ";mysql_socket=$self->{sock};" if ($self->{sock}); $self->{dbh}= DBI->connect($dsn,$self->{user}, $self->{pass})||$self->throw( $DBI::errstr); if (( $self->{pazaruser})&&( $self->{pazarpass})) { --- 110,114 ---- $self->{project}=$params{-project}||'na';#IMPORTANT: If project is unknown only queries are possible!!! my $dsn='DBI:'.$self->{drv}.':database='.$self->{dbname}.';host='.$self->{host}; ! $dsn .= ";port=$self->{port};" if ($self->{port}); $self->{dbh}= DBI->connect($dsn,$self->{user}, $self->{pass})||$self->throw( $DBI::errstr); if (( $self->{pazaruser})&&( $self->{pazarpass})) { |
From: elodiepc <elodiepc@us...> - 2007-05-25 01:28:24
|
Update of /cvsroot/pazar/HTML/pazar.info/cgi-bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1566 Modified Files: index.pl Log Message: the description was not stripped off for all project. Fixed now Index: index.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/index.pl,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** index.pl 25 May 2007 00:06:37 -0000 1.22 --- index.pl 25 May 2007 01:28:24 -0000 1.23 *************** *** 51,57 **** my @desc; while (my $project=$projects->fetchrow_hashref) { push @desc, { name => $project->{project_name}, ! description => $project->{description}}; } --- 51,61 ---- my @desc; while (my $project=$projects->fetchrow_hashref) { + my $flashdesc=$project->{description}; + $flashdesc=~s/<(.*?)>//gi; + $flashdesc=~s/[!@\$\^\*\(\)\+\[\]\\\'=&\{\}\|\"\?]/ /g; + my $truncflashdesc=substr($flashdesc,0,300); push @desc, { name => $project->{project_name}, ! description => $truncflashdesc}; } |
From: elodiepc <elodiepc@us...> - 2007-05-25 00:29:56
|
Update of /cvsroot/pazar/HTML/pazar.info/cgi-bin/sWI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12137/sWI Modified Files: TFcentric.cgi entry.pl geneselect.cgi psite_get.cgi Log Message: removing all hard-coded parameters to environment variables in the submission interface Index: psite_get.cgi =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/sWI/psite_get.cgi,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** psite_get.cgi 13 Feb 2007 00:46:15 -0000 1.14 --- psite_get.cgi 25 May 2007 00:29:28 -0000 1.15 *************** *** 7,17 **** #use CGI::Debug(report => everything, on => anything); ! require '/usr/local/apache/pazar.info/cgi-bin/getsession.pl'; # open the html header template ! my $template = HTML::Template->new(filename => '/usr/local/apache/pazar.info/cgi-bin/header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR submission interface'); $template->param(JAVASCRIPT_FUNCTION => q{ function MM_findObj(n, d) { //v4.01 --- 7,23 ---- #use CGI::Debug(report => everything, on => anything); ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! ! require "$pazarcgipath/getsession.pl"; # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR submission interface'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); $template->param(JAVASCRIPT_FUNCTION => q{ function MM_findObj(n, d) { //v4.01 Index: geneselect.cgi =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/sWI/geneselect.cgi,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** geneselect.cgi 6 Mar 2007 23:00:23 -0000 1.2 --- geneselect.cgi 25 May 2007 00:29:28 -0000 1.3 *************** *** 7,17 **** #use CGI::Debug(report => everything, on => anything); ! require '/usr/local/apache/pazar.info/cgi-bin/getsession.pl'; # open the html header template ! my $template = HTML::Template->new(filename => '/usr/local/apache/pazar.info/cgi-bin/header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR submission interface'); $template->param(JAVASCRIPT_FUNCTION => q{ function showHide(inputID) { --- 7,23 ---- #use CGI::Debug(report => everything, on => anything); ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! ! require "$pazarcgipath/getsession.pl"; # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR submission interface'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); $template->param(JAVASCRIPT_FUNCTION => q{ function showHide(inputID) { Index: TFcentric.cgi =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/sWI/TFcentric.cgi,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** TFcentric.cgi 8 Dec 2006 18:51:14 -0000 1.10 --- TFcentric.cgi 25 May 2007 00:29:28 -0000 1.11 *************** *** 11,21 **** use pazar::tf::subunit; ! require '/usr/local/apache/pazar.info/cgi-bin/getsession.pl'; # open the html header template ! my $template = HTML::Template->new(filename => '/usr/local/apache/pazar.info/cgi-bin/header.tmpl'); # fill in template parameters $template->param(TITLE => 'TF-centric Submission'); $template->param(JAVASCRIPT_FUNCTION => q{ function ActivateCheckBox () --- 11,27 ---- use pazar::tf::subunit; ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! ! require "$pazarcgipath/getsession.pl"; # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'TF-centric Submission'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); $template->param(JAVASCRIPT_FUNCTION => q{ function ActivateCheckBox () Index: entry.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/sWI/entry.pl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** entry.pl 6 Mar 2007 20:39:37 -0000 1.5 --- entry.pl 25 May 2007 00:29:28 -0000 1.6 *************** *** 6,16 **** use pazar; ! require '/usr/local/apache/pazar.info/cgi-bin/getsession.pl'; # open the html header template ! my $template = HTML::Template->new(filename => '/usr/local/apache/pazar.info/cgi-bin/header.tmpl'); # fill in template parameters $template->param(TITLE => 'Submission entry form'); $template->param(JAVASCRIPT_FUNCTION => q{ function MM_findObj(n, d) { //v4.01 --- 6,22 ---- use pazar; ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! ! require "$pazarcgipath/getsession.pl"; # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'Submission entry form'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); $template->param(JAVASCRIPT_FUNCTION => q{ function MM_findObj(n, d) { //v4.01 |
Update of /cvsroot/pazar/HTML/pazar.info/cgi-bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4694 Modified Files: GFF.pl contacts.pl delete.pl dologin.pl exp_search.cgi export_profile.cgi gene_list.cgi gene_search.cgi genebrowse_alpha.pl genebrowse_result.pl genericpage.pl gff_custom_track.cgi header.tmpl help_FAQ.pl login.pl logout.pl overview.pl profilesearch.pl proj_res.cgi project.pl register.pl seq_search.cgi step1.pl step2.pl step3.pl tf_list.cgi tf_logo.pl tf_search.cgi tfbrowse_alpha.pl tfbrowse_result.pl validator.cgi xml.pl Log Message: removing all hard-coded parameters to environment variables Index: genericpage.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/genericpage.pl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** genericpage.pl 2 May 2006 22:14:07 -0000 1.1 --- genericpage.pl 25 May 2007 00:09:15 -0000 1.2 *************** *** 5,15 **** use CGI::Session; ! require 'getsession.pl'; # open the html header template ! my $template = HTML::Template->new(filename => 'header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR Project Outline'); # send the obligatory Content-Type and print the template output --- 5,21 ---- use CGI::Session; ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! ! require "$pazarcgipath/getsession.pl"; # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR Project Outline'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); # send the obligatory Content-Type and print the template output *************** *** 41,44 **** # print out the html tail template ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 47,50 ---- # print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; Index: proj_res.cgi =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/proj_res.cgi,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** proj_res.cgi 24 Nov 2006 17:26:48 -0000 1.26 --- proj_res.cgi 25 May 2007 00:09:15 -0000 1.27 *************** *** 2,6 **** use HTML::Template; ! use Data::Dumper; use pazar; use pazar::reg_seq; --- 2,6 ---- use HTML::Template; ! #use Data::Dumper; use pazar; use pazar::reg_seq; *************** *** 14,25 **** use TFBS::Matrix::PFM; ! require 'getsession.pl'; # open the html header template ! my $template = HTML::Template->new(filename => '/usr/local/apache/pazar.info/cgi-bin/header.tmpl'); # fill in template parameters $template->param(TITLE => "PAZAR - Project Search Results"); $template->param(JAVASCRIPT_FUNCTION => q{ function verifyCheckedBoxes() { --- 14,31 ---- use TFBS::Matrix::PFM; ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! my $pazarhtdocspath = $ENV{PAZARHTDOCSPATH}; + require "$pazarcgipath/getsession.pl"; # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => "PAZAR - Project Search Results"); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); $template->param(JAVASCRIPT_FUNCTION => q{ function verifyCheckedBoxes() { *************** *** 52,61 **** { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. ".'<a href=\'http://www.pazar.info/cgi-bin/logout.pl\'>Log Out</a>'); } else { #log in link ! $template->param(LOGOUT => '<a href=\'http://www.pazar.info/cgi-bin/login.pl\'>Log In</a>'); } --- 58,67 ---- { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. "."<a href=\'$pazar_cgi/logout.pl\'>Log Out</a>"); } else { #log in link ! $template->param(LOGOUT => "<a href=\'$pazar_cgi/login.pl\'>Log In</a>"); } *************** *** 126,130 **** ### species filter if ($param{species_filter} eq 'on') { ! if (!$param{species}) {print "<p class=\"warning\">You need to select one or more species when using the species filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @species=split(/;/,$param{species}); if (!grep(/species filter/, @filters)) { --- 132,136 ---- ### species filter if ($param{species_filter} eq 'on') { ! if (!$param{species}) {print "<p class=\"warning\">You need to select one or more species when using the species filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @species=split(/;/,$param{species}); if (!grep(/species filter/, @filters)) { *************** *** 139,147 **** } } ! if (!$reg_seqs[0]) {print "<p class=\"warning\">No regulatory sequence was found for species: ".join(',',@species)."<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} } else { ### region filter ! if (scalar(@species)>1) {print "<p class=\"warning\">You have to choose a unique species when using the region filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} if ($param{chr_filter} eq 'on') { unless ($param{bp_filter} eq 'on') { --- 145,153 ---- } } ! if (!$reg_seqs[0]) {print "<p class=\"warning\">No regulatory sequence was found for species: ".join(',',@species)."<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} } else { ### region filter ! if (scalar(@species)>1) {print "<p class=\"warning\">You have to choose a unique species when using the region filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} if ($param{chr_filter} eq 'on') { unless ($param{bp_filter} eq 'on') { *************** *** 151,158 **** push @filters, $filter; } ! if (!$reg_seqs[0]) {print "<p class=\"warning\">No regulatory sequence was found on chromosome $param{chromosome} in species $param{species}<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} } else { ! if (!$param{bp_start} || !$param{bp_end}) {print "<p class=\"warning\">You need to specify the start and end of the region you're interested in when using the base pair filter!<br><form><input type=\"button\" name=\"change_filters\" value=\"Modify Filters\" onclick=\"parent.location.href='http://www.pazar.info/cgi-bin/project.pl&project_name=\"$proj\"'\"></form></p>\n";; exit;} ! if ($param{bp_start}>=$param{bp_end}) {print "<p class=\"warning\">The start coordinate needs to be lower that the end!<br><form><input type=\"button\" name=\"change_filters\" value=\"Modify Filters\" onclick=\"parent.location.href='http://www.pazar.info/cgi-bin/project.pl&project_name=\"$proj\"'\"></form></p>\n";; exit;} if (!grep(/region filter/, @filters)) { my $filter='region filter: '.$param{chromosome}.':'.$param{bp_start}.'-'.$param{bp_end}; --- 157,164 ---- push @filters, $filter; } ! if (!$reg_seqs[0]) {print "<p class=\"warning\">No regulatory sequence was found on chromosome $param{chromosome} in species $param{species}<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} } else { ! if (!$param{bp_start} || !$param{bp_end}) {print "<p class=\"warning\">You need to specify the start and end of the region you're interested in when using the base pair filter!<br><form><input type=\"button\" name=\"change_filters\" value=\"Modify Filters\" onclick=\"parent.location.href='$pazar_cgi/project.pl&project_name=\"$proj\"'\"></form></p>\n"; exit;} ! if ($param{bp_start}>=$param{bp_end}) {print "<p class=\"warning\">The start coordinate needs to be lower that the end!<br><form><input type=\"button\" name=\"change_filters\" value=\"Modify Filters\" onclick=\"parent.location.href='$pazar_cgi/project.pl&project_name=\"$proj\"'\"></form></p>\n"; exit;} if (!grep(/region filter/, @filters)) { my $filter='region filter: '.$param{chromosome}.':'.$param{bp_start}.'-'.$param{bp_end}; *************** *** 160,175 **** } @reg_seqs=$dbh->get_reg_seq_by_region($param{bp_start},$param{bp_end},$param{chromosome},$param{species}); ! if (!$reg_seqs[0]) {print "<p class=\"warning\">No regulatory sequence was found between bp $param{bp_start} and $param{bp_end} on chromosome $param{chromosome} in species $param{species}<br><form><input type=\"button\" name=\"change_filters\" value=\"Modify Filters\" onclick=\"parent.location.href='http://www.pazar.info/cgi-bin/project.pl&project_name=\"$proj\"'\"></form></p>\n";; exit;} } } } } else { ! if ($param{region_filter} eq 'on') {print "<p class=\"warning\">You have to select a species if you want to use the region filter!<br><form><input type=\"button\" name=\"change_filters\" value=\"Modify Filters\" onclick=\"parent.location.href='http://www.pazar.info/cgi-bin/project.pl&project_name=\"$proj\"'\"></form></p>\n";; exit;} } ### gene filter if ($param{gene_filter} eq 'on') { ! if ($reg_seqs[0]) {print "<p class=\"warning\">You cannot use species and region filters when using the gene filter!<br><form><input type=\"button\" name=\"change_filters\" value=\"Modify Filters\" onclick=\"parent.location.href='http://www.pazar.info/cgi-bin/project.pl&project_name=\"$proj\"'\"></form></p>\n";; exit;} ! if (!$param{gene}) {print "<p class=\"warning\">You need to select one or more gene when using the gene filter!<br><form><input type=\"button\" name=\"change_filters\" value=\"Modify Filters\" onclick=\"parent.location.href='http://www.pazar.info/cgi-bin/project.pl&project_name=\"$proj\"'\"></form></p>\n";; exit;} my @genes=split(/;/,$param{gene}); if (!grep(/gene filter/, @filters)) { --- 166,181 ---- } @reg_seqs=$dbh->get_reg_seq_by_region($param{bp_start},$param{bp_end},$param{chromosome},$param{species}); ! if (!$reg_seqs[0]) {print "<p class=\"warning\">No regulatory sequence was found between bp $param{bp_start} and $param{bp_end} on chromosome $param{chromosome} in species $param{species}<br><form><input type=\"button\" name=\"change_filters\" value=\"Modify Filters\" onclick=\"parent.location.href='$pazar_cgi/project.pl&project_name=\"$proj\"'\"></form></p>\n"; exit;} } } } } else { ! if ($param{region_filter} eq 'on') {print "<p class=\"warning\">You have to select a species if you want to use the region filter!<br><form><input type=\"button\" name=\"change_filters\" value=\"Modify Filters\" onclick=\"parent.location.href='$pazar_cgi/project.pl&project_name=\"$proj\"'\"></form></p>\n"; exit;} } ### gene filter if ($param{gene_filter} eq 'on') { ! if ($reg_seqs[0]) {print "<p class=\"warning\">You cannot use species and region filters when using the gene filter!<br><form><input type=\"button\" name=\"change_filters\" value=\"Modify Filters\" onclick=\"parent.location.href='$pazar_cgi/project.pl&project_name=\"$proj\"'\"></form></p>\n"; exit;} ! if (!$param{gene}) {print "<p class=\"warning\">You need to select one or more gene when using the gene filter!<br><form><input type=\"button\" name=\"change_filters\" value=\"Modify Filters\" onclick=\"parent.location.href='$pazar_cgi/project.pl&project_name=\"$proj\"'\"></form></p>\n"; exit;} my @genes=split(/;/,$param{gene}); if (!grep(/gene filter/, @filters)) { *************** *** 183,187 **** } } ! if (!$reg_seqs[0]) {print "<p class=\"warning\">No regulatory sequence was found for the genes ".join(',',@genes)."!<br><form><input type=\"button\" name=\"change_filters\" value=\"Modify Filters\" onclick=\"parent.location.href='http://www.pazar.info/cgi-bin/project.pl&project_name=\"$proj\"'\"></form></p>\n";; exit;} } --- 189,193 ---- } } ! if (!$reg_seqs[0]) {print "<p class=\"warning\">No regulatory sequence was found for the genes ".join(',',@genes)."!<br><form><input type=\"button\" name=\"change_filters\" value=\"Modify Filters\" onclick=\"parent.location.href='$pazar_cgi/project.pl&project_name=\"$proj\"'\"></form></p>\n"; exit;} } *************** *** 210,214 **** ### length filter if ($param{length_filter} eq 'on' && $param{length} ne '0') { ! if (!$param{length} || $param{length}<=0) {print "<p class=\"warning\">You need to specify a length greater than 0 when using the length filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} if (!grep(/length filter/, @filters)) { my $filter='length filter: '.$param{shorter_larger}.' '.$param{length}.' bases'; --- 216,220 ---- ### length filter if ($param{length_filter} eq 'on' && $param{length} ne '0') { ! if (!$param{length} || $param{length}<=0) {print "<p class=\"warning\">You need to specify a length greater than 0 when using the length filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} if (!grep(/length filter/, @filters)) { my $filter='length filter: '.$param{shorter_larger}.' '.$param{length}.' bases'; *************** *** 245,249 **** ### TF filter if ($param{tf_filter} eq 'on') { ! if (!$param{tf}) {print "<p class=\"warning\">You need to select one or more TF when using the TF filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @tfs=split(/;/,$param{tf}); if (!grep(/TF filter/, @filters)) { --- 251,255 ---- ### TF filter if ($param{tf_filter} eq 'on') { ! if (!$param{tf}) {print "<p class=\"warning\">You need to select one or more TF when using the TF filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @tfs=split(/;/,$param{tf}); if (!grep(/TF filter/, @filters)) { *************** *** 314,318 **** ### evidence filter if ($param{evidence_filter} eq 'on') { ! if (!$param{evidence}) {print "<p class=\"warning\">You need to select one or more evidence type when using the evidence filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @evids=split(/;/,$param{evidence}); if (!grep(/evidence filter/, @filters)) { --- 320,324 ---- ### evidence filter if ($param{evidence_filter} eq 'on') { ! if (!$param{evidence}) {print "<p class=\"warning\">You need to select one or more evidence type when using the evidence filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @evids=split(/;/,$param{evidence}); if (!grep(/evidence filter/, @filters)) { *************** *** 328,332 **** ### method filter if ($param{method_filter} eq 'on') { ! if (!$param{method}) {print "<p class=\"warning\">You need to select one or more method type when using the method filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @mets=split(/;/,$param{method}); if (!grep(/method filter/, @filters)) { --- 334,338 ---- ### method filter if ($param{method_filter} eq 'on') { ! if (!$param{method}) {print "<p class=\"warning\">You need to select one or more method type when using the method filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @mets=split(/;/,$param{method}); if (!grep(/method filter/, @filters)) { *************** *** 379,383 **** ### evidence filter if ($param{evidence_filter} eq 'on') { ! if (!$param{evidence}) {print "<p class=\"warning\">You need to select one or more evidence type when using the evidence filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @evids=split(/;/,$param{evidence}); if (!grep(/evidence filter/, @filters)) { --- 385,389 ---- ### evidence filter if ($param{evidence_filter} eq 'on') { ! if (!$param{evidence}) {print "<p class=\"warning\">You need to select one or more evidence type when using the evidence filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @evids=split(/;/,$param{evidence}); if (!grep(/evidence filter/, @filters)) { *************** *** 393,397 **** ### method filter if ($param{method_filter} eq 'on') { ! if (!$param{method}) {print "<p class=\"warning\">You need to select one or more method type when using the method filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @mets=split(/;/,$param{method}); if (!grep(/method filter/, @filters)) { --- 399,403 ---- ### method filter if ($param{method_filter} eq 'on') { ! if (!$param{method}) {print "<p class=\"warning\">You need to select one or more method type when using the method filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @mets=split(/;/,$param{method}); if (!grep(/method filter/, @filters)) { *************** *** 409,413 **** if ($res==0) { $res=1; ! print "<p><span class=\"title3\">Selected filters: </span><br>".join('; ',@filters)."<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p><h1>PAZAR Gene View</h1>"; } if ($exprs[0] || $inters[0] || $datalinks==2) { --- 415,419 ---- if ($res==0) { $res=1; ! print "<p><span class=\"title3\">Selected filters: </span><br>".join('; ',@filters)."<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p><h1>PAZAR Gene View</h1>"; } if ($exprs[0] || $inters[0] || $datalinks==2) { *************** *** 431,435 **** <table class="summarytable"> <tr><td class="genetabletitle"><span class="title4">Species</span></td><td class="basictd">$gene_sp</td></tr> ! <tr><td class="genetabletitle"><span class="title4">PAZAR Gene ID</span></td><td class="basictd"><form name="genelink$pazargeneid[0]" method='post' action='http://www.pazar.info/cgi-bin/gene_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='geneID' value="$gene_accn"><input type='hidden' name='ID_list' value='EnsEMBL_gene'><input type="submit" class="submitLink" value="$pazargeneid"> </form></td></tr> <tr><td class="genetabletitle"><span class="title4">Gene Name (user defined)</span></td><td class="basictd">$gene_desc</td></tr> <tr><td class="genetabletitle"><span class="title4">EnsEMBL Gene ID</span></td><td class="basictd">$gene_accn</td></tr> --- 437,441 ---- <table class="summarytable"> <tr><td class="genetabletitle"><span class="title4">Species</span></td><td class="basictd">$gene_sp</td></tr> ! <tr><td class="genetabletitle"><span class="title4">PAZAR Gene ID</span></td><td class="basictd"><form name="genelink$pazargeneid[0]" method='post' action="$pazar_cgi/gene_search.cgi" enctype='multipart/form-data'><input type='hidden' name='geneID' value="$gene_accn"><input type='hidden' name='ID_list' value='EnsEMBL_gene'><input type="submit" class="submitLink" value="$pazargeneid"> </form></td></tr> <tr><td class="genetabletitle"><span class="title4">Gene Name (user defined)</span></td><td class="basictd">$gene_desc</td></tr> <tr><td class="genetabletitle"><span class="title4">EnsEMBL Gene ID</span></td><td class="basictd">$gene_accn</td></tr> *************** *** 459,466 **** if (!@filters) {push @filters, 'none';} if ($res==1 && $filt==0) { ! print "<p class=\"warning\">No regulatory sequence was found using this set of filters!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>"; } if ($res==0) { ! print "<p><span class=\"title3\">Selected filters: </span><br>".join('; ',@filters)."<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>"; print "<p class=\"warning\">No regulatory sequence was found using this set of filters!</p>"; } --- 465,472 ---- if (!@filters) {push @filters, 'none';} if ($res==1 && $filt==0) { ! print "<p class=\"warning\">No regulatory sequence was found using this set of filters!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>"; } if ($res==0) { ! print "<p><span class=\"title3\">Selected filters: </span><br>".join('; ',@filters)."<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>"; print "<p class=\"warning\">No regulatory sequence was found using this set of filters!</p>"; } *************** *** 476,480 **** undef(my @filters); if ($param{tf_filter} eq 'on') { ! if (!$param{tf}) {print "<p class=\"warning\">You need to select one or more TF when using the TF filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @tfs=split(/;/,$param{tf}); if (!grep(/TF filter/, @filters)) { --- 482,486 ---- undef(my @filters); if ($param{tf_filter} eq 'on') { ! if (!$param{tf}) {print "<p class=\"warning\">You need to select one or more TF when using the TF filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @tfs=split(/;/,$param{tf}); if (!grep(/TF filter/, @filters)) { *************** *** 489,498 **** } } ! if (!$complexes[0]) {print "<p class=\"warning\">No TF was found with the following names: ".join(',',@tfs)."<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} } ### TF class filter if ($param{class_filter} eq 'on') { ! if ($complexes[0]) {print "<p class=\"warning\">You cannot use the TF filter and TF class filter at the same time!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @cf = split(/\//,$param{classes}); my $tf = $dbh->create_tf; --- 495,504 ---- } } ! if (!$complexes[0]) {print "<p class=\"warning\">No TF was found with the following names: ".join(',',@tfs)."<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} } ### TF class filter if ($param{class_filter} eq 'on') { ! if ($complexes[0]) {print "<p class=\"warning\">You cannot use the TF filter and TF class filter at the same time!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @cf = split(/\//,$param{classes}); my $tf = $dbh->create_tf; *************** *** 505,514 **** push @filters, $filter; } ! if (!$complexes[0]) {print "<p class=\"warning\">No TF was found within the following class: ".$cf[0]."<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} } ### species filter if ($param{species_filter} eq 'on') { ! if (!$param{species}) {print "<p class=\"warning\">You need to select one or more species when using the species filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @species=split(/;/,$param{species}); if (!grep(/species filter/, @filters)) { --- 511,520 ---- push @filters, $filter; } ! if (!$complexes[0]) {print "<p class=\"warning\">No TF was found within the following class: ".$cf[0]."<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} } ### species filter if ($param{species_filter} eq 'on') { ! if (!$param{species}) {print "<p class=\"warning\">You need to select one or more species when using the species filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @species=split(/;/,$param{species}); if (!grep(/species filter/, @filters)) { *************** *** 543,547 **** } } ! if (!$complexes[0]) {print "<p class=\"warning\">No TF was found from the following species: ".join(',',@species)."<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} } else { my @comp = @complexes; --- 549,553 ---- } } ! if (!$complexes[0]) {print "<p class=\"warning\">No TF was found from the following species: ".join(',',@species)."<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} } else { my @comp = @complexes; *************** *** 554,559 **** } if (!$complexes[0]) { ! print "<p><span class=\"title3\">Selected filters: </span><br>".join('; ',@filters)."<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>"; ! print "<p class=\"warning\">No TF was found in this project using this set of filters!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit; } --- 560,565 ---- } if (!$complexes[0]) { ! print "<p><span class=\"title3\">Selected filters: </span><br>".join('; ',@filters)."<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>"; ! print "<p class=\"warning\">No TF was found in this project using this set of filters!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit; } *************** *** 592,596 **** ### region filter ! if (scalar(@species)>1) {print "<p class=\"warning\">You have to choose a unique species when using the region filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} if ($param{chr_filter} eq 'on') { unless ($param{bp_filter} eq 'on') { --- 598,602 ---- ### region filter ! if (scalar(@species)>1) {print "<p class=\"warning\">You have to choose a unique species when using the region filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} if ($param{chr_filter} eq 'on') { unless ($param{bp_filter} eq 'on') { *************** *** 603,610 **** push @filters, $filter; } ! if (!$reg_seqs[0]) {print "<p class=\"warning\">No regulatory sequence was found on chromosome $param{chromosome} in species $param{species}<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} } else { ! if (!$param{bp_start} || !$param{bp_end}) {print "<p class=\"warning\">You need to specify the start and end of the region you're interested in when using the base pair filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} ! if ($param{bp_start}>=$param{bp_end}) {print "<p class=\"warning\">The start coordinate needs to be lower that the end!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} if (!grep(/region filter/, @filters)) { my $filter='region filter: '.$param{chromosome}.':'.$param{bp_start}.'-'.$param{bp_end}; --- 609,616 ---- push @filters, $filter; } ! if (!$reg_seqs[0]) {print "<p class=\"warning\">No regulatory sequence was found on chromosome $param{chromosome} in species $param{species}<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} } else { ! if (!$param{bp_start} || !$param{bp_end}) {print "<p class=\"warning\">You need to specify the start and end of the region you're interested in when using the base pair filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} ! if ($param{bp_start}>=$param{bp_end}) {print "<p class=\"warning\">The start coordinate needs to be lower that the end!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} if (!grep(/region filter/, @filters)) { my $filter='region filter: '.$param{chromosome}.':'.$param{bp_start}.'-'.$param{bp_end}; *************** *** 616,631 **** } ! if (!$reg_seqs[0]) {print "<p class=\"warning\">No regulatory sequence was found between bp $param{bp_start} and $param{bp_end} on chromosome $param{chromosome} in species $param{species}<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} } } } } else { ! if ($param{region_filter} eq 'on') {print "<p class=\"warning\">You have to select a species if you want to use the region filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} } ### gene filter if ($param{gene_filter} eq 'on') { ! if ($param{species_filter} eq 'on') {print "<p class=\"warning\">You cannot use species and region filters when using the gene filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} ! if (!$param{gene}) {print "<p class=\"warning\">You need to select one or more gene when using the gene filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @genes=split(/;/,$param{gene}); if (!grep(/gene filter/, @filters)) { --- 622,637 ---- } ! if (!$reg_seqs[0]) {print "<p class=\"warning\">No regulatory sequence was found between bp $param{bp_start} and $param{bp_end} on chromosome $param{chromosome} in species $param{species}<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} } } } } else { ! if ($param{region_filter} eq 'on') {print "<p class=\"warning\">You have to select a species if you want to use the region filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} } ### gene filter if ($param{gene_filter} eq 'on') { ! if ($param{species_filter} eq 'on') {print "<p class=\"warning\">You cannot use species and region filters when using the gene filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} ! if (!$param{gene}) {print "<p class=\"warning\">You need to select one or more gene when using the gene filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @genes=split(/;/,$param{gene}); if (!grep(/gene filter/, @filters)) { *************** *** 639,643 **** } } ! if (!$reg_seqs[0]) {print "<p class=\"warning\">No regulatory sequence was found for the genes ".join(',',@genes)."!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} } my $res=0; --- 645,649 ---- } } ! if (!$reg_seqs[0]) {print "<p class=\"warning\">No regulatory sequence was found for the genes ".join(',',@genes)."!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} } my $res=0; *************** *** 658,662 **** ### length filter if ($param{length_filter} eq 'on' && $param{length} ne '0') { ! if (!$param{length} || $param{length}<=0) {print "<p class=\"warning\">You need to specify a length greater than 0 when using the length filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} if (!grep(/length filter/, @filters)) { my $filter='length filter: '.$param{shorter_larger}.' '.$param{length}.' bases'; --- 664,668 ---- ### length filter if ($param{length_filter} eq 'on' && $param{length} ne '0') { ! if (!$param{length} || $param{length}<=0) {print "<p class=\"warning\">You need to specify a length greater than 0 when using the length filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} if (!grep(/length filter/, @filters)) { my $filter='length filter: '.$param{shorter_larger}.' '.$param{length}.' bases'; *************** *** 717,721 **** ### evidence filter if ($param{evidence_filter} eq 'on') { ! if (!$param{evidence}) {print "<p class=\"warning\">You need to select one or more evidence type when using the evidence filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @evids=split(/;/,$param{evidence}); if (!grep(/evidence filter/, @filters)) { --- 723,727 ---- ### evidence filter if ($param{evidence_filter} eq 'on') { ! if (!$param{evidence}) {print "<p class=\"warning\">You need to select one or more evidence type when using the evidence filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @evids=split(/;/,$param{evidence}); if (!grep(/evidence filter/, @filters)) { *************** *** 731,735 **** ### method filter if ($param{method_filter} eq 'on') { ! if (!$param{method}) {print "<p class=\"warning\">You need to select one or more method type when using the method filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @mets=split(/;/,$param{method}); if (!grep(/method filter/, @filters)) { --- 737,741 ---- ### method filter if ($param{method_filter} eq 'on') { ! if (!$param{method}) {print "<p class=\"warning\">You need to select one or more method type when using the method filter!<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>\n"; exit;} my @mets=split(/;/,$param{method}); if (!grep(/method filter/, @filters)) { *************** *** 753,762 **** if (!@filters) {push @filters, 'none';} if ($res==0) { ! print "<p><span class=\"title3\">Selected filters: </span><br>".join('; ',@filters)."<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>"; print "<p class=\"warning\">No regulatory sequence and/or TF was found using this set of filters!<br></p>"; } else{ ! print "<p><span class=\"title3\">Selected filters: </span><br>".join('; ',@filters)."<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"http://www.pazar.info/cgi-bin/project.pl\"; enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p><h1>PAZAR TF View</h1>"; ####start of form ! print "<form name='sequenceform' method='post' target='logowin' action='http://www.pazar.info/cgi-bin/tf_logo.pl'>";; my $seqcounter = 0; foreach my $tf (keys %inters) { --- 759,768 ---- if (!@filters) {push @filters, 'none';} if ($res==0) { ! print "<p><span class=\"title3\">Selected filters: </span><br>".join('; ',@filters)."<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p>"; print "<p class=\"warning\">No regulatory sequence and/or TF was found using this set of filters!<br></p>"; } else{ ! print "<p><span class=\"title3\">Selected filters: </span><br>".join('; ',@filters)."<br><form name=\"modify_filters\" METHOD=\"post\" ACTION=\"$pazar_cgi/project.pl\" enctype=\"multipart/form-data\" target=\"_self\"><input type=\"hidden\" name=\"project_name\" value=\"$proj\"><input type=\"submit\" name=\"submit\" value=\"Modify Filters\"></form></p><h1>PAZAR TF View</h1>"; ####start of form ! print "<form name='sequenceform' method='post' target='logowin' action='$pazar_cgi/tf_logo.pl'>"; my $seqcounter = 0; foreach my $tf (keys %inters) { *************** *** 773,777 **** ### print out the html tail template ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 779,783 ---- ### print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; *************** *** 789,793 **** #print out default information print "<tr>"; ! print "<form name='details$regseq_counter' method='post' action='http://www.pazar.info/cgi-bin/seq_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='regid' value='".$regseq->accession_number."'>"; my $id=write_pazarid($regseq->accession_number,'RS'); --- 795,799 ---- #print out default information print "<tr>"; ! print "<form name='details$regseq_counter' method='post' action='$pazar_cgi/seq_search.cgi' enctype='multipart/form-data'><input type='hidden' name='regid' value='".$regseq->accession_number."'>"; my $id=write_pazarid($regseq->accession_number,'RS'); *************** *** 802,808 **** print "<td width='300' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'>chr".$regseq->chromosome.":".$regseq->start."-".$regseq->end." (strand ".$regseq->strand.")</div></td>"; ! print "<form name='display$regseq_counter' method='post' action='http://www.pazar.info/cgi-bin/gff_custom_track.cgi'; enctype='multipart/form-data' target='_blank'>"; ! print "<td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><input type='hidden' name='chr' value='".$regseq->chromosome."'><input type='hidden' name='start' value='".$regseq->start."'><input type='hidden' name='end' value='".$regseq->end."'><input type='hidden' name='species' value='".$regseq->binomial_species."'><input type='hidden' name='resource' value='ucsc'><a href='#' onClick=\"javascript:document.display$regseq_counter.resource.value='ucsc';document.display$regseq_counter.submit();\"><img src='http://www.pazar.info/images/ucsc_logo.png'></a><!--<input type='submit' name='ucsc' value='ucsc' onClick=\"javascript:document.display$regseq_counter.resource.value='ucsc';\">--><br><br><a href='#' onClick=\"javascript:document.display$regseq_counter.resource.value='ensembl';document.display$regseq_counter.submit();\"><img src='http://www.pazar.info/images/ensembl_logo.gif'></a><!--<input type='submit' name='ensembl' value='ensembl' onClick=\"javascript:document.display$regseq_counter.resource.value='ensembl';\">--></div></td></form>"; } --- 808,814 ---- print "<td width='300' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'>chr".$regseq->chromosome.":".$regseq->start."-".$regseq->end." (strand ".$regseq->strand.")</div></td>"; ! print "<form name='display$regseq_counter' method='post' action='$pazar_cgi/gff_custom_track.cgi' enctype='multipart/form-data' target='_blank'>"; ! print "<td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><input type='hidden' name='chr' value='".$regseq->chromosome."'><input type='hidden' name='start' value='".$regseq->start."'><input type='hidden' name='end' value='".$regseq->end."'><input type='hidden' name='species' value='".$regseq->binomial_species."'><input type='hidden' name='resource' value='ucsc'><a href='#' onClick=\"javascript:document.display$regseq_counter.resource.value='ucsc';document.display$regseq_counter.submit();\"><img src='$pazar_html/images/ucsc_logo.png'></a><!--<input type='submit' name='ucsc' value='ucsc' onClick=\"javascript:document.display$regseq_counter.resource.value='ucsc';\">--><br><br><a href='#' onClick=\"javascript:document.display$regseq_counter.resource.value='ensembl';document.display$regseq_counter.submit();\"><img src='$pazar_html/images/ensembl_logo.gif'></a><!--<input type='submit' name='ensembl' value='ensembl' onClick=\"javascript:document.display$regseq_counter.resource.value='ensembl';\">--></div></td></form>"; } *************** *** 819,823 **** my $count=0; $tfname=~s/\//-/g; ! my $file="/space/usr/local/apache/pazar.info/tmp/".$tfname.".fa"; open (TMP, ">$file"); --- 825,829 ---- my $count=0; $tfname=~s/\//-/g; ! my $file="$pazarhtdocspath/tmp/".$tfname.".fa"; open (TMP, ">$file"); *************** *** 845,849 **** <table class="summarytable"> <tr><td class="tftabletitle"><span class="title4">TF Name</span></td><td class="basictd">$tfname</td></tr> ! <tr><td class="tftabletitle"><span class="title4">PAZAR TF ID</span></td><td class="basictd"><a href="http://www.pazar.info/cgi-bin/tf_search.cgi?geneID=$tfname">$pazartfid</a></td></tr> <tr><td class="tftabletitle"><span class="title4">Transcript Accession</span></td><td class="basictd">$traccns</td></tr> <tr><td class="tftabletitle"><span class="title4">Class</span></td><td class="basictd">$trclasses</td></tr> --- 851,855 ---- <table class="summarytable"> <tr><td class="tftabletitle"><span class="title4">TF Name</span></td><td class="basictd">$tfname</td></tr> ! <tr><td class="tftabletitle"><span class="title4">PAZAR TF ID</span></td><td class="basictd"><a href="$pazar_cgi/tf_search.cgi?geneID=$tfname">$pazartfid</a></td></tr> <tr><td class="tftabletitle"><span class="title4">Transcript Accession</span></td><td class="basictd">$traccns</td></tr> <tr><td class="tftabletitle"><span class="title4">Class</span></td><td class="basictd">$trclasses</td></tr> *************** *** 902,911 **** print "<tr><td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><input type='checkbox' name='seq$seqcounter' value='".$site->get_seq."'><br>Genomic<br>Sequence</div></td>"; ! print "<td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><a href=\"http://www.pazar.info/cgi-bin/seq_search.cgi?regid=$rsid\">".$id."</a><br>$seqname</div></td>";; ! print "<td width='150' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><a href=\"http://www.pazar.info/cgi-bin/gene_search.cgi?geneID=$gene_accession\">".$pazargeneid."</a><br><b>$ens_coords[5]</b><br>$species</div></td>";; print "<td width='300' class=\"basictd\" bgcolor=\"$colors{$bg_color}\"><div style=\"font-family:monospace;height:100; width:300;overflow:auto;\">".chopstr($site->get_seq,40)."</div></td>"; print "<td width='300' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><b>Coordinates:</b><br>".$coord."</div></td>"; ! print "<td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><a href=\"http://www.pazar.info/cgi-bin/gff_custom_track.cgi?resource=ucsc&chr=".$reg_seq->chromosome."&start=".$reg_seq->start."&end=".$reg_seq->end."&species=".$reg_seq->binomial_species."\"; target='_blank'><img src='http://www.pazar.info/images/ucsc_logo.png'></a><br><br>";; ! print "<a href=\"http://www.pazar.info/cgi-bin/gff_custom_track.cgi?resource=ensembl&chr=".$reg_seq->chromosome."&start=".$reg_seq->start."&end=".$reg_seq->end."&species=".$reg_seq->binomial_species."\"; target='_blank'><img src='http://www.pazar.info/images/ensembl_logo.gif'></a>";; print "</div></td>"; } --- 908,917 ---- print "<tr><td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><input type='checkbox' name='seq$seqcounter' value='".$site->get_seq."'><br>Genomic<br>Sequence</div></td>"; ! print "<td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><a href=\"$pazar_cgi/seq_search.cgi?regid=$rsid\">".$id."</a><br>$seqname</div></td>"; ! print "<td width='150' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><a href=\"$pazar_cgi/gene_search.cgi?geneID=$gene_accession\">".$pazargeneid."</a><br><b>$ens_coords[5]</b><br>$species</div></td>"; print "<td width='300' class=\"basictd\" bgcolor=\"$colors{$bg_color}\"><div style=\"font-family:monospace;height:100; width:300;overflow:auto;\">".chopstr($site->get_seq,40)."</div></td>"; print "<td width='300' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><b>Coordinates:</b><br>".$coord."</div></td>"; ! print "<td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><a href=\"$pazar_cgi/gff_custom_track.cgi?resource=ucsc&chr=".$reg_seq->chromosome."&start=".$reg_seq->start."&end=".$reg_seq->end."&species=".$reg_seq->binomial_species."\" target='_blank'><img src='$pazar_html/images/ucsc_logo.png'></a><br><br>"; ! print "<a href=\"$pazar_cgi/gff_custom_track.cgi?resource=ensembl&chr=".$reg_seq->chromosome."&start=".$reg_seq->start."&end=".$reg_seq->end."&species=".$reg_seq->binomial_species."\" target='_blank'><img src='$pazar_html/images/ensembl_logo.gif'></a>"; print "</div></td>"; } *************** *** 964,969 **** #draw the logo my $logo = $tfname.".png"; ! my $gd_image = $pfm->draw_logo(-file=>"/space/usr/local/apache/pazar.info/tmp/".$logo, -xsize=>400); ! print "<tr><td><span class=\"title4\">Logo</span></td><td><img src=\"http://www.pazar.info/tmp/$logo\">";; print "<p class=\"small\">These PFM and Logo were generated dynamically using the MEME pattern discovery algorithm.</p></td></tr>"; print "</table><br>"; --- 970,975 ---- #draw the logo my $logo = $tfname.".png"; ! my $gd_image = $pfm->draw_logo(-file=>"$pazarhtdocspath/tmp/".$logo, -xsize=>400); ! print "<tr><td><span class=\"title4\">Logo</span></td><td><img src=\"$pazar_html/tmp/$logo\">"; print "<p class=\"small\">These PFM and Logo were generated dynamically using the MEME pattern discovery algorithm.</p></td></tr>"; print "</table><br>"; Index: register.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/register.pl,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** register.pl 25 Sep 2006 18:24:14 -0000 1.13 --- register.pl 25 May 2007 00:09:15 -0000 1.14 *************** *** 5,9 **** use HTML::Template; ! require 'getsession.pl'; my $query=new CGI; --- 5,13 ---- use HTML::Template; ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! ! require "$pazarcgipath/getsession.pl"; my $query=new CGI; *************** *** 18,25 **** # open the html header template ! my $template = HTML::Template->new(filename => 'header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR User Registration'); $template->param(JAVASCRIPT_FUNCTION => q{function verify() { var themessage = "You are required to complete the following fields: "; --- 22,31 ---- # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR User Registration'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); $template->param(JAVASCRIPT_FUNCTION => q{function verify() { var themessage = "You are required to complete the following fields: "; *************** *** 87,91 **** if($loggedin eq 'true') { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. ".'<a href=\'logout.pl\'>Log Out</a>'); # send the obligatory Content-Type and print the template output print "Content-Type: text/html\n\n", $template->output; --- 93,97 ---- if($loggedin eq 'true') { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. "."<a href=\'$pazar_cgi/logout.pl\'>Log Out</a>"); # send the obligatory Content-Type and print the template output print "Content-Type: text/html\n\n", $template->output; *************** *** 94,98 **** } else { #log in link ! $template->param(LOGOUT => '<a href=\'login.pl\'>Log In</a>'); # send the obligatory Content-Type and print the template output print "Content-Type: text/html\n\n", $template->output; --- 100,104 ---- } else { #log in link ! $template->param(LOGOUT => "<a href=\'$pazar_cgi/login.pl\'>Log In</a>"); # send the obligatory Content-Type and print the template output print "Content-Type: text/html\n\n", $template->output; *************** *** 153,157 **** #print confirmation print "<p >User account successfully created"; ! print "<br>To begin creating projects for this user, click the button below<br><form method='post' action='dologin.pl'><input type='hidden' name='project' value='true'><input type='hidden' name='mode' value='login'><input type='hidden' name='username' value='$params{username}'><input type='hidden' name='password' value='$params{password}'><input type='submit' name='submit' value='Add Projects'></form></p></body></html>"; } --- 159,163 ---- #print confirmation print "<p >User account successfully created"; ! print "<br>To begin creating projects for this user, click the button below<br><form method='post' action='$pazar_cgi/dologin.pl'><input type='hidden' name='project' value='true'><input type='hidden' name='mode' value='login'><input type='hidden' name='username' value='$params{username}'><input type='hidden' name='password' value='$params{password}'><input type='submit' name='submit' value='Add Projects'></form></p></body></html>"; } *************** *** 171,175 **** ! print "<FORM name=\"regform\" method=\"POST\" action=\"register.pl\">"; print "<table>"; print "<tr><td valign='top'>User name <br>(use a valid email address; <br>pazar messages will be sent here)</td><td valign='top'> <input type=\"text\" name=\"username\" maxlength=64"; --- 177,181 ---- ! print "<FORM name=\"regform\" method=\"POST\" action=\"$pazar_cgi/register.pl\">"; print "<table>"; print "<tr><td valign='top'>User name <br>(use a valid email address; <br>pazar messages will be sent here)</td><td valign='top'> <input type=\"text\" name=\"username\" maxlength=64"; *************** *** 212,216 **** <p class="title1">PAZAR User Registration</p> ! <FORM name="regform" method="POST" action="register.pl"> <table> <tr><td valign="top">User name <br>(use a valid email address; <br>pazar messages will be sent here)</td><td valign='top'> <input type="text" name="username" maxlength=64></td></tr> --- 218,222 ---- <p class="title1">PAZAR User Registration</p> ! <FORM name="regform" method="POST" action="$pazar_cgi/register.pl"> <table> <tr><td valign="top">User name <br>(use a valid email address; <br>pazar messages will be sent here)</td><td valign='top'> <input type="text" name="username" maxlength=64></td></tr> *************** *** 233,236 **** # print out the html tail template ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 239,242 ---- # print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; Index: logout.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/logout.pl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** logout.pl 2 May 2006 22:19:21 -0000 1.3 --- logout.pl 25 May 2007 00:09:15 -0000 1.4 *************** *** 28,35 **** #--------------------------------------------------------------# print $query->header(-cookie=>$pazarCookie); ! my $template = HTML::Template->new(filename => 'header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR Logout'); print $template->output; --- 28,41 ---- #--------------------------------------------------------------# + my $pazar_cgi = $ENV{PAZAR_CGI}; + my $pazar_html = $ENV{PAZAR_HTML}; + my $pazarcgipath = $ENV{PAZARCGIPATH}; + print $query->header(-cookie=>$pazarCookie); ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR Logout'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); print $template->output; *************** *** 39,42 **** # 5. End the HTML page. # #-------------------------# ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 45,48 ---- # 5. End the HTML page. # #-------------------------# ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; Index: validator.cgi =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/validator.cgi,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** validator.cgi 25 May 2006 18:42:36 -0000 1.3 --- validator.cgi 25 May 2007 00:09:16 -0000 1.4 *************** *** 11,15 **** my $file = "mycgi-log".$randnum; ! open(LOG, ">>/usr/local/apache/pazar.info/cgi-bin/cgi-logs/$file") or die("Unable to open mycgi-log: $!\n"); carpout(LOG); --- 11,20 ---- my $file = "mycgi-log".$randnum; ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! my $pazarhtdocspath = $ENV{PAZARHTDOCSPATH}; ! ! open(LOG, ">>$pazarcgipath/cgi-logs/$file") or die("Unable to open mycgi-log: $!\n"); carpout(LOG); *************** *** 22,29 **** # open the html header template ! my $template = HTML::Template->new(filename => 'header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR XML format'); # send the obligatory Content-Type and print the template output --- 27,36 ---- # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR XML format'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); # send the obligatory Content-Type and print the template output *************** *** 40,44 **** } elsif (-e $xml_file) { ! open(OUTFILE,">/usr/local/apache/pazar.info/tmp/$xml_file"); my($bytesread,$buffer); binmode(OUTFILE); --- 47,51 ---- } elsif (-e $xml_file) { ! open(OUTFILE,">$pazarhtdocspath/tmp/$xml_file"); my($bytesread,$buffer); binmode(OUTFILE); *************** *** 58,62 **** print "<p class=\"title2\">Sorry!<br>"; print "Your file $xml_file is to big for this tool!<br><br></p>\n"; ! unlink("/usr/local/apache/pazar.info/tmp/$xml_file"); } --- 65,69 ---- print "<p class=\"title2\">Sorry!<br>"; print "Your file $xml_file is to big for this tool!<br><br></p>\n"; ! unlink("$pazarhtdocspath/tmp/$xml_file"); } *************** *** 65,69 **** eval { local $XML::Checker::FAIL = \&my_fail; ! $xp->parsefile("/usr/local/apache/pazar.info/tmp/$xml_file"); }; close (LOG); --- 72,76 ---- eval { local $XML::Checker::FAIL = \&my_fail; ! $xp->parsefile("$pazarhtdocspath/tmp/$xml_file"); }; close (LOG); *************** *** 73,77 **** print "Your file $xml_file failed validation!<br><br></p>\n"; ! open(ERRLOG, "/usr/local/apache/pazar.info/cgi-bin/cgi-logs/$file") or die("Unable to open mycgi-log: $!\n"); while (<ERRLOG>) { --- 80,84 ---- print "Your file $xml_file failed validation!<br><br></p>\n"; ! open(ERRLOG, "$pazarcgipath/cgi-logs/$file") or die("Unable to open mycgi-log: $!\n"); while (<ERRLOG>) { *************** *** 79,83 **** } close (ERRLOG); ! unlink("/usr/local/apache/pazar.info/cgi-bin/cgi-logs/$file"); } else { --- 86,90 ---- } close (ERRLOG); ! unlink("$pazarcgipath/cgi-logs/$file"); } else { *************** *** 86,90 **** } ! unlink("/usr/local/apache/pazar.info/tmp/$xml_file"); } else { --- 93,97 ---- } ! unlink("$pazarhtdocspath/tmp/$xml_file"); } else { *************** *** 93,97 **** # print out the html tail template ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 100,104 ---- # print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; Index: help_FAQ.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/help_FAQ.pl,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** help_FAQ.pl 7 May 2007 21:29:12 -0000 1.6 --- help_FAQ.pl 25 May 2007 00:09:15 -0000 1.7 *************** *** 3,11 **** use HTML::Template; # open the html header template ! my $template = HTML::Template->new(filename => 'header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR FAQ'); # send the obligatory Content-Type and print the template output --- 3,17 ---- use HTML::Template; + my $pazar_cgi = $ENV{PAZAR_CGI}; + my $pazar_html = $ENV{PAZAR_HTML}; + my $pazarcgipath = $ENV{PAZARCGIPATH}; + # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR FAQ'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); # send the obligatory Content-Type and print the template output *************** *** 17,40 **** <p class="title3">What is PAZAR?</p> ! <ul type=disc><li><span style='font-family: ! Verdana'>A software framework for the construction and maintenance of regulatory sequence data annotations which allows multiple boutique databases to function independently within a larger system (or information mall). For more information, see the <a href='http://www.pazar.info/cgi-bin/overview.pl'>Overview</a> section.</span></li></ul> <p class="title3">How does one browse PAZAR?</p> ! <ul type=disc><li><span style='font-family: ! Verdana'>Click on 'Genes', 'TFMART' or 'TF PROFILES' to search for regulated genes, transcription factors or transcription factor binding profiles respectively.</span></li></ul> ! <ul type=disc><li><span style='font-family: ! Verdana'>Select the features of interest and browse results.</span></li></ul> <p class="title3">How does one enter data in PAZAR?</p> ! <ul type=disc><li><span style='font-family: ! Verdana'>Register under the <a href='http://www.pazar.info/cgi-bin/register.pl'>Register</a> section.</span></li></ul> ! <ul type=disc><li><span style='font-family: ! Verdana'>Click on <a href='http://www.pazar.info/cgi-bin/editprojects.pl'>My Projects</a> to see all the projects you belong to and to create new ones.</span></li></ul> ! <ul type=disc><li><span style='font-family: ! Verdana'>Click on <a href='http://www.pazar.info/cgi-bin/sWI/entry.pl'>Submit</a> to enter new data. For more detailed questions on the submission interface, see the <a href="#FAQTOPICS">FAQ topics</a> section below.</span></li></ul> ! <ul type=disc><li><span style='font-family: ! Verdana'>If one has a pre-existing dataset, an automated data import can be realized upon contacting the PAZAR development team.</span></li></ul> <p class="title3"><a name='FAQTOPICS'></a>FAQ TOPICS</p> --- 23,39 ---- <p class="title3">What is PAZAR?</p> ! <ul type=disc><li>A software framework for the construction and maintenance of regulatory sequence data annotations which allows multiple boutique databases to function independently within a larger system (or information mall). For more information, see the <a href="$pazar_cgi/overview.pl">Overview</a> section.</li></ul> <p class="title3">How does one browse PAZAR?</p> ! <ul type=disc><li>Click on 'Genes', 'TFMART' or 'TF PROFILES' to search for regulated genes, transcription factors or transcription factor binding profiles respectively.</li></ul> ! <ul type=disc><li>Select the features of interest and browse results.</li></ul> <p class="title3">How does one enter data in PAZAR?</p> ! <ul type=disc><li>Register under the <a href="$pazar_cgi/register.pl">Register</a> section.</li></ul> ! <ul type=disc><li>Click on <a href="$pazar_cgi/editprojects.pl">My Projects</a> to see all the projects you belong to and to create new ones.</li></ul> ! <ul type=disc><li>Click on <a href="$pazar_cgi/sWI/entry.pl">Submit</a> to enter new data. For more detailed questions on the submission interface, see the <a href="#FAQTOPICS">FAQ topics</a> section below.</li></ul> ! <ul type=disc><li>If one has a pre-existing dataset, an automated data import can be realized upon contacting the PAZAR development team.</li></ul> <p class="title3"><a name='FAQTOPICS'></a>FAQ TOPICS</p> *************** *** 61,65 **** <p class="title3">PAZAR User Interface Screenshots</p> ! <a href="http://www.pazar.info/images/PAZAR_Screenshots_100406.pdf">PAZAR Screenshots (10-04-06)</a> --- 60,64 ---- <p class="title3">PAZAR User Interface Screenshots</p> ! <a href="$pazar_html/images/PAZAR_Screenshots_100406.pdf">PAZAR Screenshots (10-04-06)</a> *************** *** 134,138 **** in "identical" transient transfection expression assays in 2 or more papers, can mutants of that sequence from both papers be submitted to PAZAR as a part of a single experimental assay? <img border=0 width=350 ! src="http://pazar.info/images/FAQ-Figure.gif"> </span></p> </td> <td class='basictd'> --- 133,137 ---- in "identical" transient transfection expression assays in 2 or more papers, can mutants of that sequence from both papers be submitted to PAZAR as a part of a single experimental assay? <img border=0 width=350 ! src="$pazar_html/images/FAQ-Figure.gif"> </span></p> </td> <td class='basictd'> *************** *** 475,478 **** # print out the html tail template ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 474,477 ---- # print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; Index: delete.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/delete.pl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** delete.pl 23 Mar 2006 00:44:40 -0000 1.2 --- delete.pl 25 May 2007 00:09:15 -0000 1.3 *************** *** 4,11 **** use DBI; ! my $DBUSER = "pazaradmin"; ! my $DBPASS = "32paz10"; ! my $DBURL = "DBI:mysql:dbname=pazar;host=napa.cmmt.ubc.ca"; my $dbh = DBI->connect($DBURL,$DBUSER,$DBPASS) --- 4,13 ---- use DBI; + my $dbname = $ENV{PAZAR_name}; + my $dbhost = $ENV{PAZAR_host}; ! my $DBUSER = $ENV{PAZAR_adminuser}; ! my $DBPASS = $ENV{PAZAR_adminpass}; ! my $DBURL = "DBI:mysql:dbname=$dbname;host=$dbhost"; my $dbh = DBI->connect($DBURL,$DBUSER,$DBPASS) Index: tf_list.cgi =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/tf_list.cgi,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** tf_list.cgi 4 May 2007 18:14:52 -0000 1.19 --- tf_list.cgi 25 May 2007 00:09:15 -0000 1.20 *************** *** 14,18 **** use constant DB_HOST => $ENV{PAZAR_host}; ! require 'getsession.pl'; my $get = new CGI; --- 14,22 ---- use constant DB_HOST => $ENV{PAZAR_host}; ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! ! require "$pazarcgipath/getsession.pl"; my $get = new CGI; *************** *** 144,152 **** print " <tr><td width='750'><li><a href=\"#$div_id\" onclick = \"showHide('$div_id');\">$proj_name</a></li></td></tr><tr><td width='750'> <div id=\"$div_id\" style=\"$style\"><table width='750' class='summarytable'><tr>"; ! print "<td class='tftabletitle' width='100'><form name=\"species_browse\" method=\"post\" action=\"http://www.pazar.info/cgi-bin/tf_list.cgi\"; enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='species'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"Species\"></form></td>"; ! print "<td class='tftabletitle' width='80'><form name=\"ID_browse\" method=\"post\" action=\"http://www.pazar.info/cgi-bin/tf_list.cgi\"; enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='ID'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"PAZAR TF ID\"></form></td>"; ! print "<td class='tftabletitle' width='80'><form name=\"desc_browse\" method=\"post\" action=\"http://www.pazar.info/cgi-bin/tf_list.cgi\"; enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='desc'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"TF name\"><small>(user defined)</small></form></td>"; ! print "<td class='tftabletitle' width='80'><form name=\"accn_browse\" method=\"post\" action=\"http://www.pazar.info/cgi-bin/tf_list.cgi\"; enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='accn'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"EnsEMBL Transcript ID\"></form></td>"; ! print "<td class='tftabletitle' width='120'><form name=\"ens_desc_browse\" method=\"post\" action=\"http://www.pazar.info/cgi-bin/tf_list.cgi\"; enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='class'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"TF Class/Family\"></form></td>"; print "</tr>"; --- 148,156 ---- print " <tr><td width='750'><li><a href=\"#$div_id\" onclick = \"showHide('$div_id');\">$proj_name</a></li></td></tr><tr><td width='750'> <div id=\"$div_id\" style=\"$style\"><table width='750' class='summarytable'><tr>"; ! print "<td class='tftabletitle' width='100'><form name=\"species_browse\" method=\"post\" action=\"$pazar_cgi/tf_list.cgi\" enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='species'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"Species\"></form></td>"; ! print "<td class='tftabletitle' width='80'><form name=\"ID_browse\" method=\"post\" action=\"$pazar_cgi/tf_list.cgi\" enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='ID'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"PAZAR TF ID\"></form></td>"; ! print "<td class='tftabletitle' width='80'><form name=\"desc_browse\" method=\"post\" action=\"$pazar_cgi/tf_list.cgi\" enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='desc'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"TF name\"><small>(user defined)</small></form></td>"; ! print "<td class='tftabletitle' width='80'><form name=\"accn_browse\" method=\"post\" action=\"$pazar_cgi/tf_list.cgi\" enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='accn'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"EnsEMBL Transcript ID\"></form></td>"; ! print "<td class='tftabletitle' width='120'><form name=\"ens_desc_browse\" method=\"post\" action=\"$pazar_cgi/tf_list.cgi\" enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='class'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"TF Class/Family\"></form></td>"; print "</tr>"; Index: GFF.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/GFF.pl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** GFF.pl 12 Jun 2006 17:31:34 -0000 1.3 --- GFF.pl 25 May 2007 00:09:15 -0000 1.4 *************** *** 3,11 **** use HTML::Template; # open the html header template ! my $template = HTML::Template->new(filename => 'header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR GFF format'); # send the obligatory Content-Type and print the template output --- 3,17 ---- use HTML::Template; + my $pazar_cgi = $ENV{PAZAR_CGI}; + my $pazar_html = $ENV{PAZAR_HTML}; + my $pazarcgipath = $ENV{PAZARCGIPATH}; + # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR GFF format'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); # send the obligatory Content-Type and print the template output *************** *** 60,63 **** # print out the html tail template ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 66,69 ---- # print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; Index: gene_list.cgi =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/gene_list.cgi,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** gene_list.cgi 8 Dec 2006 00:44:24 -0000 1.20 --- gene_list.cgi 25 May 2007 00:09:15 -0000 1.21 *************** *** 14,18 **** use constant DB_HOST => $ENV{PAZAR_host}; ! require 'getsession.pl'; my $get = new CGI; --- 14,21 ---- use constant DB_HOST => $ENV{PAZAR_host}; ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! ! require "$pazarcgipath/getsession.pl"; my $get = new CGI; *************** *** 144,152 **** print " <tr><td width='750'><li><a href=\"#$div_id\" onclick = \"showHide('$div_id');\">$proj_name</a></li></td></tr><tr><td width='750'> <div id=\"$div_id\" style=\"$style\"><table width='750' class='summarytable'><tr>"; ! print "<td class='genedetailstabletitle' width='100'><form name=\"species_browse\" method=\"post\" action=\"http://www.pazar.info/cgi-bin/gene_list.cgi\"; enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='species'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"Species\"></form></td>"; ! print "<td class='genedetailstabletitle' width='80'><form name=\"ID_browse\" method=\"post\" action=\"http://www.pazar.info/cgi-bin/gene_list.cgi\"; enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='ID'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"PAZAR Gene ID\"></form></td>"; ! print "<td class='genedetailstabletitle' width='80'><form name=\"desc_browse\" method=\"post\" action=\"http://www.pazar.info/cgi-bin/gene_list.cgi\"; enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='desc'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"Gene name\"><small>(user defined)</small></form></td>"; ! print "<td class='genedetailstabletitle' width='80'><form name=\"accn_browse\" method=\"post\" action=\"http://www.pazar.info/cgi-bin/gene_list.cgi\"; enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='accn'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"EnsEMBL Gene ID\"></form></td>"; ! print "<td class='genedetailstabletitle' width='120'><form name=\"ens_desc_browse\" method=\"post\" action=\"http://www.pazar.info/cgi-bin/gene_list.cgi\"; enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='ens_desc'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"EnsEMBL Gene Description\"></form></td>"; print "</tr>"; --- 147,155 ---- print " <tr><td width='750'><li><a href=\"#$div_id\" onclick = \"showHide('$div_id');\">$proj_name</a></li></td></tr><tr><td width='750'> <div id=\"$div_id\" style=\"$style\"><table width='750' class='summarytable'><tr>"; ! print "<td class='genedetailstabletitle' width='100'><form name=\"species_browse\" method=\"post\" action=\"$pazar_cgi/gene_list.cgi\" enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='species'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"Species\"></form></td>"; ! print "<td class='genedetailstabletitle' width='80'><form name=\"ID_browse\" method=\"post\" action=\"$pazar_cgi/gene_list.cgi\" enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='ID'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"PAZAR Gene ID\"></form></td>"; ! print "<td class='genedetailstabletitle' width='80'><form name=\"desc_browse\" method=\"post\" action=\"$pazar_cgi/gene_list.cgi\" enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='desc'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"Gene name\"><small>(user defined)</small></form></td>"; ! print "<td class='genedetailstabletitle' width='80'><form name=\"accn_browse\" method=\"post\" action=\"$pazar_cgi/gene_list.cgi\" enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='accn'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"EnsEMBL Gene ID\"></form></td>"; ! print "<td class='genedetailstabletitle' width='120'><form name=\"ens_desc_browse\" method=\"post\" action=\"$pazar_cgi/gene_list.cgi\" enctype=\"multipart/form-data\" target=\"_self\"><input type='hidden' name='BROWSE' value='ens_desc'><input type='hidden' name='opentable' value='$proj_name'><input type=\"submit\" class=\"submitLink\" value=\"EnsEMBL Gene Description\"></form></td>"; print "</tr>"; Index: profilesearch.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/profilesearch.pl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** profilesearch.pl 15 May 2006 16:26:29 -0000 1.1 --- profilesearch.pl 25 May 2007 00:09:15 -0000 1.2 *************** *** 3,31 **** use HTML::Template; ! use pazar; ! ! use constant DB_DRV => 'mysql'; ! use constant DB_NAME => $ENV{PAZAR_name}; ! use constant DB_USER => $ENV{PAZAR_pubuser}; ! use constant DB_PASS => $ENV{PAZAR_pubpass}; ! use constant DB_HOST => $ENV{PAZAR_host}; ! require 'getsession.pl'; # open the html header template ! my $template = HTML::Template->new(filename => 'header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR Profile Search'); if($loggedin eq 'true') { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. ".'<a href=\'logout.pl\'>Log Out</a>'); } else { #log in link ! $template->param(LOGOUT => '<a href=\'login.pl\'>Log In</a>'); } --- 3,29 ---- use HTML::Template; ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! require "$pazarcgipath/getsession.pl"; # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR Profile Search'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); if($loggedin eq 'true') { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. "."<a href=\'$pazar_cgi/logout.pl\'>Log Out</a>"); } else { #log in link ! $template->param(LOGOUT => "<a href=\'$pazar_cgi/login.pl\'>Log In</a>"); } *************** *** 36,42 **** <p class="title1">PAZAR Profile Search</p> <p><span class="title4">Description</span><br> ! This search engine is for pre-computed profiles stored in the PAZAR boutiques.<br>They might not be linked to the sequences used to built them and even not to an identifiable transcription factor. For instance, they might have been built from multiple species and/or multiple factors presenting similar binding properties.<br>If you want to build a profile from a specific Transcription Factor using all its annotated binding sites, use the <a href="http://www.pazar.info/cgi-bin/tfsearch.pl">TF Search Engine</a> where profiles are generated dynamically.</p> <p><span class=\"title4\">Search Engine</span><br> ! <FORM method='post' action ='http://www.pazar.info/cgi-bin/export_profile.cgi'; enctype="multipart/form-data" target="_self">Sort Profiles by: <input type="hidden" name="mode" value="list"> <input type="submit" name="BROWSE" value="Project"> --- 34,40 ---- <p class="title1">PAZAR Profile Search</p> <p><span class="title4">Description</span><br> ! This search engine is for pre-computed profiles stored in the PAZAR boutiques.<br>They might not be linked to the sequences used to built them and even not to an identifiable transcription factor. For instance, they might have been built from multiple species and/or multiple factors presenting similar binding properties.<br>If you want to build a profile from a specific Transcription Factor using all its annotated binding sites, use the <a href="$pazar_cgi/tfsearch.pl">TF Search Engine</a> where profiles are generated dynamically.</p> <p><span class=\"title4\">Search Engine</span><br> ! <FORM method='post' action ="$pazar_cgi/export_profile.cgi" enctype="multipart/form-data" target="_self">Sort Profiles by: <input type="hidden" name="mode" value="list"> <input type="submit" name="BROWSE" value="Project"> *************** *** 48,52 **** # print out the html tail template ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 46,50 ---- # print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; Index: dologin.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/dologin.pl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** dologin.pl 29 Aug 2006 22:28:42 -0000 1.5 --- dologin.pl 25 May 2007 00:09:15 -0000 1.6 *************** *** 11,14 **** --- 11,18 ---- my %params = %{$query->Vars}; + my $pazar_cgi = $ENV{PAZAR_CGI}; + my $pazar_html = $ENV{PAZAR_HTML}; + my $pazarcgipath = $ENV{PAZARCGIPATH}; + my $dbname = $ENV{PAZAR_name}; my $dbhost = $ENV{PAZAR_host}; *************** *** 69,76 **** #store other attributes # open the html header template ! my $template = HTML::Template->new(filename => 'header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR Login'); --- 73,82 ---- #store other attributes # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR Login'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); *************** *** 83,87 **** #go to editprojects.pl script print<<Page; ! <FORM name="editprojects" method="POST" action="editprojects.pl"> <input type="hidden" name="username"> <input type="hidden" name="password"> --- 89,93 ---- #go to editprojects.pl script print<<Page; ! <FORM name="editprojects" method="POST" action="$pazar_cgi/editprojects.pl"> <input type="hidden" name="username"> <input type="hidden" name="password"> *************** *** 96,100 **** #go to entry.pl script print<<Page2; ! <FORM name="submission" method="POST" action="http://www.pazar.info/cgi-bin/sWI/entry.pl"> <input type="hidden" name="username"> <input type="hidden" name="password"> --- 102,106 ---- #go to entry.pl script print<<Page2; ! <FORM name="submission" method="POST" action="$pazar_cgi/sWI/entry.pl"> <input type="hidden" name="username"> <input type="hidden" name="password"> *************** *** 110,114 **** print<<refresh; <script language='JavaScript'> ! document.location.href='http://www.pazar.info/cgi-bin/index.pl';; </script> --- 116,120 ---- print<<refresh; <script language='JavaScript'> ! document.location.href="$pazar_cgi/index.pl"; </script> *************** *** 119,126 **** { # open the html header template ! my $template = HTML::Template->new(filename => 'header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR Login'); --- 125,134 ---- { # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR Login'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); *************** *** 132,136 **** <p class="title1">PAZAR Login</p> ! <FORM method="POST" action="dologin.pl"> <table> <tr><td >User name</td><td> <input type="text" name="username"></td></tr> --- 140,144 ---- <p class="title1">PAZAR Login</p> ! <FORM method="POST" action="$pazar_cgi/dologin.pl"> <table> <tr><td >User name</td><td> <input type="text" name="username"></td></tr> *************** *** 143,146 **** } ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 151,154 ---- } ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; Index: step2.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/step2.pl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** step2.pl 9 Jan 2007 01:47:23 -0000 1.2 --- step2.pl 25 May 2007 00:09:15 -0000 1.3 *************** *** 3,11 **** use HTML::Template; # open the html header template ! my $template = HTML::Template->new(filename => 'header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR XML writing Step 2'); # send the obligatory Content-Type and print the template output --- 3,17 ---- use HTML::Template; + my $pazar_cgi = $ENV{PAZAR_CGI}; + my $pazar_html = $ENV{PAZAR_HTML}; + my $pazarcgipath = $ENV{PAZARCGIPATH}; + # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR XML writing Step 2'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); # send the obligatory Content-Type and print the template output *************** *** 17,21 **** <p class="title3"><a name="Step2_TOP"></a>Step2: Capturing the regulatory sequence and/or TF basic information</p> <div style="text-align: justify;">Once the project ! element has been defined (<a href="http://www.pazar.info/cgi-bin/step1.pl">see Step 1</a>), you are ready to enter sequence and transcription factor information. These will be entered within the 'data' element, which is a child element within the 'pazar' element. --- 23,27 ---- <p class="title3"><a name="Step2_TOP"></a>Step2: Capturing the regulatory sequence and/or TF basic information</p> <div style="text-align: justify;">Once the project ! element has been defined (<a href="$pazar_cgi/step1.pl">see Step 1</a>), you are ready to enter sequence and transcription factor information. These will be entered within the 'data' element, which is a child element within the 'pazar' element. *************** *** 31,35 **** <div style="text-align: justify;">The 'data' element stores all the annotations separately. They will be linked together ! later in the 'analysis' element (<a href="http://www.pazar.info/cgi-bin/step3.pl">see Step 3</a>). <br> --- 37,41 ---- <div style="text-align: justify;">The 'data' element stores all the annotations separately. They will be linked together ! later in the 'analysis' element (<a href="$pazar_cgi/step3.pl">see Step 3</a>). <br> *************** *** 152,156 **** <span style="margin-left: 0.5in; text-decoration: underline;"><a name="Regulatory_Sequence_without_gene_info">2.2 - ! Annotating a Regulatory Sequence without any gene information</a></span><small><span style="margin-left: 0.1in;"> <a href="http://www.pazar.info/cgi-bin/step2.pl#Step2_TOP">TOP</a></span></small> <div style="text-align: justify;"><span>The 'reg_seq' element can also be embedded in a 'marker' element if the --- 158,162 ---- <span style="margin-left: 0.5in; text-decoration: underline;"><a name="Regulatory_Sequence_without_gene_info">2.2 - ! Annotating a Regulatory Sequence without any gene information</a></span><small><span style="margin-left: 0.1in;"> <a href="$pazar_cgi/step2.pl#Step2_TOP">TOP</a></span></small> <div style="text-align: justify;"><span>The 'reg_seq' element can also be embedded in a 'marker' element if the *************** *** 213,217 **** </small><span style="margin-left: 0.5in; text-decoration: underline;"><a name="Transcription_Factor">2.3 - ! Annotating a Transcription Factor</a></span><small><span style="margin-left: 0.1in;"> <a href="http://www.pazar.info/cgi-bin/step2.pl#Step2_TOP">TOP</a></span></small><br> <div style="text-align: justify;"><span>A --- 219,223 ---- </small><span style="margin-left: 0.5in; text-decoration: underline;"><a name="Transcription_Factor">2.3 - ! Annotating a Transcription Factor</a></span><small><span style="margin-left: 0.1in;"> <a href="$pazar_cgi/step2.pl#Step2_TOP">TOP</a></span></small><br> <div style="text-align: justify;"><span>A *************** *** 285,289 **** </small><span style="margin-left: 0.5in; text-decoration: underline;"><a name="Artificial_sequence">2.4 - ! Annotating an Artificial Sequence</a></span><small><span style="margin-left: 0.1in;"> <a href="http://www.pazar.info/cgi-bin/step2.pl#Step2_TOP">TOP</a></span></small><br> <span></span> --- 291,295 ---- </small><span style="margin-left: 0.5in; text-decoration: underline;"><a name="Artificial_sequence">2.4 - ! Annotating an Artificial Sequence</a></span><small><span style="margin-left: 0.1in;"> <a href="$pazar_cgi/step2.pl#Step2_TOP">TOP</a></span></small><br> <span></span> *************** *** 312,320 **** <br> ! <a style="text-decoration: none;" href="http://pazar.info/cgi-bin/step1.pl"><input value="<- To Step 1" type="button"></a> <a style="text-decoration: none;" href="http://pazar.info/cgi-bin/step3.pl"><input value="To Step 3 ->" type="button"></a><br><br> page # print out the html tail template ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 318,326 ---- <br> ! <a style="text-decoration: none;" href="$pazar_cgi/step1.pl"><input value="<- To Step 1" type="button"></a> <a style="text-decoration: none;" href="$pazar_cgi/step3.pl"><input value="To Step 3 ->" type="button"></a><br><br> page # print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; Index: tf_logo.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/tf_logo.pl,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** tf_logo.pl 24 Nov 2006 01:23:41 -0000 1.8 --- tf_logo.pl 25 May 2007 00:09:15 -0000 1.9 *************** *** 5,10 **** use pazar::talk; - use HTML::Template; - use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser); --- 5,8 ---- *************** *** 14,18 **** use TFBS::Matrix::PFM; ! use Data::Dumper; #connect to the database --- 12,16 ---- use TFBS::Matrix::PFM; ! #use Data::Dumper; #connect to the database *************** *** 29,32 **** --- 27,33 ---- my $gkdb = pazar::talk->new(DB=>'genekeydb',USER=>$ENV{GKDB_USER},PASS=>$ENV{GKDB_PASS},HOST=>$ENV{GKDB_HOST},DRV=>'mysql'); + my $pazar_html = $ENV{PAZAR_HTML}; + my $pazarhtdocspath = $ENV{PAZARHTDOCSPATH}; + my $get = new CGI; my %param = %{$get->Vars}; *************** *** 50,54 **** my $newaccn = $accn.$randnum; #print "using randum number for filename: $randnum"; ! my $file="/space/usr/local/apache/pazar.info/tmp/".$newaccn.".fa"; open (TMP, ">$file"); --- 51,55 ---- my $newaccn = $accn.$randnum; #print "using randum number for filename: $randnum"; ! my $file="$pazarhtdocspath/tmp/".$newaccn.".fa"; open (TMP, ">$file"); *************** *** 93,98 **** #draw the logo my $logo = $newaccn.".png"; ! my $gd_image = $pfm->draw_logo(-file=>"/space/usr/local/apache/pazar.info/tmp/".$logo, -xsize=>400); ! print "<br><p style=\"font-size: 14pt;\"><b>Logo:</b><br><img src=\"http://www.pazar.info/tmp/$logo\"></p>";; print "<p style=\"font-size: 10pt;\">These PFM and Logo were generated dynamically using the MEME pattern discovery algorithm.</p>"; } --- 94,99 ---- #draw the logo my $logo = $newaccn.".png"; ! my $gd_image = $pfm->draw_logo(-file=>"$pazarhtdocspath/tmp/".$logo, -xsize=>400); ! print "<br><p style=\"font-size: 14pt;\"><b>Logo:</b><br><img src=\"$pazar_html/tmp/$logo\"></p>"; print "<p style=\"font-size: 10pt;\">These PFM and Logo were generated dynamically using the MEME pattern discovery algorithm.</p>"; } Index: login.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/login.pl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** login.pl 3 May 2006 19:06:59 -0000 1.2 --- login.pl 25 May 2007 00:09:15 -0000 1.3 *************** *** 5,21 **** use HTML::Template; ! require 'getsession.pl'; my $query=new CGI; # open the html header template ! my $template = HTML::Template->new(filename => 'header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR Login'); if($loggedin eq 'true') { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. ".'<a href=\'logout.pl\'>Log Out</a>'); # send the obligatory Content-Type and print the template output print "Content-Type: text/html\n\n", $template->output; --- 5,27 ---- use HTML::Template; ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! ! require "$pazarcgipath/getsession.pl"; my $query=new CGI; # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR Login'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); if($loggedin eq 'true') { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. "."<a href=\'$pazar_cgi/logout.pl\'>Log Out</a>"); # send the obligatory Content-Type and print the template output print "Content-Type: text/html\n\n", $template->output; *************** *** 24,28 **** } else { #log in link ! $template->param(LOGOUT => '<a href=\'login.pl\'>Log In</a>'); # send the obligatory Content-Type and print the template output --- 30,34 ---- } else { #log in link ! $template->param(LOGOUT => "<a href=\'$pazar_cgi/login.pl\'>Log In</a>"); # send the obligatory Content-Type and print the template output *************** *** 33,37 **** <p class="title1">PAZAR Login</p> ! <FORM method="POST" action="dologin.pl"> <table> <tr><td >User name</td><td> <input type="text" name="username"></td></tr> --- 39,43 ---- <p class="title1">PAZAR Login</p> ! <FORM method="POST" action="$pazar_cgi/dologin.pl"> <table> <tr><td >User name</td><td> <input type="text" name="username"></td></tr> *************** *** 45,48 **** # print out the html tail template ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 51,54 ---- # print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; Index: overview.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/overview.pl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** overview.pl 15 Aug 2006 17:02:45 -0000 1.2 --- overview.pl 25 May 2007 00:09:15 -0000 1.3 *************** *** 3,11 **** use HTML::Template; # open the html header template ! my $template = HTML::Template->new(filename => 'header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR Project Outline'); # send the obligatory Content-Type and print the template output --- 3,17 ---- use HTML::Template; + my $pazar_cgi = $ENV{PAZAR_CGI}; + my $pazar_html = $ENV{PAZAR_HTML}; + my $pazarcgipath = $ENV{PAZARCGIPATH}; + # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR Project Outline'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); # send the obligatory Content-Type and print the template output *************** *** 33,37 **** to function independently within a larger system (or information mall). Our goal is to be the <b>public repository for regulatory data</b>.</p> ! <p ><a href="http://www.pazar.info/PAZARposter.pdf">Download PAZAR's poster</a></p> <p class="title2">PAZAR's principles:</p> <p >(1) --- 39,43 ---- to function independently within a larger system (or information mall). Our goal is to be the <b>public repository for regulatory data</b>.</p> ! <p ><a href="$pazar_html/PAZARposter.pdf">Download PAZAR's poster</a></p> <p class="title2">PAZAR's principles:</p> <p >(1) *************** *** 50,56 **** <p >The PAZAR system is currently developed as a mySQL database featuring a ! complex <a href="http://www.pazar.info/images/pazar_schema.png"; target="_blank">schema</a> which allows for a high level of flexibility regarding ! the type of information that can be captured. The database <a href="http://www.pazar.info/pazar_dictionary.html"; target="_blank">dictionary</a> ! and an explanation of the <a href="http://www.pazar.info/iosys.htm"; target="_blank">input/output system</a> can help you find out some of the database constraints and internal structure.</p> --- 56,62 ---- <p >The PAZAR system is currently developed as a mySQL database featuring a ! complex <a href="$pazar_html/images/pazar_schema.png" target="_blank">schema</a> which allows for a high level of flexibility regarding ! the type of information that can be captured. The database <a href="$pazar_html/pazar_dictionary.html" target="_blank">dictionary</a> ! and an explanation of the <a href="$pazar_html/iosys.htm" target="_blank">input/output system</a> can help you find out some of the database constraints and internal structure.</p> *************** *** 58,62 **** ease the insertion of data into the database, we are developing two curation interfaces, one allowing the curator to capture higher levels ! of details than the other. We have also designed an <a href="http://www.pazar.info/cgi-bin/xml.pl">XML exchange format</a> that can be used to format already existing datasets.</p> <p >As an OPEN SYSTEM, each boutique operator within PAZAR is welcome to --- 64,68 ---- ease the insertion of data into the database, we are developing two curation interfaces, one allowing the curator to capture higher levels ! of details than the other. We have also designed an <a href="$pazar_cgi/xml.pl">XML exchange format</a> that can be used to format already existing datasets.</p> <p >As an OPEN SYSTEM, each boutique operator within PAZAR is welcome to *************** *** 69,72 **** # print out the html tail template ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 75,78 ---- # print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; Index: xml.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/xml.pl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** xml.pl 13 Mar 2006 17:49:16 -0000 1.1 --- xml.pl 25 May 2007 00:09:16 -0000 1.2 *************** *** 3,11 **** use HTML::Template; # open the html header template ! my $template = HTML::Template->new(filename => 'header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR XML format'); # send the obligatory Content-Type and print the template output --- 3,17 ---- use HTML::Template; + my $pazar_cgi = $ENV{PAZAR_CGI}; + my $pazar_html = $ENV{PAZAR_HTML}; + my $pazarcgipath = $ENV{PAZARCGIPATH}; + # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR XML format'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); # send the obligatory Content-Type and print the template output *************** *** 18,35 **** an XML exchange format (<a href="http://www.w3schools.com/xml/default.asp"; target="_blank">What is XML?</a>) that can be used to format already existing datasets. The ! <a href="http://www.pazar.info/pazar.dtd">PAZAR Document Type Definition</a> (DTD) is now available as well as a ! <a href="http://www.pazar.info/PAZAR_DTD_DOC.pdf">documentation</a> explaining its use. Some examples are also provided to help the user understand the XML format:</p> <p class="margin2">- ! <a href="http://www.pazar.info/pazarexample.xml">example 1</a> describes an interaction between a transcription factor and a binding site located upstream a gene, and a set of mutations affecting this interaction.<br>- ! <a href="http://www.pazar.info/pazarexample2.xml">example 2</a> describe a SELEX experiment with an heterodimer transcription factor and the matrix built from the sequences.<br>- ! <a href="http://www.pazar.info/pazarexample3.xml">example 3</a> describes a gene reporter assay and the influence of co-expression with a transcription factor. --- 24,41 ---- an XML exchange format (<a href="http://www.w3schools.com/xml/default.asp"; target="_blank">What is XML?</a>) that can be used to format already existing datasets. The ! <a href="$pazar_html/pazar.dtd">PAZAR Document Type Definition</a> (DTD) is now available as well as a ! <a href="$pazar_html/PAZAR_DTD_DOC.pdf">documentation</a> explaining its use. Some examples are also provided to help the user understand the XML format:</p> <p class="margin2">- ! <a href="$pazar_html/pazarexample.xml">example 1</a> describes an interaction between a transcription factor and a binding site located upstream a gene, and a set of mutations affecting this interaction.<br>- ! <a href="$pazar_html/pazarexample2.xml">example 2</a> describe a SELEX experiment with an heterodimer transcription factor and the matrix built from the sequences.<br>- ! <a href="$pazar_html/pazarexample3.xml">example 3</a> describes a gene reporter assay and the influence of co-expression with a transcription factor. *************** *** 44,51 **** its structure. </p> ! <p class="margin2"><a href="http://www.pazar.info/cgi-bin/step1.pl">1. Getting started</a><br> ! <a href="http://www.pazar.info/cgi-bin/step2.pl">2. Capturing the regulatory sequence and/or TF basic information</a><br> ! <a href="http://www.pazar.info/cgi-bin/step3.pl">3. Capturing the evidence Linking a sequence to a TF or to a specific expression</a><br> </p> --- 50,57 ---- its structure. </p> ! <p class="margin2"><a href="$pazar_cgi/step1.pl">1. Getting started</a><br> ! <a href="$pazar_cgi/step2.pl">2. Capturing the regulatory sequence and/or TF basic information</a><br> ! <a href="$pazar_cgi/step3.pl">3. Capturing the evidence Linking a sequence to a TF or to a specific expression</a><br> </p> *************** *** 53,57 **** <p>Just upload your XML file below and Click on the "Validate" button to check its validity against PAZAR DTD. ! <form name="validator" method="post" action="http://www.pazar.info/cgi-bin/validator.cgi"; enctype="multipart/form-data"> <input name="xml_file" size="20" type="file"><br> <br> --- 59,63 ---- <p>Just upload your XML file below and Click on the "Validate" button to check its validity against PAZAR DTD. ! <form name="validator" method="post" action="$pazar_cgi/validator.cgi" enctype="multipart/form-data"> <input name="xml_file" size="20" type="file"><br> <br> *************** *** 63,66 **** # print out the html tail template ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 69,72 ---- # print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; Index: export_profile.cgi =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/export_profile.cgi,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** export_profile.cgi 16 Jun 2006 21:53:25 -0000 1.6 --- export_profile.cgi 25 May 2007 00:09:15 -0000 1.7 *************** *** 12,16 **** #use CGI::Debug( report => 'everything', on => 'anything' ); ! require 'getsession.pl'; my $get = new CGI; --- 12,21 ---- #use CGI::Debug( report => 'everything', on => 'anything' ); ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! my $pazarhtdocspath = $ENV{PAZARHTDOCSPATH}; ! ! require "$pazarcgipath/getsession.pl"; my $get = new CGI; *************** *** 24,37 **** # fill in template parameters $template->param(TITLE => 'PAZAR TF Profiles'); if($loggedin eq 'true') { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. ".'<a href=\'logout.pl\'>Log Out</a>'); } else { #log in link ! $template->param(LOGOUT => '<a href=\'login.pl\'>Log In</a>'); } --- 29,44 ---- # fill in template parameters $template->param(TITLE => 'PAZAR TF Profiles'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); if($loggedin eq 'true') { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. "."<a href=\'$pazar_cgi/logout.pl\'>Log Out</a>"); } else { #log in link ! $template->param(LOGOUT => "<a href=\'$pazar_cgi/login.pl\'>Log In</a>"); } *************** *** 108,113 **** my $randnum = substr(rand() * 100,3); my $logo = $acc.$randnum; ! my $gd_image = $pfm->draw_logo(-file=>'/space/usr/local/apache/pazar.info/tmp/precomputed/'.$logo.'.png', -xsize=>130); ! my $gd_image2 = $pfm->draw_logo(-file=>'/space/usr/local/apache/pazar.info/tmp/precomputed/'.$logo.'_400.png', -xsize=>400); my $proj_name=$dbh->get_project_name('matrix',$mid); --- 115,120 ---- my $randnum = substr(rand() * 100,3); my $logo = $acc.$randnum; ! my $gd_image = $pfm->draw_logo(-file=>$pazarhtdocspath.'/tmp/precomputed/'.$logo.'.png', -xsize=>130); ! my $gd_image2 = $pfm->draw_logo(-file=>$pazarhtdocspath.'/tmp/precomputed/'.$logo.'_400.png', -xsize=>400); my $proj_name=$dbh->get_project_name('matrix',$mid); *************** *** 198,203 **** <td align="center" width="" valign="center" bgcolor="$colors{$bg_color}">$sorted[$i]->{species}</td> <td align="center" width="" valign="center" bgcolor="$colors{$bg_color}">$sorted[$i]->{class}</td> ! <td align="center" width="" valign="center" bgcolor="$colors{$bg_color}"><img src="http://www.pazar.info/tmp/precomputed/$logo"></td> ! <td align="center" width="" valign="center" bgcolor="$colors{$bg_color}"><form name='$sorted[$i]->{logo}' method='post' action ='http://www.pazar.info/cgi-bin/export_profile.cgi'; enctype="multipart/form-data" target='Detail_win'><input type="hidden" name="mode" value="details"><input type="hidden" name="project" value="$sorted[$i]->{project}"><input type="hidden" name="dbid" value="$sorted[$i]->{dbid}"><input type="hidden" name="name" value="$sorted[$i]->{name}"><input type="hidden" name="class" value="$sorted[$i]->{class}"><input type="hidden" name="species" value="$sorted[$i]->{species}"><input type="hidden" name="pmid" value="$sorted[$i]->{pmid}"><input type="hidden" name="method" value="$sorted[$i]->{method}"><input type="hidden" name="transcript" value="$sorted[$i]->{transcript}"><input type="hidden" name="pazar_id" value="$sorted[$i]->{pazar_id}"><input type="hidden" name="pfm" value="$sorted[$i]->{pfm}"><input type="hidden" name="logo" value="$sorted[$i]->{logo}"><input value="More" name="submit" type="submit" onClick="window.open('about:blank','Detail_win', 'resizable=1,scrollbars=yes, menubar=no, toolbar=no directories=no, height=800, width=450')"></form></td> </tr> ROWS --- 205,210 ---- <td align="center" width="" valign="center" bgcolor="$colors{$bg_color}">$sorted[$i]->{species}</td> <td align="center" width="" valign="center" bgcolor="$colors{$bg_color}">$sorted[$i]->{class}</td> ! <td align="center" width="" valign="center" bgcolor="$colors{$bg_color}"><img src="$pazar_html/tmp/precomputed/$logo"></td> ! <td align="center" width="" valign="center" bgcolor="$colors{$bg_color}"><form name='$sorted[$i]->{logo}' method='post' action ="$pazar_cgi/export_profile.cgi" enctype="multipart/form-data" target='Detail_win'><input type="hidden" name="mode" value="details"><input type="hidden" name="project" value="$sorted[$i]->{project}"><input type="hidden" name="dbid" value="$sorted[$i]->{dbid}"><input type="hidden" name="name" value="$sorted[$i]->{name}"><input type="hidden" name="class" value="$sorted[$i]->{class}"><input type="hidden" name="species" value="$sorted[$i]->{species}"><input type="hidden" name="pmid" value="$sorted[$i]->{pmid}"><input type="hidden" name="method" value="$sorted[$i]->{method}"><input type="hidden" name="transcript" value="$sorted[$i]->{transcript}"><input type="hidden" name="pazar_id" value="$sorted[$i]->{pazar_id}"><input type="hidden" name="pfm" value="$sorted[$i]->{pfm}"><input type="hidden" name="logo" value="$sorted[$i]->{logo}"><input value="More" name="submit" type="submit" onClick="window.open('about:blank','Detail_win', 'resizable=1,scrollbars=yes, menubar=no, toolbar=no directories=no, height=800, width=450')"></form></td> </tr> ROWS *************** *** 207,211 **** ### print out the html tail template ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 214,218 ---- ### print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; *************** *** 221,225 **** <head><title>PAZAR - TF Profiles</title></head> <body><table width='400' bordercolor='white' bgcolor='white' border=0 cellspacing=0> ! <tr><td width="400" align="center" valign="center"><img src="http://www.pazar.info/tmp/precomputed/$logo"></td></tr> <tr><td width="400" align="center" valign="center"><span style="font-family: monospace;">$prettystring<br><br></span></td></tr> <tr><td width="400" bgcolor="#e65656" align="center" valign="center"><span class="title4">Matrix Info</span></td></tr> --- 228,232 ---- <head><title>PAZAR - TF Profiles</title></head> <body><table width='400' bordercolor='white' bgcolor='white' border=0 cellspacing=0> ! <tr><td width="400" align="center" valign="center"><img src="$pazar_html/tmp/precomputed/$logo"></td></tr> <tr><td width="400" align="center" valign="center"><span style="font-family: monospace;">$prettystring<br><br></span></td></tr> <tr><td width="400" bgcolor="#e65656" align="center" valign="center"><span class="title4">Matrix Info</span></td></tr> *************** *** 306,310 **** ### print out the html tail template ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 313,317 ---- ### print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; Index: seq_search.cgi =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/seq_search.cgi,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** seq_search.cgi 21 Apr 2007 00:20:10 -0000 1.5 --- seq_search.cgi 25 May 2007 00:09:15 -0000 1.6 *************** *** 13,31 **** #use CGI::Debug( report => 'everything', on => 'anything' ); ! use Data::Dumper; ! require 'getsession.pl'; # open the html header template ! my $template = HTML::Template->new(filename => '/usr/local/apache/pazar.info/cgi-bin/header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR Sequence View'); ! $template->param(JAVASCRIPT_FUNCTION => q{ function setCount(target){ if(target == 0) { ! document.gene_search.action="http://www.pazar.info/cgi-bin/gene_list.cgi";; document.gene_search.target="Window1"; window.open('about:blank','Window1', 'scrollbars=yes, menubar=no, toolbar=no directories=no, height=800, width=800'); --- 13,37 ---- #use CGI::Debug( report => 'everything', on => 'anything' ); ! #use Data::Dumper; ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! ! require "$pazarcgipath/getsession.pl"; # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR Sequence View'); ! $template->param(PAZAR_HTML => $pazar_html); ! $template->param(PAZAR_CGI => $pazar_cgi); ! $template->param(JAVASCRIPT_FUNCTION => qq{ function setCount(target){ if(target == 0) { ! document.gene_search.action="$pazar_cgi/gene_list.cgi"; document.gene_search.target="Window1"; window.open('about:blank','Window1', 'scrollbars=yes, menubar=no, toolbar=no directories=no, height=800, width=800'); *************** *** 37,49 **** if(myTextField.value == "PAZAR_seq") { document.gene_search.target="_self"; ! document.gene_search.action="http://www.pazar.info/cgi-bin/seq_search.cgi";; } else { document.gene_search.target="_self"; ! document.gene_search.action="http://www.pazar.info/cgi-bin/gene_search.cgi";; } } if(target == 2) { ! document.gene_search.action="http://www.pazar.info/cgi-bin/genebrowse_alpha.pl";; document.gene_search.target="Window2"; window.open('about:blank','Window2', 'resizable=1,scrollbars=yes, menubar=no, toolbar=no directories=no, height=600, width=650'); --- 43,55 ---- if(myTextField.value == "PAZAR_seq") { document.gene_search.target="_self"; ! document.gene_search.action="$pazar_cgi/seq_search.cgi"; } else { document.gene_search.target="_self"; ! document.gene_search.action="$pazar_cgi/gene_search.cgi"; } } if(target == 2) { ! document.gene_search.action="$pazar_cgi/genebrowse_alpha.pl"; document.gene_search.target="Window2"; window.open('about:blank','Window2', 'resizable=1,scrollbars=yes, menubar=no, toolbar=no directories=no, height=600, width=650'); *************** *** 55,64 **** { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. ".'<a href=\'http://www.pazar.info/cgi-bin/logout.pl\'>Log Out</a>'); } else { #log in link ! $template->param(LOGOUT => '<a href=\'http://www.pazar.info/cgi-bin/login.pl\'>Log In</a>'); } --- 61,70 ---- { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. "."<a href=\'$pazar_cgi/logout.pl\'>Log Out</a>"); } else { #log in link ! $template->param(LOGOUT => "<a href=\'$pazar_cgi/login.pl\'>Log In</a>"); } *************** *** 194,198 **** <table class="summarytable"> <tr><td class="genetabletitle"><span class="title4">Species</span></td><td class="basictd">$species</td></tr> ! <tr><td class="genetabletitle"><span class="title4">PAZAR Gene ID</span></td><form name='genelink' method='post' action='http://www.pazar.info/cgi-bin/gene_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='geneID' value="$pazargeneid"><input type='hidden' name='ID_list' value='PAZAR_gene'><td class="basictd"><input type="submit" class="submitLink" value="$pazargeneid"> </td></form></tr> <tr><td class="genetabletitle"><span class="title4">Gene Name (user defined)</span></td><td class="basictd">$geneName</td></tr> <tr><td class="genetabletitle"><span class="title4">EnsEMBL Gene ID</span></td><td class="basictd">$gene_accession</td></tr> --- 200,204 ---- <table class="summarytable"> <tr><td class="genetabletitle"><span class="title4">Species</span></td><td class="basictd">$species</td></tr> ! <tr><td class="genetabletitle"><span class="title4">PAZAR Gene ID</span></td><form name='genelink' method='post' action="$pazar_cgi/gene_search.cgi" enctype='multipart/form-data'><input type='hidden' name='geneID' value="$pazargeneid"><input type='hidden' name='ID_list' value='PAZAR_gene'><td class="basictd"><input type="submit" class="submitLink" value="$pazargeneid"> </td></form></tr> <tr><td class="genetabletitle"><span class="title4">Gene Name (user defined)</span></td><td class="basictd">$geneName</td></tr> <tr><td class="genetabletitle"><span class="title4">EnsEMBL Gene ID</span></td><td class="basictd">$gene_accession</td></tr> *************** *** 200,204 **** <tr><td class="genetabletitle"><span class="title4">Project</span></td><td class="basictd">$res[0]</td></tr> </table></td></tr><tr><td><table class="evidencetableborder"> ! <tr><td class="seqtabletitle"><span class="title4">PAZAR Sequence ID</span></td><form name='details' method='post' action='http://www.pazar.info/cgi-bin/seq_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='regid' value="$regid"><td class="basictd"><input type="submit" class="submitLink" value="$id"> </td></form></tr> <tr><td class="seqtabletitle"><span class="title4">Sequence Name</span></td><td class="basictd">$seqname</td></tr> <tr><td class="seqtabletitle"><span class="title4">Sequence</span></td><td class="basictd"><div style="font-family:monospace;height:62; overflow:auto;">$seqstr</div></td></tr> --- 206,210 ---- <tr><td class="genetabletitle"><span class="title4">Project</span></td><td class="basictd">$res[0]</td></tr> </table></td></tr><tr><td><table class="evidencetableborder"> ! <tr><td class="seqtabletitle"><span class="title4">PAZAR Sequence ID</span></td><form name='details' method='post' action="$pazar_cgi/seq_search.cgi" enctype='multipart/form-data'><input type='hidden' name='regid' value="$regid"><td class="basictd"><input type="submit" class="submitLink" value="$id"> </td></form></tr> <tr><td class="seqtabletitle"><span class="title4">Sequence Name</span></td><td class="basictd">$seqname</td></tr> <tr><td class="seqtabletitle"><span class="title4">Sequence</span></td><td class="basictd"><div style="font-family:monospace;height:62; overflow:auto;">$seqstr</div></td></tr> *************** *** 209,213 **** HEADER_TABLE ! print "<tr><form name='display' method='post' action='http://www.pazar.info/cgi-bin/gff_custom_track.cgi'; enctype='multipart/form-data' target='_blank'><td class=\"seqtabletitle\"><span class=\"title4\">Display</span></td><td class=\"basictd\"><input type='hidden' name='chr' value='".$reg_seq->chromosome."'><input type='hidden' name='start' value='".$reg_seq->start."'><input type='hidden' name='end' value='".$reg_seq->end."'><input type='hidden' name='species' value='".$reg_seq->binomial_species."'><input type='hidden' name='resource' value='ucsc'><a href='#' onClick=\"javascript:document.display.resource.value='ucsc';document.display.submit();\"><img src='http://www.pazar.info/images/ucsc_logo.png'></a><!--<input type='submit' name='ucsc' value='ucsc' onClick=\"javascript:document.display.resource.value='ucsc';\">--> <a href='#' onClick=\"javascript:document.display.resource.value='ensembl';document.display.submit();\"><img src='http://www.pazar.info/images/ensembl_logo.gif'></a><!--<input type='submit' name='ensembl' value='ensembl' onClick=\"javascript:document.display.resource.value='ensembl';\">--></td></form></tr></table><br><br></td></tr>"; --- 215,219 ---- HEADER_TABLE ! print "<tr><form name='display' method='post' action='$pazar_cgi/gff_custom_track.cgi' enctype='multipart/form-data' target='_blank'><td class=\"seqtabletitle\"><span class=\"title4\">Display</span></td><td class=\"basictd\"><input type='hidden' name='chr' value='".$reg_seq->chromosome."'><input type='hidden' name='start' value='".$reg_seq->start."'><input type='hidden' name='end' value='".$reg_seq->end."'><input type='hidden' name='species' value='".$reg_seq->binomial_species."'><input type='hidden' name='resource' value='ucsc'><a href='#' onClick=\"javascript:document.display.resource.value='ucsc';document.display.submit();\"><img src='$pazar_html/images/ucsc_logo.png'></a><!--<input type='submit' name='ucsc' value='ucsc' onClick=\"javascript:document.display.resource.value='ucsc';\">--> <a href='#' onClick=\"javascript:document.display.resource.value='ensembl';document.display.submit();\"><img src='$pazar_html/images/ensembl_logo.gif'></a><!--<input type='submit' name='ensembl' value='ensembl' onClick=\"javascript:document.display.resource.value='ensembl';\">--></td></form></tr></table><br><br></td></tr>"; *************** *** 242,246 **** my $pazaranid=write_pazarid($inter->{aid},'AN'); ! print "<tr><form name='intdetails$count' method='post' action='http://www.pazar.info/cgi-bin/exp_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='aid' value=\"$inter->{aid}\"><td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><input type=\"submit\" class=\"submitLink\" value=\"$pazaranid\"></div></td></form>"; my @met=$dbh->get_data_by_primary_key('method',$an[3]); --- 248,252 ---- my $pazaranid=write_pazarid($inter->{aid},'AN'); ! print "<tr><form name='intdetails$count' method='post' action='$pazar_cgi/exp_search.cgi' enctype='multipart/form-data'><input type='hidden' name='aid' value=\"$inter->{aid}\"><td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><input type=\"submit\" class=\"submitLink\" value=\"$pazaranid\"></div></td></form>"; my @met=$dbh->get_data_by_primary_key('method',$an[3]); *************** *** 268,272 **** my $tfid=$inter->{tfcomplex}; my $pazartfid=write_pazarid($tfid,'TF'); ! print "<td width='200' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><form name='tflink$pazartfid$count' method='post' action='http://www.pazar.info/cgi-bin/tf_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='ID_list' value='PAZAR_TF'><input type='hidden' name='geneID' value=\"".$pazartfid."\"><input type=\"submit\" class=\"submitLink\" value=\"$pazartfid\"><br><b>".$complex->name."</b><br></form></div></td>"; } if ($inter->{tftype} eq 'sample') { --- 274,278 ---- my $tfid=$inter->{tfcomplex}; my $pazartfid=write_pazarid($tfid,'TF'); ! print "<td width='200' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><form name='tflink$pazartfid$count' method='post' action='$pazar_cgi/tf_search.cgi' enctype='multipart/form-data'><input type='hidden' name='ID_list' value='PAZAR_TF'><input type='hidden' name='geneID' value=\"".$pazartfid."\"><input type=\"submit\" class=\"submitLink\" value=\"$pazartfid\"><br><b>".$complex->name."</b><br></form></div></td>"; } if ($inter->{tftype} eq 'sample') { *************** *** 352,356 **** my $pazaranid=write_pazarid($exp->{aid},'AN'); ! print "<tr><form name='expdetails$count' method='post' action='http://www.pazar.info/cgi-bin/exp_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='aid' value=\"$exp->{aid}\"><td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><input type=\"submit\" class=\"submitLink\" value=\"$pazaranid\"></div></td></form>"; my @met=$dbh->get_data_by_primary_key('method',$an[3]); --- 358,362 ---- my $pazaranid=write_pazarid($exp->{aid},'AN'); ! print "<tr><form name='expdetails$count' method='post' action='$pazar_cgi/exp_search.cgi' enctype='multipart/form-data'><input type='hidden' name='aid' value=\"$exp->{aid}\"><td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><input type=\"submit\" class=\"submitLink\" value=\"$pazaranid\"></div></td></form>"; my @met=$dbh->get_data_by_primary_key('method',$an[3]); *************** *** 400,404 **** my $complex = $tf->get_tfcomplex_by_id($tfid, 'notargets'); my $pazartfid=write_pazarid($tfid,'TF'); ! print "<form name='tflink$pazartfid$count' method='post' action='http://www.pazar.info/cgi-bin/tf_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='ID_list' value='PAZAR_TF'><input type='hidden' name='geneID' value=\"".$pazartfid."\"><input type=\"submit\" class=\"submitLink\" value=\"$pazartfid\"><br><b>".$complex->name."</b><br></form>"; } } --- 406,410 ---- my $complex = $tf->get_tfcomplex_by_id($tfid, 'notargets'); my $pazartfid=write_pazarid($tfid,'TF'); ! print "<form name='tflink$pazartfid$count' method='post' action='$pazar_cgi/tf_search.cgi' enctype='multipart/form-data'><input type='hidden' name='ID_list' value='PAZAR_TF'><input type='hidden' name='geneID' value=\"".$pazartfid."\"><input type=\"submit\" class=\"submitLink\" value=\"$pazartfid\"><br><b>".$complex->name."</b><br></form>"; } } Index: header.tmpl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/header.tmpl,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** header.tmpl 8 Feb 2007 00:34:26 -0000 1.13 --- header.tmpl 25 May 2007 00:09:15 -0000 1.14 *************** *** 13,17 **** <TMPL_VAR NAME=JAVASCRIPT_FUNCTION> </script> ! <link type="text/css" rel="stylesheet" href="http://www.pazar.info/pazar.css"><link rel="shortcut icon" href="http://www.pazar.info/favicon.ico"></head> <body leftmargin="0" topmargin="0" bgcolor="#ffffff" marginheight="0" marginwidth="0" onLoad="resetMenu();"> <table align="left" border="0" cellpadding="0" cellspacing="0" height="100%" width="85%"> --- 13,17 ---- <TMPL_VAR NAME=JAVASCRIPT_FUNCTION> </script> ! <link type="text/css" rel="stylesheet" href="<TMPL_VAR NAME=PAZAR_HTML>/pazar.css"><link rel="shortcut icon" href="<TMPL_VAR NAME=PAZAR_HTML>/favicon.ico"></head> <body leftmargin="0" topmargin="0" bgcolor="#ffffff" marginheight="0" marginwidth="0" onLoad="resetMenu();"> <table align="left" border="0" cellpadding="0" cellspacing="0" height="100%" width="85%"> *************** *** 20,25 **** <table border="0" cellpadding="0" cellspacing="0" width="660" height="102"> <tbody><tr> ! <td width="143"><img src="http://www.pazar.info/images/pazar_01.gif"; border="0" height="102" width="143"></td> ! <td width="517"><a href="http://www.pazar.info/cgi-bin/index.pl"><img src="http://www.pazar.info/images/pazar_02.gif"; border="0" height="102" width="517"></a></td> </tr> </tbody></table></td></tr> --- 20,25 ---- <table border="0" cellpadding="0" cellspacing="0" width="660" height="102"> <tbody><tr> ! <td width="143"><img src="<TMPL_VAR NAME=PAZAR_HTML>/images/pazar_01.gif" border="0" height="102" width="143"></td> ! <td width="517"><a href="<TMPL_VAR NAME=PAZAR_CGI>/index.pl"><img src="<TMPL_VAR NAME=PAZAR_HTML>/images/pazar_02.gif" border="0" height="102" width="517"></a></td> </tr> </tbody></table></td></tr> *************** *** 29,73 **** <tbody><tr> <td width="100%"> ! <a href="http://www.pazar.info/cgi-bin/login.pl"; onmouseover="if (VersionNavigateur(3.0,4.0)) img1.src='http://www.pazar.info/images/up_03.gif'"; onmouseout="img1.src='http://www.pazar.info/images/pazar_03.gif'"><img name="img1" src="http://www.pazar.info/images/pazar_03.gif"; onload="tempImg=new Image(0,0); tempImg.src='http://www.pazar.info/images/up_03.gif'"; border="0" height="51" width="143"></a></td> </tr> <tr> <td width="100%"> ! <a href="http://www.pazar.info/cgi-bin/register.pl"; onmouseover="if (VersionNavigateur(3.0,4.0)) img2.src='http://www.pazar.info/images/up_05.gif'"; onmouseout="img2.src='http://www.pazar.info/images/pazar_05.gif'"><img name="img2" src="http://www.pazar.info/images/pazar_05.gif"; onload="tempImg=new Image(0,0); tempImg.src='http://www.pazar.info/images/up_05.gif'"; border="0" height="51" width="143"></a></td> </tr> <tr> <td width="100%"> ! <a href="http://www.pazar.info/cgi-bin/editprojects.pl"; onmouseover="if (VersionNavigateur(3.0,4.0)) img3.src='http://www.pazar.info/images/up_06.gif'"; onmouseout="img3.src='http://www.pazar.info/images/pazar_06.gif'"><img name="img3" src="http://www.pazar.info/images/pazar_06.gif"; onload="tempImg=new Image(0,0); tempImg.src='http://www.pazar.info/images/up_06.gif'"; border="0" height="51" width="143"></a></td> </tr> <tr> <td width="100%"> ! <a href="http://www.pazar.info/cgi-bin/sWI/entry.pl"; onmouseover="if (VersionNavigateur(3.0,4.0)) img4.src='http://www.pazar.info/images/up_07.gif'"; onmouseout="img4.src='http://www.pazar.info/images/pazar_07.gif'"><img name="img4" src="http://www.pazar.info/images/pazar_07.gif"; onload="tempImg=new Image(0,0); tempImg.src='http://www.pazar.info/images/up_07.gif'"; border="0" height="51" width="143"></a></td> </tr> <tr> <td width="100%"> ! <a href="http://www.pazar.info/cgi-bin/index.pl"; onmouseover="if (VersionNavigateur(3.0,4.0)) img5.src='http://www.pazar.info/images/up_08.gif'"; onmouseout="img5.src='http://www.pazar.info/images/pazar_08.gif'"><img name="img5" src="http://www.pazar.info/images/pazar_08.gif"; onload="tempImg=new Image(0,0); tempImg.src='http://www.pazar.info/images/up_08.gif'"; border="0" height="51" width="143"></a></td> </tr> <tr> <td width="100%"> ! <img src="http://www.pazar.info/images/pazar_09.gif"; border="0" height="51" width="143"></td> </tr> <tr> <td width="100%"> ! <a href="http://www.pazar.info/cgi-bin/overview.pl"; onmouseover="if (VersionNavigateur(3.0,4.0)) img6.src='http://www.pazar.info/images/overview_f.gif'"; onmouseout="img6.src='http://www.pazar.info/images/overview_h.gif'"><img name="img6" src="http://www.pazar.info/images/overview_h.gif"; onload="tempImg=new Image(0,0); tempImg.src='http://www.pazar.info/images/overview_f.gif'"; border="0" height="51" width="143"></a></td> </tr> <tr> <td width="100%"> ! <a href="http://www.pazar.info/cgi-bin/xml.pl"; onmouseover="if (VersionNavigateur(3.0,4.0)) img7.src='http://www.pazar.info/images/xml_f.gif'"; onmouseout="img7.src='http://www.pazar.info/images/xml_h.gif'"><img name="img7" src="http://www.pazar.info/images/xml_h.gif"; onload="tempImg=new Image(0,0); tempImg.src='http://www.pazar.info/images/xml_f.gif'"; border="0" height="51" width="143"></a></td> </tr> <tr> <td width="100%"> ! <a href="http://www.pazar.info/cgi-bin/GFF.pl"; onmouseover="if (VersionNavigateur(3.0,4.0)) img8.src='http://www.pazar.info/images/gff_f.gif'"; onmouseout="img8.src='http://www.pazar.info/images/gff_h.gif'"><img name="img8" src="http://www.pazar.info/images/gff_h.gif"; onload="tempImg=new Image(0,0); tempImg.src='http://www.pazar.info/images/gff_f.gif'"; border="0" height="51" width="143"></a></td> </tr> <tr> <td width="100%"> ! <a href="http://www.pazar.info/cgi-bin/contacts.pl"; onmouseover="if (VersionNavigateur(3.0,4.0)) img9.src='http://www.pazar.info/images/contacts_f.gif'"; onmouseout="img9.src='http://www.pazar.info/images/contacts_h.gif'"><img name="img9" src="http://www.pazar.info/images/contacts_h.gif"; onload="tempImg=new Image(0,0); tempImg.src='http://www.pazar.info/images/contacts_f.gif'"; border="0" height="51" width="143"></a></td> </tr> <tr> <td width="100%"> ! <a href="http://www.pazar.info/cgi-bin/help_FAQ.pl"; onmouseover="if (VersionNavigateur(3.0,4.0)) img10.src='http://www.pazar.info/images/up_14.gif'"; onmouseout="img10.src='http://www.pazar.info/images/pazar_14.gif'"><img name="img10" src="http://www.pazar.info/images/pazar_14.gif"; onload="tempImg=new Image(0,0); tempImg.src='http://www.pazar.info/images/up_14.gif'"; border="0" height="51" width="143"></a></td> </tr> </tbody></table> --- 29,73 ---- <tbody><tr> <td width="100%"> ! <a href="<TMPL_VAR NAME=PAZAR_CGI>/login.pl" onmouseover="if (VersionNavigateur(3.0,4.0)) img1.src='<TMPL_VAR NAME=PAZAR_HTML>/images/up_03.gif'" onmouseout="img1.src='<TMPL_VAR NAME=PAZAR_HTML>/images/pazar_03.gif'"><img name="img1" src="<TMPL_VAR NAME=PAZAR_HTML>/images/pazar_03.gif" onload="tempImg=new Image(0,0); tempImg.src='<TMPL_VAR NAME=PAZAR_HTML>/images/up_03.gif'" border="0" height="51" width="143"></a></td> </tr> <tr> <td width="100%"> ! <a href="<TMPL_VAR NAME=PAZAR_CGI>/register.pl" onmouseover="if (VersionNavigateur(3.0,4.0)) img2.src='<TMPL_VAR NAME=PAZAR_HTML>/images/up_05.gif'" onmouseout="img2.src='<TMPL_VAR NAME=PAZAR_HTML>/images/pazar_05.gif'"><img name="img2" src="<TMPL_VAR NAME=PAZAR_HTML>/images/pazar_05.gif" onload="tempImg=new Image(0,0); tempImg.src='<TMPL_VAR NAME=PAZAR_HTML>/images/up_05.gif'" border="0" height="51" width="143"></a></td> </tr> <tr> <td width="100%"> ! <a href="<TMPL_VAR NAME=PAZAR_CGI>/editprojects.pl" onmouseover="if (VersionNavigateur(3.0,4.0)) img3.src='<TMPL_VAR NAME=PAZAR_HTML>/images/up_06.gif'" onmouseout="img3.src='<TMPL_VAR NAME=PAZAR_HTML>/images/pazar_06.gif'"><img name="img3" src="<TMPL_VAR NAME=PAZAR_HTML>/images/pazar_06.gif" onload="tempImg=new Image(0,0); tempImg.src='<TMPL_VAR NAME=PAZAR_HTML>/images/up_06.gif'" border="0" height="51" width="143"></a></td> </tr> <tr> <td width="100%"> ! <a href="<TMPL_VAR NAME=PAZAR_CGI>/sWI/entry.pl" onmouseover="if (VersionNavigateur(3.0,4.0)) img4.src='<TMPL_VAR NAME=PAZAR_HTML>/images/up_07.gif'" onmouseout="img4.src='<TMPL_VAR NAME=PAZAR_HTML>/images/pazar_07.gif'"><img name="img4" src="<TMPL_VAR NAME=PAZAR_HTML>/images/pazar_07.gif" onload="tempImg=new Image(0,0); tempImg.src='<TMPL_VAR NAME=PAZAR_HTML>/images/up_07.gif'" border="0" height="51" width="143"></a></td> </tr> <tr> <td width="100%"> ! <a href="<TMPL_VAR NAME=PAZAR_CGI>/index.pl" onmouseover="if (VersionNavigateur(3.0,4.0)) img5.src='<TMPL_VAR NAME=PAZAR_HTML>/images/up_08.gif'" onmouseout="img5.src='<TMPL_VAR NAME=PAZAR_HTML>/images/pazar_08.gif'"><img name="img5" src="<TMPL_VAR NAME=PAZAR_HTML>/images/pazar_08.gif" onload="tempImg=new Image(0,0); tempImg.src='<TMPL_VAR NAME=PAZAR_HTML>/images/up_08.gif'" border="0" height="51" width="143"></a></td> </tr> <tr> <td width="100%"> ! <img src="<TMPL_VAR NAME=PAZAR_HTML>/images/pazar_09.gif" border="0" height="51" width="143"></td> </tr> <tr> <td width="100%"> ! <a href="<TMPL_VAR NAME=PAZAR_CGI>/overview.pl" onmouseover="if (VersionNavigateur(3.0,4.0)) img6.src='<TMPL_VAR NAME=PAZAR_HTML>/images/overview_f.gif'" onmouseout="img6.src='<TMPL_VAR NAME=PAZAR_HTML>/images/overview_h.gif'"><img name="img6" src="<TMPL_VAR NAME=PAZAR_HTML>/images/overview_h.gif" onload="tempImg=new Image(0,0); tempImg.src='<TMPL_VAR NAME=PAZAR_HTML>/images/overview_f.gif'" border="0" height="51" width="143"></a></td> </tr> <tr> <td width="100%"> ! <a href="<TMPL_VAR NAME=PAZAR_CGI>/xml.pl" onmouseover="if (VersionNavigateur(3.0,4.0)) img7.src='<TMPL_VAR NAME=PAZAR_HTML>/images/xml_f.gif'" onmouseout="img7.src='<TMPL_VAR NAME=PAZAR_HTML>/images/xml_h.gif'"><img name="img7" src="<TMPL_VAR NAME=PAZAR_HTML>/images/xml_h.gif" onload="tempImg=new Image(0,0); tempImg.src='<TMPL_VAR NAME=PAZAR_HTML>/images/xml_f.gif'" border="0" height="51" width="143"></a></td> </tr> <tr> <td width="100%"> ! <a href="<TMPL_VAR NAME=PAZAR_CGI>/GFF.pl" onmouseover="if (VersionNavigateur(3.0,4.0)) img8.src='<TMPL_VAR NAME=PAZAR_HTML>/images/gff_f.gif'" onmouseout="img8.src='<TMPL_VAR NAME=PAZAR_HTML>/images/gff_h.gif'"><img name="img8" src="<TMPL_VAR NAME=PAZAR_HTML>/images/gff_h.gif" onload="tempImg=new Image(0,0); tempImg.src='<TMPL_VAR NAME=PAZAR_HTML>/images/gff_f.gif'" border="0" height="51" width="143"></a></td> </tr> <tr> <td width="100%"> ! <a href="<TMPL_VAR NAME=PAZAR_CGI>/contacts.pl" onmouseover="if (VersionNavigateur(3.0,4.0)) img9.src='<TMPL_VAR NAME=PAZAR_HTML>/images/contacts_f.gif'" onmouseout="img9.src='<TMPL_VAR NAME=PAZAR_HTML>/images/contacts_h.gif'"><img name="img9" src="<TMPL_VAR NAME=PAZAR_HTML>/images/contacts_h.gif" onload="tempImg=new Image(0,0); tempImg.src='<TMPL_VAR NAME=PAZAR_HTML>/images/contacts_f.gif'" border="0" height="51" width="143"></a></td> </tr> <tr> <td width="100%"> ! <a href="<TMPL_VAR NAME=PAZAR_CGI>/help_FAQ.pl" onmouseover="if (VersionNavigateur(3.0,4.0)) img10.src='<TMPL_VAR NAME=PAZAR_HTML>/images/up_14.gif'" onmouseout="img10.src='<TMPL_VAR NAME=PAZAR_HTML>/images/pazar_14.gif'"><img name="img10" src="<TMPL_VAR NAME=PAZAR_HTML>/images/pazar_14.gif" onload="tempImg=new Image(0,0); tempImg.src='<TMPL_VAR NAME=PAZAR_HTML>/images/up_14.gif'" border="0" height="51" width="143"></a></td> </tr> </tbody></table> Index: step1.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/step1.pl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** step1.pl 13 Mar 2006 17:49:16 -0000 1.1 --- step1.pl 25 May 2007 00:09:15 -0000 1.2 *************** *** 3,11 **** use HTML::Template; # open the html header template ! my $template = HTML::Template->new(filename => 'header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR XML writing Step 1'); # send the obligatory Content-Type and print the template output --- 3,17 ---- use HTML::Template; + my $pazar_cgi = $ENV{PAZAR_CGI}; + my $pazar_html = $ENV{PAZAR_HTML}; + my $pazarcgipath = $ENV{PAZARCGIPATH}; + # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR XML writing Step 1'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); # send the obligatory Content-Type and print the template output *************** *** 22,26 **** <p class="bold"><?xml version="1.0" encoding="UTF-8"?><br> ! <!DOCTYPE pazar SYSTEM "http://www.pazar.info/pazar.dtd"><br> <pazar><br> <project edit_date="<span class="red">dd-mm-yy</span>" pazar_id="<span class="red">p_0001</span>"<br> --- 28,32 ---- <p class="bold"><?xml version="1.0" encoding="UTF-8"?><br> ! <!DOCTYPE pazar SYSTEM "$pazar_html/pazar.dtd"><br> <pazar><br> <project edit_date="<span class="red">dd-mm-yy</span>" pazar_id="<span class="red">p_0001</span>"<br> *************** *** 33,41 **** anything as long as they are unique throughout the file. <br><br> ! <a style="text-decoration: none;" href="http://pazar.info/cgi-bin/step2.pl"><input value="To Step 2 ->" type="button"></a></p> page # print out the html tail template ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 39,47 ---- anything as long as they are unique throughout the file. <br><br> ! <a style="text-decoration: none;" href="$pazar_cgi/step2.pl"><input value="To Step 2 ->" type="button"></a></p> page # print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; Index: tfbrowse_alpha.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/tfbrowse_alpha.pl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tfbrowse_alpha.pl 6 Apr 2006 22:17:19 -0000 1.1 --- tfbrowse_alpha.pl 25 May 2007 00:09:15 -0000 1.2 *************** *** 2,5 **** --- 2,7 ---- print "Content-type:text/html\n\n"; + my $pazar_cgi = $ENV{PAZAR_CGI}; + print<<Page_Done; <html> *************** *** 13,52 **** <B> <!-- ! <a href="tfbrowse_result.pl?search_alpha=0">0</a> ! <a href="tfbrowse_result.pl?search_alpha=1">1</a> ! <a href="tfbrowse_result.pl?search_alpha=2">2</a> ! <a href="tfbrowse_result.pl?search_alpha=3">3</a> ! <a href="tfbrowse_result.pl?search_alpha=4">4</a> ! <a href="tfbrowse_result.pl?search_alpha=5">5</a> ! <a href="tfbrowse_result.pl?search_alpha=6">6</a> ! <a href="tfbrowse_result.pl?search_alpha=7">7</a> ! <a href="tfbrowse_result.pl?search_alpha=8">8</a> ! <a href="tfbrowse_result.pl?search_alpha=9">9</a> --> ! <a href="tfbrowse_result.pl?search_alpha=A">A</a> ! <a href="tfbrowse_result.pl?search_alpha=B">B</a> ! <a href="tfbrowse_result.pl?search_alpha=C">C</a> ! <a href="tfbrowse_result.pl?search_alpha=D">D</a> ! <a href="tfbrowse_result.pl?search_alpha=E">E</a> ! <a href="tfbrowse_result.pl?search_alpha=F">F</a> ! <a href="tfbrowse_result.pl?search_alpha=G">G</a> ! <a href="tfbrowse_result.pl?search_alpha=H">H</a> ! <a href="tfbrowse_result.pl?search_alpha=I">I</a> ! <a href="tfbrowse_result.pl?search_alpha=J">J</a> ! <a href="tfbrowse_result.pl?search_alpha=K">K</a> ! <a href="tfbrowse_result.pl?search_alpha=L">L</a> ! <a href="tfbrowse_result.pl?search_alpha=M">M</a> ! <a href="tfbrowse_result.pl?search_alpha=N">N</a> ! <a href="tfbrowse_result.pl?search_alpha=O">O</a> ! <a href="tfbrowse_result.pl?search_alpha=P">P</a> ! <a href="tfbrowse_result.pl?search_alpha=Q">Q</a> ! <a href="tfbrowse_result.pl?search_alpha=R">R</a> ! <a href="tfbrowse_result.pl?search_alpha=S">S</a> ! <a href="tfbrowse_result.pl?search_alpha=T">T</a> ! <a href="tfbrowse_result.pl?search_alpha=U">U</a> ! <a href="tfbrowse_result.pl?search_alpha=V">V</a> ! <a href="tfbrowse_result.pl?search_alpha=W">W</a> ! <a href="tfbrowse_result.pl?search_alpha=X">X</a> ! <a href="tfbrowse_result.pl?search_alpha=Y">Y</a> ! <a href="tfbrowse_result.pl?search_alpha=Z">Z</a></B></td></tr> </table> </body> --- 15,54 ---- <B> <!-- ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=0">0</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=1">1</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=2">2</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=3">3</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=4">4</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=5">5</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=6">6</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=7">7</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=8">8</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=9">9</a> --> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=A">A</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=B">B</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=C">C</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=D">D</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=E">E</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=F">F</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=G">G</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=H">H</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=I">I</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=J">J</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=K">K</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=L">L</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=M">M</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=N">N</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=O">O</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=P">P</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=Q">Q</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=R">R</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=S">S</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=T">T</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=U">U</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=V">V</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=W">W</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=X">X</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=Y">Y</a> ! <a href="$pazar_cgi/tfbrowse_result.pl?search_alpha=Z">Z</a></B></td></tr> </table> </body> Index: tf_search.cgi =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/tf_search.cgi,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** tf_search.cgi 21 Apr 2007 00:20:10 -0000 1.38 --- tf_search.cgi 25 May 2007 00:09:15 -0000 1.39 *************** *** 14,33 **** use TFBS::Matrix::PFM; ! use Data::Dumper; ! require 'getsession.pl'; # open the html header template ! my $template = HTML::Template->new(filename => '/usr/local/apache/pazar.info/cgi-bin/header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR TF View'); ! ! $template->param(JAVASCRIPT_FUNCTION => q{ function setCount(target){ if(target == 0) { ! document.tf_search.action="http://www.pazar.info/cgi-bin/tf_list.cgi";; document.tf_search.target="Window1"; window.open('about:blank','Window1', 'resizable=1,scrollbars=yes, menubar=no, toolbar=no directories=no, height=800, width=800'); --- 14,39 ---- use TFBS::Matrix::PFM; ! #use Data::Dumper; ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! my $pazarhtdocspath = $ENV{PAZARHTDOCSPATH}; ! ! require "$pazarcgipath/getsession.pl"; # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR TF View'); ! $template->param(PAZAR_HTML => $pazar_html); ! $template->param(PAZAR_CGI => $pazar_cgi); ! $template->param(JAVASCRIPT_FUNCTION => qq{ function setCount(target){ if(target == 0) { ! document.tf_search.action="$pazar_cgi/tf_list.cgi"; document.tf_search.target="Window1"; window.open('about:blank','Window1', 'resizable=1,scrollbars=yes, menubar=no, toolbar=no directories=no, height=800, width=800'); *************** *** 35,48 **** if(target == 1) { ! document.tf_search.action="http://www.pazar.info/cgi-bin/tf_search.cgi";; document.tf_search.target="_self"; } if(target == 2) { ! document.tf_search.action="http://www.pazar.info/cgi-bin/tfbrowse_alpha.pl";; document.tf_search.target="Window2"; window.open('about:blank','Window2', 'resizable=1,scrollbars=yes, menubar=no, toolbar=no directories=no, height=600, width=650'); } ! } function verifyCheckedBoxes() { var numChecked = 0; --- 41,54 ---- if(target == 1) { ! document.tf_search.action="$pazar_cgi/tf_search.cgi"; document.tf_search.target="_self"; } if(target == 2) { ! document.tf_search.action="$pazar_cgi/tfbrowse_alpha.pl"; document.tf_search.target="Window2"; window.open('about:blank','Window2', 'resizable=1,scrollbars=yes, menubar=no, toolbar=no directories=no, height=600, width=650'); } ! }}.q{ function verifyCheckedBoxes() { var numChecked = 0; *************** *** 74,83 **** { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. ".'<a href=\'http://www.pazar.info/cgi-bin/logout.pl\'>Log Out</a>'); } else { #log in link ! $template->param(LOGOUT => '<a href=\'http://www.pazar.info/cgi-bin/login.pl\'>Log In</a>'); } --- 80,89 ---- { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. "."<a href=\'$pazar_cgi/logout.pl\'>Log Out</a>"); } else { #log in link ! $template->param(LOGOUT => "<a href=\'$pazar_cgi/login.pl\'>Log In</a>"); } *************** *** 174,178 **** my $seqcounter=0; ####start of form ! print "<form name='sequenceform' method='post' target='logowin' action='http://www.pazar.info/cgi-bin/tf_logo.pl'>";; foreach my $trans (@trans) { --- 180,184 ---- my $seqcounter=0; ####start of form ! print "<form name='sequenceform' method='post' target='logowin' action='$pazar_cgi/tf_logo.pl'>"; foreach my $trans (@trans) { *************** *** 298,302 **** $tfname_s=~s/\//-/g; print "<input type='hidden' name='accn' value='$tfname_s'"; ! my $file="/space/usr/local/apache/pazar.info/tmp/".$pazartfid.".fa"; open (TMP, ">$file"); --- 304,308 ---- $tfname_s=~s/\//-/g; print "<input type='hidden' name='accn' value='$tfname_s'"; ! my $file="$pazarhtdocspath/tmp/".$pazartfid.".fa"; open (TMP, ">$file"); *************** *** 331,335 **** <tr><td class="tftabletitle"><span class="title4">Species</span></td><td class="basictd">$species</td></tr> <tr><td class="tftabletitle"><span class="title4">TF Name</span></td><td class="basictd">$tf_name</td></tr> ! <tr><td class="tftabletitle"><span class="title4">PAZAR TF ID</span></td><td class="basictd"><a href="http://www.pazar.info/cgi-bin/tf_search.cgi?geneID=$pazartfid">$pazartfid</a></td></tr> <tr><td class="tftabletitle"><span class="title4">Transcript Accession</span></td><td class="basictd">$traccns</td></tr> <tr><td class="tftabletitle"><span class="title4">Class</span></td><td class="basictd">$trclasses</td></tr> --- 337,341 ---- <tr><td class="tftabletitle"><span class="title4">Species</span></td><td class="basictd">$species</td></tr> <tr><td class="tftabletitle"><span class="title4">TF Name</span></td><td class="basictd">$tf_name</td></tr> ! <tr><td class="tftabletitle"><span class="title4">PAZAR TF ID</span></td><td class="basictd"><a href="$pazar_cgi/tf_search.cgi?geneID=$pazartfid">$pazartfid</a></td></tr> <tr><td class="tftabletitle"><span class="title4">Transcript Accession</span></td><td class="basictd">$traccns</td></tr> <tr><td class="tftabletitle"><span class="title4">Class</span></td><td class="basictd">$trclasses</td></tr> *************** *** 383,392 **** print "<tr><td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><input type='checkbox' name='seq$seqcounter' value='".$site->get_seq."'><br>Genomic<br>Sequence</div></td>"; ! print "<td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><a href=\"http://www.pazar.info/cgi-bin/seq_search.cgi?regid=$rsid\">".$id."</a><br>$seqname</div></td>";; ! print "<td width='150' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><a href=\"http://www.pazar.info/cgi-bin/gene_search.cgi?geneID=$pazargeneid\">".$pazargeneid."</a><br><b>$ens_coords[5]</b><br>$species</div></td>";; print "<td width='300' class=\"basictd\" bgcolor=\"$colors{$bg_color}\"><div style=\"font-family:monospace;height:100; width:300;overflow:auto;\">".chopstr($site->get_seq,40)."</div></td>"; print "<td width='300' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><b>Coordinates:</b><br>".$coord."</div></td>"; ! print "<td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><a href=\"http://www.pazar.info/cgi-bin/gff_custom_track.cgi?resource=ucsc&chr=".$reg_seq->chromosome."&start=".$reg_seq->start."&end=".$reg_seq->end."&species=".$reg_seq->binomial_species."\"; target='_blank'><img src='http://www.pazar.info/images/ucsc_logo.png'></a><br><br>";; ! print "<a href=\"http://www.pazar.info/cgi-bin/gff_custom_track.cgi?resource=ensembl&chr=".$reg_seq->chromosome."&start=".$reg_seq->start."&end=".$reg_seq->end."&species=".$reg_seq->binomial_species."\"; target='_blank'><img src='http://www.pazar.info/images/ensembl_logo.gif'></a>";; print "</div></td>"; } --- 389,398 ---- print "<tr><td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><input type='checkbox' name='seq$seqcounter' value='".$site->get_seq."'><br>Genomic<br>Sequence</div></td>"; ! print "<td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><a href=\"$pazar_cgi/seq_search.cgi?regid=$rsid\">".$id."</a><br>$seqname</div></td>"; ! print "<td width='150' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><a href=\"$pazar_cgi/gene_search.cgi?geneID=$pazargeneid\">".$pazargeneid."</a><br><b>$ens_coords[5]</b><br>$species</div></td>"; print "<td width='300' class=\"basictd\" bgcolor=\"$colors{$bg_color}\"><div style=\"font-family:monospace;height:100; width:300;overflow:auto;\">".chopstr($site->get_seq,40)."</div></td>"; print "<td width='300' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><b>Coordinates:</b><br>".$coord."</div></td>"; ! print "<td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><a href=\"$pazar_cgi/gff_custom_track.cgi?resource=ucsc&chr=".$reg_seq->chromosome."&start=".$reg_seq->start."&end=".$reg_seq->end."&species=".$reg_seq->binomial_species."\" target='_blank'><img src='$pazar_html/images/ucsc_logo.png'></a><br><br>"; ! print "<a href=\"$pazar_cgi/gff_custom_track.cgi?resource=ensembl&chr=".$reg_seq->chromosome."&start=".$reg_seq->start."&end=".$reg_seq->end."&species=".$reg_seq->binomial_species."\" target='_blank'><img src='$pazar_html/images/ensembl_logo.gif'></a>"; print "</div></td>"; } *************** *** 438,443 **** #draw the logo my $logo = $accn.".png"; ! my $gd_image = $pfm->draw_logo(-file=>"/space/usr/local/apache/pazar.info/tmp/".$logo, -xsize=>400); ! print "<tr><td><span class=\"title4\">Logo</span></td><td><img src=\"http://www.pazar.info/tmp/$logo\">";; print "<p class=\"small\">These PFM and Logo were generated dynamically using the MEME pattern discovery algorithm.</p></td></tr>\n"; print "</table><br><br><br><br>\n"; --- 444,449 ---- #draw the logo my $logo = $accn.".png"; ! my $gd_image = $pfm->draw_logo(-file=>"$pazarhtdocspath/tmp/".$logo, -xsize=>400); ! print "<tr><td><span class=\"title4\">Logo</span></td><td><img src=\"$pazar_html/tmp/$logo\">"; print "<p class=\"small\">These PFM and Logo were generated dynamically using the MEME pattern discovery algorithm.</p></td></tr>\n"; print "</table><br><br><br><br>\n"; Index: contacts.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/contacts.pl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** contacts.pl 5 Feb 2007 21:44:18 -0000 1.3 --- contacts.pl 25 May 2007 00:09:15 -0000 1.4 *************** *** 3,11 **** use HTML::Template; # open the html header template ! my $template = HTML::Template->new(filename => 'header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR Contact Information'); # send the obligatory Content-Type and print the template output --- 3,17 ---- use HTML::Template; + my $pazar_cgi = $ENV{PAZAR_CGI}; + my $pazar_html = $ENV{PAZAR_HTML}; + my $pazarcgipath = $ENV{PAZARCGIPATH}; + # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR Contact Information'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); # send the obligatory Content-Type and print the template output *************** *** 15,19 **** <p class="title1">PAZAR - Contact Information</p> <table border="0" cellpadding="0" cellspacing="0" width="550"> ! <tbody><tr><td style='text-align: justify;'>PAZAR is hosted by <a target="_blank" href="http://sourceforge.net/projects/pazar">sourceforge.net</a>, where everyone can go and browse the <a href="http://cvs.sourceforge.net/viewcvs.py/pazar/"; target="_blank">CVS repository</a>.<br> A mailing list <a href="http://lists.sourceforge.net/lists/listinfo/pazar-news"; target="_blank">'News and Views'</a> is available in which every major development will be posted.<br> Two forums are also available so that everyone can ask for help (<a href="https://sourceforge.net/forum/forum.php?forum_id=520428"; target="_blank">'Help' forum</a>) or make any comment or suggestion (<a href="https://sourceforge.net/forum/forum.php?forum_id=512784"; target="_blank">'Open Discussion' forum</a>).<br> --- 21,25 ---- <p class="title1">PAZAR - Contact Information</p> <table border="0" cellpadding="0" cellspacing="0" width="550"> ! <tbody><tr><td style='text-align: justify;'>PAZAR is hosted by <a target="_blank" href="http://sourceforge.net/projects/pazar">sourceforge.net</a>, where everyone can go and browse the <a href="http://pazar.cvs.sourceforge.net/pazar/"; target="_blank">CVS repository</a>.<br> A mailing list <a href="http://lists.sourceforge.net/lists/listinfo/pazar-news"; target="_blank">'News and Views'</a> is available in which every major development will be posted.<br> Two forums are also available so that everyone can ask for help (<a href="https://sourceforge.net/forum/forum.php?forum_id=520428"; target="_blank">'Help' forum</a>) or make any comment or suggestion (<a href="https://sourceforge.net/forum/forum.php?forum_id=512784"; target="_blank">'Open Discussion' forum</a>).<br> *************** *** 26,34 **** Elodie Portales-Casamar, Postdoctoral fellow<br> Jonathan Lim, Software developer</p> ! <p class="title2">Team e-mail: <a href="mailto:pazar\@cmmt.ubc.ca"><img style="border: 0px solid ; height: 12px;" src="http://www.pazar.info/images/email.gif"></a></p> page # print out the html tail template ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 32,40 ---- Elodie Portales-Casamar, Postdoctoral fellow<br> Jonathan Lim, Software developer</p> ! <p class="title2">Team e-mail: <a href="mailto:pazar\@cmmt.ubc.ca"><img style="border: 0px solid ; height: 12px;" src="$pazar_html/images/email.gif"></a></p> page # print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; Index: gff_custom_track.cgi =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/gff_custom_track.cgi,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** gff_custom_track.cgi 6 Mar 2007 19:14:45 -0000 1.7 --- gff_custom_track.cgi 25 May 2007 00:09:15 -0000 1.8 *************** *** 1,7 **** #!/usr/bin/perl -w - use lib '/space/usr/local/src/ensembl-36/ensembl/modules/'; - use lib '/space/usr/local/src/bioperl-live/'; - use DBI; use pazar; --- 1,4 ---- *************** *** 12,16 **** #use CGI::Debug( report => 'everything', on => 'anything' ); ! require 'getsession.pl'; my $get = new CGI; --- 9,17 ---- #use CGI::Debug( report => 'everything', on => 'anything' ); ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! my $pazarhtdocspath = $ENV{PAZARHTDOCSPATH}; ! ! require "$pazarcgipath/getsession.pl"; my $get = new CGI; *************** *** 37,41 **** -drv => 'mysql'); ! my $ens_dbh = DBI->connect('DBI:mysql:ensembl_databases:napa.cmmt.ubc.ca','ensembl_r'); #use species to check whether ensembl and ucsc links are displayable using db_sync table in ensembl_databases #print "species: ".lc($params{species}); --- 38,50 ---- -drv => 'mysql'); ! my $ens_dbname = 'ensembl_databases'; ! my $ens_dbhost = $ENV{ENS_HOST}; ! my $ens_DBUSER = $ENV{ENS_USER}; ! my $ens_DBPASS = $ENV{ENS_PASS}; ! my $ens_DBURL = "DBI:mysql:dbname=$ens_dbname;host=$ens_dbhost"; ! ! my $ens_dbh = DBI->connect($ens_DBURL,$ens_DBUSER,$ens_DBPASS) ! or die "Can't connect to ensembl database"; ! #use species to check whether ensembl and ucsc links are displayable using db_sync table in ensembl_databases #print "species: ".lc($params{species}); *************** *** 114,118 **** my $randnum = substr(rand() * 100,3); my $filename = 'pazarchr'.$params{chr}."_".$randnum.'.gff'; ! my $file = '/usr/local/apache/pazar.info/mapping/'.$filename; open (GFF,">$file")||die; --- 123,127 ---- my $randnum = substr(rand() * 100,3); my $filename = 'pazarchr'.$params{chr}."_".$randnum.'.gff'; ! my $file = $pazarhtdocspath.'/mapping/'.$filename; open (GFF,">$file")||die; *************** *** 131,140 **** { $header = "browser position chr".$chr.":".($start-$flanking_bp)."-".($end+$flanking_bp)."\n"; ! $header = $header . "track name=PAZAR description='PAZAR-curated regulatory elements' color=160,1,1 url=\"http://www.pazar.info/mapping/\"";; } elsif($resource eq 'ensembl') { $header = "browser position chr".$chr.":".($start-$flanking_bp)."-".($end+$flanking_bp)."\n"; ! $header = $header . "track name=PAZAR description='PAZAR-curated regulatory elements' color=160,1,1 url=\"http://www.pazar.info/mapping/\"";; } --- 140,149 ---- { $header = "browser position chr".$chr.":".($start-$flanking_bp)."-".($end+$flanking_bp)."\n"; ! $header = $header . "track name=PAZAR description='PAZAR-curated regulatory elements' color=160,1,1 url=\"$pazar_html/mapping/\""; } elsif($resource eq 'ensembl') { $header = "browser position chr".$chr.":".($start-$flanking_bp)."-".($end+$flanking_bp)."\n"; ! $header = $header . "track name=PAZAR description='PAZAR-curated regulatory elements' color=160,1,1 url=\"$pazar_html/mapping/\""; } *************** *** 197,201 **** #assemble the ucsc web link ! print "<script>document.location.href='http://genome.ucsc.edu/cgi-bin/hgTracks?db=$ucscdb&hgt.customText=http://www.pazar.info/mapping/$filename'</script>";; } else --- 206,210 ---- #assemble the ucsc web link ! print "<script>document.location.href='http://genome.ucsc.edu/cgi-bin/hgTracks?db=$ucscdb&hgt.customText=$pazar_html/mapping/$filename'</script>";; } else *************** *** 217,221 **** $ensemblorg=~s/ /_/; ! print "<script>document.location.href='http://$ensembl_url/$ensemblorg/contigview?data_URL=http://www.pazar.info/mapping/$filename'</script>";; } --- 226,230 ---- $ensemblorg=~s/ /_/; ! print "<script>document.location.href='http://$ensembl_url/$ensemblorg/contigview?data_URL=$pazar_html/mapping/$filename'</script>";; } Index: tfbrowse_result.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/tfbrowse_result.pl,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** tfbrowse_result.pl 25 Sep 2006 18:33:14 -0000 1.8 --- tfbrowse_result.pl 25 May 2007 00:09:16 -0000 1.9 *************** *** 10,14 **** use pazar::tf; ! require 'getsession.pl'; print "content-type:text/html\n\n"; --- 10,17 ---- use pazar::tf; ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! ! require "$pazarcgipath/getsession.pl"; print "content-type:text/html\n\n"; *************** *** 68,72 **** </head> <body bgcolor="#ffffff"> ! <p> <b><a href="tfbrowse_alpha.pl">Back</a></b> <table width="100%" border="0" cellspacing="1" cellpadding="3"> <tbody> --- 71,75 ---- </head> <body bgcolor="#ffffff"> ! <p> <b><a href="$pazar_cgi/tfbrowse_alpha.pl">Back</a></b> <table width="100%" border="0" cellspacing="1" cellpadding="3"> <tbody> Index: step3.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/step3.pl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** step3.pl 9 Jan 2007 01:47:23 -0000 1.2 --- step3.pl 25 May 2007 00:09:15 -0000 1.3 *************** *** 3,11 **** use HTML::Template; # open the html header template ! my $template = HTML::Template->new(filename => 'header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR XML writing Step 3'); # send the obligatory Content-Type and print the template output --- 3,17 ---- use HTML::Template; + my $pazar_cgi = $ENV{PAZAR_CGI}; + my $pazar_html = $ENV{PAZAR_HTML}; + my $pazarcgipath = $ENV{PAZARCGIPATH}; + # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR XML writing Step 3'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); # send the obligatory Content-Type and print the template output *************** *** 18,22 **** <div style="text-align: justify;">This step starts inside an existing 'data' element. At this point, the 'reg_seq', 'funct_tf' and/or 'construct' elements ! should have been defined in this 'data' element (<a href="http://www.pazar.info/cgi-bin/step2.pl">see Step 2</a>).<br> <br> --- 24,28 ---- <div style="text-align: justify;">This step starts inside an existing 'data' element. At this point, the 'reg_seq', 'funct_tf' and/or 'construct' elements ! should have been defined in this 'data' element (<a href="$pazar_cgi/step2.pl">see Step 2</a>).<br> <br> *************** *** 196,200 **** ! Please look at the 3 PAZAR XML examples available on the <a href="http://www.pazar.info/cgi-bin/xml.pl">main page</a> if you need other examples.<br> <br> --- 202,206 ---- ! Please look at the 3 PAZAR XML examples available on the <a href="$pazar_cgi/xml.pl">main page</a> if you need other examples.<br> <br> *************** *** 316,323 **** ! <a style="text-decoration: none;" href="http://www.pazar.info/cgi-bin/step2.pl"><input value="<- To Step 2" type="button"></a> page # print out the html tail template ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 322,329 ---- ! <a style="text-decoration: none;" href="$pazar_cgi/step2.pl"><input value="<- To Step 2" type="button"></a> page # print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; Index: gene_search.cgi =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/gene_search.cgi,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** gene_search.cgi 21 Apr 2007 00:10:10 -0000 1.48 --- gene_search.cgi 25 May 2007 00:09:15 -0000 1.49 *************** *** 13,31 **** #use CGI::Debug( report => 'everything', on => 'anything' ); ! use Data::Dumper; ! require 'getsession.pl'; # open the html header template ! my $template = HTML::Template->new(filename => '/usr/local/apache/pazar.info/cgi-bin/header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR Gene View'); ! $template->param(JAVASCRIPT_FUNCTION => q{ function setCount(target){ if(target == 0) { ! document.gene_search.action="http://www.pazar.info/cgi-bin/gene_list.cgi";; document.gene_search.target="Window1"; window.open('about:blank','Window1', 'scrollbars=yes, menubar=no, toolbar=no directories=no, height=800, width=800'); --- 13,37 ---- #use CGI::Debug( report => 'everything', on => 'anything' ); ! #use Data::Dumper; ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! ! require "$pazarcgipath/getsession.pl"; # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR Gene View'); ! $template->param(PAZAR_HTML => $pazar_html); ! $template->param(PAZAR_CGI => $pazar_cgi); ! $template->param(JAVASCRIPT_FUNCTION => qq{ function setCount(target){ if(target == 0) { ! document.gene_search.action="$pazar_cgi/gene_list.cgi"; document.gene_search.target="Window1"; window.open('about:blank','Window1', 'scrollbars=yes, menubar=no, toolbar=no directories=no, height=800, width=800'); *************** *** 37,49 **** if(myTextField.value == "PAZAR_seq") { document.gene_search.target="_self"; ! document.gene_search.action="http://www.pazar.info/cgi-bin/seq_search.cgi";; } else { document.gene_search.target="_self"; ! document.gene_search.action="http://www.pazar.info/cgi-bin/gene_search.cgi";; } } if(target == 2) { ! document.gene_search.action="http://www.pazar.info/cgi-bin/genebrowse_alpha.pl";; document.gene_search.target="Window2"; window.open('about:blank','Window2', 'resizable=1,scrollbars=yes, menubar=no, toolbar=no directories=no, height=600, width=650'); --- 43,55 ---- if(myTextField.value == "PAZAR_seq") { document.gene_search.target="_self"; ! document.gene_search.action="$pazar_cgi/seq_search.cgi"; } else { document.gene_search.target="_self"; ! document.gene_search.action="$pazar_cgi/gene_search.cgi"; } } if(target == 2) { ! document.gene_search.action="$pazar_cgi/genebrowse_alpha.pl"; document.gene_search.target="Window2"; window.open('about:blank','Window2', 'resizable=1,scrollbars=yes, menubar=no, toolbar=no directories=no, height=600, width=650'); *************** *** 55,64 **** { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. ".'<a href=\'http://www.pazar.info/cgi-bin/logout.pl\'>Log Out</a>'); } else { #log in link ! $template->param(LOGOUT => '<a href=\'http://www.pazar.info/cgi-bin/login.pl\'>Log In</a>'); } --- 61,70 ---- { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. "."<a href=\'$pazar_cgi/logout.pl\'>Log Out</a>"); } else { #log in link ! $template->param(LOGOUT => "<a href=\'$pazar_cgi/login.pl\'>Log In</a>"); } *************** *** 208,212 **** # print out the html tail template and exit ! my $template_tail = HTML::Template->new(filename => '/usr/local/apache/pazar.info/cgi-bin/tail.tmpl'); print $template_tail->output; exit; --- 214,218 ---- # print out the html tail template and exit ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; exit; *************** *** 253,257 **** <table class="summarytable"><a name='$pazargeneid'></a> <tr><td class="genetabletitle"><span class="title4">Species</span></td><td class="basictd">$species</td></tr> ! <tr><td class="genetabletitle"><span class="title4">PAZAR Gene ID</span></td><td class=\"basictd\"><form name=\"genelink$pazargeneid\" method='post' action='http://www.pazar.info/cgi-bin/gene_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='geneID' value=\"$pazargeneid\"><input type='hidden' name='ID_list' value='PAZAR_gene'><input type=\"submit\" class=\"submitLink\" value=\"$pazargeneid\"> </form></td></tr> <tr><td class="genetabletitle"><span class="title4">Gene Name (user defined)</span></td><td class=\"basictd\">$geneName</td></tr> <tr><td class="genetabletitle"><span class="title4">EnsEMBL Gene ID</span></td><td class="basictd">$gene</td></tr> --- 259,263 ---- <table class="summarytable"><a name='$pazargeneid'></a> <tr><td class="genetabletitle"><span class="title4">Species</span></td><td class="basictd">$species</td></tr> ! <tr><td class="genetabletitle"><span class="title4">PAZAR Gene ID</span></td><td class=\"basictd\"><form name=\"genelink$pazargeneid\" method='post' action="$pazar_cgi/gene_search.cgi" enctype='multipart/form-data'><input type='hidden' name='geneID' value=\"$pazargeneid\"><input type='hidden' name='ID_list' value='PAZAR_gene'><input type=\"submit\" class=\"submitLink\" value=\"$pazargeneid\"> </form></td></tr> <tr><td class="genetabletitle"><span class="title4">Gene Name (user defined)</span></td><td class=\"basictd\">$geneName</td></tr> <tr><td class="genetabletitle"><span class="title4">EnsEMBL Gene ID</span></td><td class="basictd">$gene</td></tr> *************** *** 284,288 **** #print out default information print "<tr>"; ! print "<form name='details$regseq_counter' method='post' action='http://www.pazar.info/cgi-bin/seq_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='regid' value='".$regseq->accession_number."'>"; my $id=write_pazarid($regseq->accession_number,'RS'); --- 290,294 ---- #print out default information print "<tr>"; ! print "<form name='details$regseq_counter' method='post' action='$pazar_cgi/seq_search.cgi' enctype='multipart/form-data'><input type='hidden' name='regid' value='".$regseq->accession_number."'>"; my $id=write_pazarid($regseq->accession_number,'RS'); *************** *** 297,303 **** print "<td width='300' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'>chr".$regseq->chromosome.":".$regseq->start."-".$regseq->end." (strand ".$regseq->strand.")</div></td>"; ! print "<form name='display$regseq_counter' method='post' action='http://www.pazar.info/cgi-bin/gff_custom_track.cgi'; enctype='multipart/form-data' target='_blank'>"; ! print "<td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><input type='hidden' name='chr' value='".$regseq->chromosome."'><input type='hidden' name='start' value='".$regseq->start."'><input type='hidden' name='end' value='".$regseq->end."'><input type='hidden' name='species' value='".$regseq->binomial_species."'><input type='hidden' name='resource' value='ucsc'><a href='#' onClick=\"javascript:document.display$regseq_counter.resource.value='ucsc';document.display$regseq_counter.submit();\"><img src='http://www.pazar.info/images/ucsc_logo.png'></a><!--<input type='submit' name='ucsc' value='ucsc' onClick=\"javascript:document.display$regseq_counter.resource.value='ucsc';\">--><br><br><a href='#' onClick=\"javascript:document.display$regseq_counter.resource.value='ensembl';document.display$regseq_counter.submit();\"><img src='http://www.pazar.info/images/ensembl_logo.gif'></a><!--<input type='submit' name='ensembl' value='ensembl' onClick=\"javascript:document.display$regseq_counter.resource.value='ensembl';\">--></div></td></form>"; print "</tr>"; $bg_color = 1 - $bg_color; --- 303,309 ---- print "<td width='300' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'>chr".$regseq->chromosome.":".$regseq->start."-".$regseq->end." (strand ".$regseq->strand.")</div></td>"; ! print "<form name='display$regseq_counter' method='post' action='$pazar_cgi/gff_custom_track.cgi' enctype='multipart/form-data' target='_blank'>"; ! print "<td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><input type='hidden' name='chr' value='".$regseq->chromosome."'><input type='hidden' name='start' value='".$regseq->start."'><input type='hidden' name='end' value='".$regseq->end."'><input type='hidden' name='species' value='".$regseq->binomial_species."'><input type='hidden' name='resource' value='ucsc'><a href='#' onClick=\"javascript:document.display$regseq_counter.resource.value='ucsc';document.display$regseq_counter.submit();\"><img src='$pazar_html/images/ucsc_logo.png'></a><!--<input type='submit' name='ucsc' value='ucsc' onClick=\"javascript:document.display$regseq_counter.resource.value='ucsc';\">--><br><br><a href='#' onClick=\"javascript:document.display$regseq_counter.resource.value='ensembl';document.display$regseq_counter.submit();\"><img src='$pazar_html/images/ensembl_logo.gif'></a><!--<input type='submit' name='ensembl' value='ensembl' onClick=\"javascript:document.display$regseq_counter.resource.value='ensembl';\">--></div></td></form>"; print "</tr>"; $bg_color = 1 - $bg_color; *************** *** 312,316 **** # print out the html tail template ! my $template_tail = HTML::Template->new(filename => '/usr/local/apache/pazar.info/cgi-bin/tail.tmpl'); print $template_tail->output; --- 318,322 ---- # print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; Index: genebrowse_alpha.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/genebrowse_alpha.pl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** genebrowse_alpha.pl 27 Apr 2006 00:05:21 -0000 1.2 --- genebrowse_alpha.pl 25 May 2007 00:09:15 -0000 1.3 *************** *** 2,5 **** --- 2,7 ---- print "Content-type:text/html\n\n"; + my $pazar_cgi = $ENV{PAZAR_CGI}; + print<<Page_Done; <html> *************** *** 13,52 **** <B> <!-- ! <a href="genebrowse_result.pl?search_alpha=0">0</a> ! <a href="genebrowse_result.pl?search_alpha=1">1</a> ! <a href="genebrowse_result.pl?search_alpha=2">2</a> ! <a href="genebrowse_result.pl?search_alpha=3">3</a> ! <a href="genebrowse_result.pl?search_alpha=4">4</a> ! <a href="genebrowse_result.pl?search_alpha=5">5</a> ! <a href="genebrowse_result.pl?search_alpha=6">6</a> ! <a href="genebrowse_result.pl?search_alpha=7">7</a> ! <a href="genebrowse_result.pl?search_alpha=8">8</a> ! <a href="genebrowse_result.pl?search_alpha=9">9</a> --> ! <a href="genebrowse_result.pl?search_alpha=A">A</a> ! <a href="genebrowse_result.pl?search_alpha=B">B</a> ! <a href="genebrowse_result.pl?search_alpha=C">C</a> ! <a href="genebrowse_result.pl?search_alpha=D">D</a> ! <a href="genebrowse_result.pl?search_alpha=E">E</a> ! <a href="genebrowse_result.pl?search_alpha=F">F</a> ! <a href="genebrowse_result.pl?search_alpha=G">G</a> ! <a href="genebrowse_result.pl?search_alpha=H">H</a> ! <a href="genebrowse_result.pl?search_alpha=I">I</a> ! <a href="genebrowse_result.pl?search_alpha=J">J</a> ! <a href="genebrowse_result.pl?search_alpha=K">K</a> ! <a href="genebrowse_result.pl?search_alpha=L">L</a> ! <a href="genebrowse_result.pl?search_alpha=M">M</a> ! <a href="genebrowse_result.pl?search_alpha=N">N</a> ! <a href="genebrowse_result.pl?search_alpha=O">O</a> ! <a href="genebrowse_result.pl?search_alpha=P">P</a> ! <a href="genebrowse_result.pl?search_alpha=Q">Q</a> ! <a href="genebrowse_result.pl?search_alpha=R">R</a> ! <a href="genebrowse_result.pl?search_alpha=S">S</a> ! <a href="genebrowse_result.pl?search_alpha=T">T</a> ! <a href="genebrowse_result.pl?search_alpha=U">U</a> ! <a href="genebrowse_result.pl?search_alpha=V">V</a> ! <a href="genebrowse_result.pl?search_alpha=W">W</a> ! <a href="genebrowse_result.pl?search_alpha=X">X</a> ! <a href="genebrowse_result.pl?search_alpha=Y">Y</a> ! <a href="genebrowse_result.pl?search_alpha=Z">Z</a></B></td></tr> </table> </body> --- 15,54 ---- <B> <!-- ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=0">0</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=1">1</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=2">2</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=3">3</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=4">4</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=5">5</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=6">6</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=7">7</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=8">8</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=9">9</a> --> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=A">A</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=B">B</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=C">C</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=D">D</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=E">E</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=F">F</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=G">G</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=H">H</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=I">I</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=J">J</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=K">K</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=L">L</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=M">M</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=N">N</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=O">O</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=P">P</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=Q">Q</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=R">R</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=S">S</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=T">T</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=U">U</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=V">V</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=W">W</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=X">X</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=Y">Y</a> ! <a href="$pazar_cgi/genebrowse_result.pl?search_alpha=Z">Z</a></B></td></tr> </table> </body> Index: genebrowse_result.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/genebrowse_result.pl,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** genebrowse_result.pl 13 Jun 2006 18:21:23 -0000 1.6 --- genebrowse_result.pl 25 May 2007 00:09:15 -0000 1.7 *************** *** 10,14 **** use pazar::tf; ! require 'getsession.pl'; print "content-type:text/html\n\n"; --- 10,17 ---- use pazar::tf; ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! ! require "$pazarcgipath/getsession.pl"; print "content-type:text/html\n\n"; *************** *** 84,88 **** </head> <body bgcolor="#ffffff"> ! <p> <b><a href="genebrowse_alpha.pl">Back</a></b> <table width="100%" border="0" cellspacing="1" cellpadding="3"> <tbody> --- 87,91 ---- </head> <body bgcolor="#ffffff"> ! <p> <b><a href="$pazar_cgi/genebrowse_alpha.pl">Back</a></b> <table width="100%" border="0" cellspacing="1" cellpadding="3"> <tbody> Index: exp_search.cgi =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/exp_search.cgi,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** exp_search.cgi 21 Apr 2007 00:20:10 -0000 1.4 --- exp_search.cgi 25 May 2007 00:09:15 -0000 1.5 *************** *** 13,31 **** ###use CGI::Debug( report => 'everything', on => 'anything' ); ! use Data::Dumper; ! require 'getsession.pl'; # open the html header template ! my $template = HTML::Template->new(filename => '/usr/local/apache/pazar.info/cgi-bin/header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR Analysis View'); ! $template->param(JAVASCRIPT_FUNCTION => q{ function setCount(target){ if(target == 0) { ! document.gene_search.action="http://www.pazar.info/cgi-bin/gene_list.cgi";; document.gene_search.target="Window1"; window.open('about:blank','Window1', 'scrollbars=yes, menubar=no, toolbar=no directories=no, height=800, width=800'); --- 13,37 ---- ###use CGI::Debug( report => 'everything', on => 'anything' ); ! #use Data::Dumper; ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! ! require "$pazarcgipath/getsession.pl"; # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR Analysis View'); ! $template->param(PAZAR_HTML => $pazar_html); ! $template->param(PAZAR_CGI => $pazar_cgi); ! $template->param(JAVASCRIPT_FUNCTION => qq{ function setCount(target){ if(target == 0) { ! document.gene_search.action="$pazar_cgi/gene_list.cgi"; document.gene_search.target="Window1"; window.open('about:blank','Window1', 'scrollbars=yes, menubar=no, toolbar=no directories=no, height=800, width=800'); *************** *** 37,49 **** if(myTextField.value == "PAZAR_seq") { document.gene_search.target="_self"; ! document.gene_search.action="http://www.pazar.info/cgi-bin/seq_search.cgi";; } else { document.gene_search.target="_self"; ! document.gene_search.action="http://www.pazar.info/cgi-bin/gene_search.cgi";; } } if(target == 2) { ! document.gene_search.action="http://www.pazar.info/cgi-bin/genebrowse_alpha.pl";; document.gene_search.target="Window2"; window.open('about:blank','Window2', 'resizable=1,scrollbars=yes, menubar=no, toolbar=no directories=no, height=600, width=650'); --- 43,55 ---- if(myTextField.value == "PAZAR_seq") { document.gene_search.target="_self"; ! document.gene_search.action="$pazar_cgi/seq_search.cgi"; } else { document.gene_search.target="_self"; ! document.gene_search.action="$pazar_cgi/gene_search.cgi"; } } if(target == 2) { ! document.gene_search.action="$pazar_cgi/genebrowse_alpha.pl"; document.gene_search.target="Window2"; window.open('about:blank','Window2', 'resizable=1,scrollbars=yes, menubar=no, toolbar=no directories=no, height=600, width=650'); *************** *** 55,64 **** { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. ".'<a href=\'http://www.pazar.info/cgi-bin/logout.pl\'>Log Out</a>'); } else { #log in link ! $template->param(LOGOUT => '<a href=\'http://www.pazar.info/cgi-bin/login.pl\'>Log In</a>'); } --- 61,70 ---- { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. "."<a href=\'$pazar_cgi/logout.pl\'>Log Out</a>"); } else { #log in link ! $template->param(LOGOUT => "<a href=\'$pazar_cgi/login.pl\'>Log In</a>"); } *************** *** 195,199 **** <p class="title2">Search Result Details</p> <table class="summarytable"> ! <tr><td class="analysistabletitle"><span class="title4">Analysis ID</span></td><form name='intdetails' method='post' action='http://www.pazar.info/cgi-bin/exp_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='aid' value="$params{aid}"><td class="basictd"><input type="submit" class="submitLink" value="$pazaranid"></td></form></tr> <tr><td class="analysistabletitle"><span class="title4">Analysis Method</span></td><td class="basictd">$met[0]</td></tr> <tr><td class="analysistabletitle"><span class="title4">Cell Type</span></td><td class="basictd">$cellinfo</td></tr> --- 201,205 ---- <p class="title2">Search Result Details</p> <table class="summarytable"> ! <tr><td class="analysistabletitle"><span class="title4">Analysis ID</span></td><form name='intdetails' method='post' action="$pazar_cgi/exp_search.cgi" enctype='multipart/form-data'><input type='hidden' name='aid' value="$params{aid}"><td class="basictd"><input type="submit" class="submitLink" value="$pazaranid"></td></form></tr> <tr><td class="analysistabletitle"><span class="title4">Analysis Method</span></td><td class="basictd">$met[0]</td></tr> <tr><td class="analysistabletitle"><span class="title4">Cell Type</span></td><td class="basictd">$cellinfo</td></tr> *************** *** 267,271 **** my $pazarregid=write_pazarid($regid,'RS'); my $seqname=$reg_seq->id; ! print "<td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><form name='seqlink$count' method='post' action='http://www.pazar.info/cgi-bin/seq_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='regid' value=\"$regid\"><input type=\"submit\" class=\"submitLink\" value=\"$pazarregid\"><br>$seqname</form></div></td>"; my $gid=$reg_seq->PAZAR_gene_ID; my $pazargeneid = write_pazarid($gid,'GS'); --- 273,277 ---- my $pazarregid=write_pazarid($regid,'RS'); my $seqname=$reg_seq->id; ! print "<td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><form name='seqlink$count' method='post' action='$pazar_cgi/seq_search.cgi' enctype='multipart/form-data'><input type='hidden' name='regid' value=\"$regid\"><input type=\"submit\" class=\"submitLink\" value=\"$pazarregid\"><br>$seqname</form></div></td>"; my $gid=$reg_seq->PAZAR_gene_ID; my $pazargeneid = write_pazarid($gid,'GS'); *************** *** 277,281 **** my $species = $ensdb->current_org(); $species = ucfirst($species)||'-'; ! print "<td width='150' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><form name='genelink$count' method='post' action='http://www.pazar.info/cgi-bin/gene_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='geneID' value=\"$pazargeneid\"><input type='hidden' name='ID_list' value='PAZAR_gene'><input type=\"submit\" class=\"submitLink\" value=\"$pazargeneid\"><br><b>$ens_coords[5]</b><br>$species</form></div></td>"; my $seqstr=chopstr($reg_seq->seq,40)||'-'; --- 283,287 ---- my $species = $ensdb->current_org(); $species = ucfirst($species)||'-'; ! print "<td width='150' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><form name='genelink$count' method='post' action='$pazar_cgi/gene_search.cgi' enctype='multipart/form-data'><input type='hidden' name='geneID' value=\"$pazargeneid\"><input type='hidden' name='ID_list' value='PAZAR_gene'><input type=\"submit\" class=\"submitLink\" value=\"$pazargeneid\"><br><b>$ens_coords[5]</b><br>$species</form></div></td>"; my $seqstr=chopstr($reg_seq->seq,40)||'-'; *************** *** 291,295 **** my $regid=$mut[0]; my $pazarregid=write_pazarid($regid,'RS'); ! print "<td width='80' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'>Mutant of Sequence<form name='seqlink$count' method='post' action='http://www.pazar.info/cgi-bin/seq_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='regid' value=\"$regid\"><input type=\"submit\" class=\"submitLink\" value=\"$pazarregid\"></form></div></td>"; my $pazarmutid=write_pazarid($seqid,'MS'); --- 297,301 ---- my $regid=$mut[0]; my $pazarregid=write_pazarid($regid,'RS'); ! print "<td width='80' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'>Mutant of Sequence<form name='seqlink$count' method='post' action='$pazar_cgi/seq_search.cgi' enctype='multipart/form-data'><input type='hidden' name='regid' value=\"$regid\"><input type=\"submit\" class=\"submitLink\" value=\"$pazarregid\"></form></div></td>"; my $pazarmutid=write_pazarid($seqid,'MS'); *************** *** 307,311 **** my $species = $ensdb->current_org(); $species = ucfirst($species)||'-'; ! print "<td width='150' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><form name='genelink$count' method='post' action='http://www.pazar.info/cgi-bin/gene_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='geneID' value=\"$pazargeneid\"><input type='hidden' name='ID_list' value='PAZAR_gene'><input type=\"submit\" class=\"submitLink\" value=\"$pazargeneid\"><br><b>$ens_coords[5]</b><br>$species</form></div></td>"; my $seqstr=chopstr($mut[4],40)||'-'; --- 313,317 ---- my $species = $ensdb->current_org(); $species = ucfirst($species)||'-'; ! print "<td width='150' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><form name='genelink$count' method='post' action='$pazar_cgi/gene_search.cgi' enctype='multipart/form-data'><input type='hidden' name='geneID' value=\"$pazargeneid\"><input type='hidden' name='ID_list' value='PAZAR_gene'><input type=\"submit\" class=\"submitLink\" value=\"$pazargeneid\"><br><b>$ens_coords[5]</b><br>$species</form></div></td>"; my $seqstr=chopstr($mut[4],40)||'-'; *************** *** 379,383 **** my $complex = $tf->get_tfcomplex_by_id($tfid, 'notargets'); my $pazartfid=write_pazarid($tfid,'TF'); ! print "<form name='tflink$pazartfid$count' method='post' action='http://www.pazar.info/cgi-bin/tf_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='ID_list' value='PAZAR_TF'><input type='hidden' name='geneID' value=\"".$pazartfid."\"><input type=\"submit\" class=\"submitLink\" value=\"$pazartfid\"><br><b>".$complex->name."</b><br></form>"; } } --- 385,389 ---- my $complex = $tf->get_tfcomplex_by_id($tfid, 'notargets'); my $pazartfid=write_pazarid($tfid,'TF'); ! print "<form name='tflink$pazartfid$count' method='post' action='$pazar_cgi/tf_search.cgi' enctype='multipart/form-data'><input type='hidden' name='ID_list' value='PAZAR_TF'><input type='hidden' name='geneID' value=\"".$pazartfid."\"><input type=\"submit\" class=\"submitLink\" value=\"$pazartfid\"><br><b>".$complex->name."</b><br></form>"; } } *************** *** 414,418 **** my $pazarregid=write_pazarid($regid,'RS'); my $seqname=$reg_seq->id; ! print "<td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><form name='seqlink$count' method='post' action='http://www.pazar.info/cgi-bin/seq_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='regid' value=\"$regid\"><input type=\"submit\" class=\"submitLink\" value=\"$pazarregid\"><br>$seqname</form></div></td>"; my $gid=$reg_seq->PAZAR_gene_ID; my $pazargeneid = write_pazarid($gid,'GS'); --- 420,424 ---- my $pazarregid=write_pazarid($regid,'RS'); my $seqname=$reg_seq->id; ! print "<td width='100' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><form name='seqlink$count' method='post' action='$pazar_cgi/seq_search.cgi' enctype='multipart/form-data'><input type='hidden' name='regid' value=\"$regid\"><input type=\"submit\" class=\"submitLink\" value=\"$pazarregid\"><br>$seqname</form></div></td>"; my $gid=$reg_seq->PAZAR_gene_ID; my $pazargeneid = write_pazarid($gid,'GS'); *************** *** 424,428 **** my $species = $ensdb->current_org(); $species = ucfirst($species)||'-'; ! print "<td width='150' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><form name='genelink$count' method='post' action='http://www.pazar.info/cgi-bin/gene_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='geneID' value=\"$pazargeneid\"><input type='hidden' name='ID_list' value='PAZAR_gene'><input type=\"submit\" class=\"submitLink\" value=\"$pazargeneid\"><br><b>$ens_coords[5]</b><br>$species</form></div></td>"; my $seqstr=chopstr($reg_seq->seq,40)||'-'; --- 430,434 ---- my $species = $ensdb->current_org(); $species = ucfirst($species)||'-'; ! print "<td width='150' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><form name='genelink$count' method='post' action='$pazar_cgi/gene_search.cgi' enctype='multipart/form-data'><input type='hidden' name='geneID' value=\"$pazargeneid\"><input type='hidden' name='ID_list' value='PAZAR_gene'><input type=\"submit\" class=\"submitLink\" value=\"$pazargeneid\"><br><b>$ens_coords[5]</b><br>$species</form></div></td>"; my $seqstr=chopstr($reg_seq->seq,40)||'-'; *************** *** 437,441 **** my $regid=$mut[0]; my $pazarregid=write_pazarid($regid,'RS'); ! print "<td width='80' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'>Mutant of Sequence<form name='seqlink$count' method='post' action='http://www.pazar.info/cgi-bin/seq_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='regid' value=\"$regid\"><input type=\"submit\" class=\"submitLink\" value=\"$pazarregid\"></form></div></td>"; my $pazarmutid=write_pazarid($seqid,'MS'); --- 443,447 ---- my $regid=$mut[0]; my $pazarregid=write_pazarid($regid,'RS'); ! print "<td width='80' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'>Mutant of Sequence<form name='seqlink$count' method='post' action='$pazar_cgi/seq_search.cgi' enctype='multipart/form-data'><input type='hidden' name='regid' value=\"$regid\"><input type=\"submit\" class=\"submitLink\" value=\"$pazarregid\"></form></div></td>"; my $pazarmutid=write_pazarid($seqid,'MS'); *************** *** 453,457 **** my $species = $ensdb->current_org(); $species = ucfirst($species)||'-'; ! print "<td width='150' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><form name='genelink$count' method='post' action='http://www.pazar.info/cgi-bin/gene_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='geneID' value=\"$pazargeneid\"><input type='hidden' name='ID_list' value='PAZAR_gene'><input type=\"submit\" class=\"submitLink\" value=\"$pazargeneid\"><br><b>$ens_coords[5]</b><br>$species</form></div></td>"; my $seqstr=chopstr($mut[4],40)||'-'; --- 459,463 ---- my $species = $ensdb->current_org(); $species = ucfirst($species)||'-'; ! print "<td width='150' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><form name='genelink$count' method='post' action='$pazar_cgi/gene_search.cgi' enctype='multipart/form-data'><input type='hidden' name='geneID' value=\"$pazargeneid\"><input type='hidden' name='ID_list' value='PAZAR_gene'><input type=\"submit\" class=\"submitLink\" value=\"$pazargeneid\"><br><b>$ens_coords[5]</b><br>$species</form></div></td>"; my $seqstr=chopstr($mut[4],40)||'-'; *************** *** 503,507 **** my $complex = $tf->get_tfcomplex_by_id($tfid, 'notargets'); my $pazartfid=write_pazarid($tfid,'TF'); ! print "<td width='200' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><form name='tflink$pazartfid$count' method='post' action='http://www.pazar.info/cgi-bin/tf_search.cgi'; enctype='multipart/form-data'><input type='hidden' name='ID_list' value='PAZAR_TF'><input type='hidden' name='geneID' value=\"".$pazartfid."\"><input type=\"submit\" class=\"submitLink\" value=\"$pazartfid\"><br><b>".$complex->name."</b><br></form></div></td>"; } elsif ($tftable eq 'sample') { my @sample=$dbh->get_data_by_primary_key('sample',$tfid); --- 509,513 ---- my $complex = $tf->get_tfcomplex_by_id($tfid, 'notargets'); my $pazartfid=write_pazarid($tfid,'TF'); ! print "<td width='200' class=\"basictdcenter\" bgcolor=\"$colors{$bg_color}\"><div class='overflow'><form name='tflink$pazartfid$count' method='post' action='$pazar_cgi/tf_search.cgi' enctype='multipart/form-data'><input type='hidden' name='ID_list' value='PAZAR_TF'><input type='hidden' name='geneID' value=\"".$pazartfid."\"><input type=\"submit\" class=\"submitLink\" value=\"$pazartfid\"><br><b>".$complex->name."</b><br></form></div></td>"; } elsif ($tftable eq 'sample') { my @sample=$dbh->get_data_by_primary_key('sample',$tfid); *************** *** 515,519 **** # print out the html tail template ! my $template_tail = HTML::Template->new(filename => '/usr/local/apache/pazar.info/cgi-bin/tail.tmpl'); print $template_tail->output; --- 521,525 ---- # print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; Index: project.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/project.pl,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** project.pl 24 Nov 2006 01:23:41 -0000 1.14 --- project.pl 25 May 2007 00:09:15 -0000 1.15 *************** *** 2,6 **** use HTML::Template; ! use Data::Dumper; use pazar; use pazar::reg_seq; --- 2,6 ---- use HTML::Template; ! #use Data::Dumper; use pazar; use pazar::reg_seq; *************** *** 12,22 **** #use CGI::Debug( report => 'everything', on => 'anything' ); ! require 'getsession.pl'; # open the html header template ! my $template = HTML::Template->new(filename => '/usr/local/apache/pazar.info/cgi-bin/header.tmpl'); # fill in template parameters $template->param(TITLE => "PAZAR - Project View"); $template->param(JAVASCRIPT_FUNCTION => q{ var state=0; --- 12,28 ---- #use CGI::Debug( report => 'everything', on => 'anything' ); ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! ! require "$pazarcgipath/getsession.pl"; # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => "PAZAR - Project View"); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); $template->param(JAVASCRIPT_FUNCTION => q{ var state=0; *************** *** 37,46 **** { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. ".'<a href=\'http://www.pazar.info/cgi-bin/logout.pl\'>Log Out</a>'); } else { #log in link ! $template->param(LOGOUT => '<a href=\'http://www.pazar.info/cgi-bin/login.pl\'>Log In</a>'); } --- 43,52 ---- { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. "."<a href=\'$pazar_cgi/logout.pl\'>Log Out</a>"); } else { #log in link ! $template->param(LOGOUT => "<a href=\'$pazar_cgi/login.pl\'>Log In</a>"); } *************** *** 128,132 **** <table> <tbody> ! <form name="filters" METHOD="post" ACTION="http://www.pazar.info/cgi-bin/proj_res.cgi"; enctype="multipart/form-data" target="_self"> <tr> <td colspan="2"> --- 134,138 ---- <table> <tbody> ! <form name="filters" METHOD="post" ACTION="$pazar_cgi/proj_res.cgi" enctype="multipart/form-data" target="_self"> <tr> <td colspan="2"> *************** *** 415,419 **** ### print out the html tail template ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 421,425 ---- ### print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; |
From: elodiepc <elodiepc@us...> - 2007-05-25 00:09:16
|
Update of /cvsroot/pazar/HTML/pazar.info/cgi-bin/sWI In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4694/sWI Modified Files: accept_cre.cgi Log Message: removing all hard-coded parameters to environment variables Index: accept_cre.cgi =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/sWI/accept_cre.cgi,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** accept_cre.cgi 13 Feb 2007 00:46:15 -0000 1.12 --- accept_cre.cgi 25 May 2007 00:09:16 -0000 1.13 *************** *** 7,15 **** use pazar::reg_seq; ! require '/usr/local/apache/pazar.info/cgi-bin/getsession.pl'; #SYNOPSYS: Addin TF that interact with the target sequence and each other to produce a certain effect ! my $docroot=$ENV{PAZARHTDOCSPATH}.'/sWI'; ! my $cgiroot=$ENV{SERVER_NAME}.$ENV{PAZARCGI}.'/sWI'; my $query=new CGI; --- 7,19 ---- use pazar::reg_seq; ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! my $pazarhtdocspath = $ENV{PAZARHTDOCSPATH}; ! ! require "$pazarcgipath/getsession.pl"; #SYNOPSYS: Addin TF that interact with the target sequence and each other to produce a certain effect ! my $docroot=$pazarhtdocspath.'/sWI'; ! my $cgiroot=$pazar_cgi.'/sWI'; my $query=new CGI; |
From: elodiepc <elodiepc@us...> - 2007-05-25 00:07:24
|
Update of /cvsroot/pazar/HTML/pazar.info/cgi-bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3913 Modified Files: editprojects.pl index.pl Log Message: changing the project description restrictions. Now, the user can enter anything up to 2000 characters but it will be striped of special characters and html tags to be sent to the mall map. The entire description will be available on the project page Index: editprojects.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/editprojects.pl,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** editprojects.pl 29 Aug 2006 22:42:29 -0000 1.29 --- editprojects.pl 25 May 2007 00:06:37 -0000 1.30 *************** *** 6,10 **** use HTML::Template; ! require 'getsession.pl'; my $query=new CGI; --- 6,14 ---- use HTML::Template; ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! ! require "$pazarcgipath/getsession.pl"; my $query=new CGI; *************** *** 25,38 **** # open the html header template ! my $template = HTML::Template->new(filename => 'header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR Project Manager'); ! $template->param(JAVASCRIPT_FUNCTION => q{function verifyProjectCreate() { var themessage = "You are required to complete the following fields: "; var iChars = "!@#$%^&*()+=-[]\\\';,./{}|\":<>?"; // might want to be less strict with the description later - var iChars_desc = "!@$^*()+[]\\\'=&{}|\"<>"; var pnameSpecialChar = 0; --- 29,42 ---- # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR Project Manager'); ! $template->param(PAZAR_HTML => $pazar_html); ! $template->param(PAZAR_CGI => $pazar_cgi); $template->param(JAVASCRIPT_FUNCTION => q{function verifyProjectCreate() { var themessage = "You are required to complete the following fields: "; var iChars = "!@#$%^&*()+=-[]\\\';,./{}|\":<>?"; // might want to be less strict with the description later var pnameSpecialChar = 0; *************** *** 76,94 **** } - var pdescSpecialChar = 0; - for (var i = 0; i < document.createprojectform.projdesc.value.length; i++) { - if (iChars_desc.indexOf(document.createprojectform.projdesc.value.charAt(i)) != -1) { - pdescSpecialChar = 1; - } - } - if (pdescSpecialChar == 1) - { - themessage = themessage + "\nThe entered project description contains special characters. \nThese are not allowed. Please choose a different project description\n"; - } - //alert if fields are empty and cancel form submit if (themessage == "") { var descLength = document.createprojectform.projdesc.value.length; ! if(descLength < 301) { document.createprojectform.submit(); --- 80,87 ---- } //alert if fields are empty and cancel form submit if (themessage == "") { var descLength = document.createprojectform.projdesc.value.length; ! if(descLength < 2001) { document.createprojectform.submit(); *************** *** 96,100 **** else { ! alert("Please ensure that description is no more than 300 characters (Currently "+descLength+" characters)"); } } --- 89,93 ---- else { ! alert("Please ensure that description is no more than 2000 characters (Currently "+descLength+" characters)"); } } *************** *** 109,113 **** { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. ".'<a href=\'logout.pl\'>Log Out</a>'); $params{username}=$info{user}; --- 102,106 ---- { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. "."<a href=\'$pazar_cgi/logout.pl\'>Log Out</a>"); $params{username}=$info{user}; *************** *** 117,121 **** { #log in link ! $template->param(LOGOUT => '<a href=\'login.pl\'>Log In</a>'); } --- 110,114 ---- { #log in link ! $template->param(LOGOUT => "<a href=\'$pazar_cgi/login.pl\'>Log In</a>"); } *************** *** 152,156 **** if (decision == true) { ! if(descLength <301) { eval("document.updatedescform"+pid+".submit();"); --- 145,149 ---- if (decision == true) { ! if(descLength <2001) { eval("document.updatedescform"+pid+".submit();"); *************** *** 158,162 **** else { ! alert("Please ensure that description is no more than 300 characters (Currently "+descLength+" characters)"); } } --- 151,155 ---- else { ! alert("Please ensure that description is no more than 2000 characters (Currently "+descLength+" characters)"); } } *************** *** 422,426 **** #go to entry.pl script print<<Page2; ! <FORM name="submission" method="POST" action="http://www.pazar.info/cgi-bin/sWI/entry.pl"> <input type="hidden" name="username"> <input type="hidden" name="password"> --- 415,419 ---- #go to entry.pl script print<<Page2; ! <FORM name="submission" method="POST" action="$pazar_cgi/sWI/entry.pl"> <input type="hidden" name="username"> <input type="hidden" name="password"> *************** *** 467,471 **** #project description ! print "<form name=\"updatedescform$proj_id\" id=\"updatedescform$proj_id\" method='post' action='editprojects.pl'><td><textarea name='projdesc' cols=40 rows=6>$projdetails[4]</textarea>"; print "<input type='hidden' name='username' value='$params{username}'><input type='hidden' name='password' value='$params{password}'><input type='hidden' name='pid' value='$proj_id'><input type='hidden' name='mode' value='updatedesc'>Project Password: <br><input type='password' name='projpass'><input type='button' onClick='doUpdateDesc($proj_id);' value='Update Project Description'></form>"; print "</td>"; --- 460,464 ---- #project description ! print "<form name=\"updatedescform$proj_id\" id=\"updatedescform$proj_id\" method='post' action='$pazar_cgi/editprojects.pl'><td><textarea name='projdesc' cols=40 rows=6>$projdetails[4]</textarea>"; print "<input type='hidden' name='username' value='$params{username}'><input type='hidden' name='password' value='$params{password}'><input type='hidden' name='pid' value='$proj_id'><input type='hidden' name='mode' value='updatedesc'>Project Password: <br><input type='password' name='projpass'><input type='button' onClick='doUpdateDesc($proj_id);' value='Update Project Description'></form>"; print "</td>"; *************** *** 473,477 **** #project status update form ! print "<td><form method='post' action='editprojects.pl'>"; print "<select name='projstatus'>"; --- 466,470 ---- #project status update form ! print "<td><form method='post' action='$pazar_cgi/editprojects.pl'>"; print "<select name='projstatus'>"; *************** *** 514,525 **** print $userstring; #form: add user to this project ! print "</td><td><form name=\"useraddform$proj_id\" id=\"useraddform$proj_id\" method='post' action='editprojects.pl'><input type='hidden' name='username' value='$params{username}'><input type='hidden' name='password' value='$params{password}'><input type='hidden' name='pid' value='$proj_id'><input type='hidden' name='mode' value='adduser'>Registered Username: <br><input type='text' name='usertoadd' size=25><br>Project Password: <br><input type='password' name='projpass'><input type='button' onClick='doUserAdd($proj_id);' value='Add User To This Project'></form></td>"; #delete project form ! print "<td><form name=\"deleteform$proj_id\" id=\"deleteform$proj_id\" method='post' action='editprojects.pl'><input type='hidden' name='username' value='$params{username}'><input type='hidden' name='password' value='$params{password}'><input type='hidden' name='mode' value='delete'><input type='hidden' name='pid' value='$proj_id'>Project Password: <br><input type='password' name='projpass'><br><input type='button' onClick='doDelete($proj_id);' value='Delete This Project' ></form><hr>"; #remove myself from this project ! print "<form method='post' action='editprojects.pl'><input type='hidden' name='username' value='$params{username}'><input type='hidden' name='password' value='$params{password}'><input type='hidden' name='mode' value='useremove'><input type='hidden' name='pid' value='$proj_id'><input type='hidden' name='uid' value='$userid'><input type='submit' value='Remove Myself \nFrom This Project'></form></td>"; } --- 507,518 ---- print $userstring; #form: add user to this project ! print "</td><td><form name=\"useraddform$proj_id\" id=\"useraddform$proj_id\" method='post' action='$pazar_cgi/editprojects.pl'><input type='hidden' name='username' value='$params{username}'><input type='hidden' name='password' value='$params{password}'><input type='hidden' name='pid' value='$proj_id'><input type='hidden' name='mode' value='adduser'>Registered Username: <br><input type='text' name='usertoadd' size=25><br>Project Password: <br><input type='password' name='projpass'><input type='button' onClick='doUserAdd($proj_id);' value='Add User To This Project'></form></td>"; #delete project form ! print "<td><form name=\"deleteform$proj_id\" id=\"deleteform$proj_id\" method='post' action='$pazar_cgi/editprojects.pl'><input type='hidden' name='username' value='$params{username}'><input type='hidden' name='password' value='$params{password}'><input type='hidden' name='mode' value='delete'><input type='hidden' name='pid' value='$proj_id'>Project Password: <br><input type='password' name='projpass'><br><input type='button' onClick='doDelete($proj_id);' value='Delete This Project' ></form><hr>"; #remove myself from this project ! print "<form method='post' action='$pazar_cgi/editprojects.pl'><input type='hidden' name='username' value='$params{username}'><input type='hidden' name='password' value='$params{password}'><input type='hidden' name='mode' value='useremove'><input type='hidden' name='pid' value='$proj_id'><input type='hidden' name='uid' value='$userid'><input type='submit' value='Remove Myself \nFrom This Project'></form></td>"; } *************** *** 527,531 **** print<<AddFormHead; <p> ! <form name='createprojectform' method='post' action='editprojects.pl'> <input type='hidden' name='mode' value='add'> <input type='hidden' name='uid' value='$userid'> --- 520,524 ---- print<<AddFormHead; <p> ! <form name='createprojectform' method='post' action='$pazar_cgi/editprojects.pl'> <input type='hidden' name='mode' value='add'> <input type='hidden' name='uid' value='$userid'> *************** *** 557,561 **** print "<p class=\"warning\">Could not log you in. Please check user name and password and try again</p>"; ! print "<FORM method=\"POST\" action=\"editprojects.pl\">"; print "<table>"; print "<tr><td>User name</td><td> <input type=\"text\" name=\"username\"></td></tr>"; --- 550,554 ---- print "<p class=\"warning\">Could not log you in. Please check user name and password and try again</p>"; ! print "<FORM method=\"POST\" action=\"$pazar_cgi/editprojects.pl\">"; print "<table>"; print "<tr><td>User name</td><td> <input type=\"text\" name=\"username\"></td></tr>"; *************** *** 581,585 **** ! <FORM method="POST" action="dologin.pl"> <table> <tr><td >User name</td><td> <input type="text" name="username"></td></tr> --- 574,578 ---- ! <FORM method="POST" action="$pazar_cgi/dologin.pl"> <table> <tr><td >User name</td><td> <input type="text" name="username"></td></tr> *************** *** 595,598 **** # print out the html tail template ! my $template_tail = HTML::Template->new(filename => 'tail.tmpl'); print $template_tail->output; --- 588,591 ---- # print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; Index: index.pl =================================================================== RCS file: /cvsroot/pazar/HTML/pazar.info/cgi-bin/index.pl,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** index.pl 20 Apr 2007 23:16:33 -0000 1.21 --- index.pl 25 May 2007 00:06:37 -0000 1.22 *************** *** 11,31 **** use constant DB_HOST => $ENV{PAZAR_host}; ! require 'getsession.pl'; # open the html header template ! my $template = HTML::Template->new(filename => '/usr/local/apache/pazar.info/cgi-bin/header.tmpl'); # fill in template parameters $template->param(TITLE => 'PAZAR Mall'); if($loggedin eq 'true') { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. ".'<a href=\'http://www.pazar.info/cgi-bin/logout.pl\'>Log Out</a>'); } else { #log in link ! $template->param(LOGOUT => '<a href=\'http://www.pazar.info/cgi-bin/login.pl\'>Log In</a>'); } --- 11,37 ---- use constant DB_HOST => $ENV{PAZAR_host}; ! my $pazar_cgi = $ENV{PAZAR_CGI}; ! my $pazar_html = $ENV{PAZAR_HTML}; ! my $pazarcgipath = $ENV{PAZARCGIPATH}; ! ! require "$pazarcgipath/getsession.pl"; # open the html header template ! my $template = HTML::Template->new(filename => "$pazarcgipath/header.tmpl"); # fill in template parameters $template->param(TITLE => 'PAZAR Mall'); + $template->param(PAZAR_HTML => $pazar_html); + $template->param(PAZAR_CGI => $pazar_cgi); if($loggedin eq 'true') { #log out link ! $template->param(LOGOUT => "$info{first} $info{last} logged in. "."<a href=\'$pazar_cgi/logout.pl\'>Log Out</a>"); } else { #log in link ! $template->param(LOGOUT => "<a href=\'$pazar_cgi/login.pl\'>Log In</a>"); } *************** *** 54,60 **** my $restricted=&select($dbh, "SELECT * FROM project WHERE project_id='$proj' and upper(status)='RESTRICTED'"); while (my $restr=$restricted->fetchrow_hashref) { push @desc, { name => $restr->{project_name}, ! description => $restr->{description}}; } } --- 60,70 ---- my $restricted=&select($dbh, "SELECT * FROM project WHERE project_id='$proj' and upper(status)='RESTRICTED'"); while (my $restr=$restricted->fetchrow_hashref) { + my $flashdesc=$restr->{description}; + $flashdesc=~s/<(.*?)>//gi; + $flashdesc=~s/[!@\$\^\*\(\)\+\[\]\\\'=&\{\}\|\"\?]/ /g; + my $truncflashdesc=substr($flashdesc,0,300); push @desc, { name => $restr->{project_name}, ! description => $truncflashdesc}; } } *************** *** 62,65 **** --- 72,76 ---- undef(my $flashvars); + $flashvars='cgiPath='.$pazar_cgi; my $i=0; while ($i<10) { *************** *** 251,255 **** <table border="0" cellpadding="0" cellspacing="0" width="550"> <tbody><tr><td style="text-align:justify"><b>WELCOME TO PAZAR MALL!</b><br> ! PAZAR can be searched by <a href="http://www.pazar.info/cgi-bin/gene_search.cgi">Gene</a>, <a href="http://www.pazar.info/cgi-bin/tf_search.cgi">Transcription Factor</a> or <a href="http://www.pazar.info/cgi-bin/profilesearch.pl">Profile</a> by clicking on one of the department stores below.<br> Each project in PAZAR is a boutique in the mall. You can limit your search to a specific project by clicking on the corresponding boutique on the mall map.<br> If you own restricted projects, log in and they will appear in the mall map. If you just created a project and it does not appear on the mall map, please log out and log in again.</td></tr></tbody></table> --- 262,266 ---- <table border="0" cellpadding="0" cellspacing="0" width="550"> <tbody><tr><td style="text-align:justify"><b>WELCOME TO PAZAR MALL!</b><br> ! PAZAR can be searched by <a href="$pazar_cgi/gene_search.cgi">Gene</a>, <a href="$pazar_cgi/tf_search.cgi">Transcription Factor</a> or <a href="$pazar_cgi/profilesearch.pl">Profile</a> by clicking on one of the department stores below.<br> Each project in PAZAR is a boutique in the mall. You can limit your search to a specific project by clicking on the corresponding boutique on the mall map.<br> If you own restricted projects, log in and they will appear in the mall map. If you just created a project and it does not appear on the mall map, please log out and log in again.</td></tr></tbody></table> *************** *** 261,272 **** print<<page2; ! <param name="movie" value="http://www.pazar.info/images/TF_Mall.swf"; /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> page2 ! print "<embed src=\"http://www.pazar.info/images/TF_Mall.swf\"; FlashVars=\"".$flashvars."\" quality=\"high\" bgcolor=\"#ffffff\" width=\"600\" height=\"700\" name=\"TF_Mall\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"/></object>";; # print out the html tail template ! my $template_tail = HTML::Template->new(filename => '/usr/local/apache/pazar.info/cgi-bin/tail.tmpl'); print $template_tail->output; --- 272,283 ---- print<<page2; ! <param name="movie" value="$pazar_html/images/TF_Mall.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> page2 ! print "<embed src=\"$pazar_html/images/TF_Mall.swf\" FlashVars=\"".$flashvars."\" quality=\"high\" bgcolor=\"#ffffff\" width=\"600\" height=\"700\" name=\"TF_Mall\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"/></object>";; # print out the html tail template ! my $template_tail = HTML::Template->new(filename => "$pazarcgipath/tail.tmpl"); print $template_tail->output; |
From: elodiepc <elodiepc@us...> - 2007-05-23 20:24:44
|
Update of /cvsroot/pazar/API/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3665 Modified Files: gff_import.pl Log Message: updating the gff import script, adding more checks before the inserts Index: gff_import.pl =================================================================== RCS file: /cvsroot/pazar/API/scripts/gff_import.pl,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** gff_import.pl 29 May 2006 22:46:05 -0000 1.20 --- gff_import.pl 23 May 2007 20:24:39 -0000 1.21 *************** *** 1,6 **** #!/usr/bin/perl -w ! use lib '/home/elodie/Documents/PRdatabase/Oakridge/pazar/API'; ! use lib '/usr/src/ensembl-36/modules/'; use strict; --- 1,6 ---- #!/usr/bin/perl -w ! #use lib '/home/elodie/Documents/PRdatabase/Oakridge/pazar/API'; ! #use lib '/usr/src/ensembl-36/modules/'; use strict; *************** *** 16,21 **** my $file=shift; ! my $puser=shift; ! my $ppass=shift; eval { &store_data; }; --- 16,101 ---- my $file=shift; ! my $puser=shift||$ENV{PAZAR_elodielogin}; ! my $ppass=shift||$ENV{PAZAR_elodiepass}; ! ! ###check gene conversions and TF names ! open (GFF,$file); ! my %tfnames; ! while (my $buf=<GFF>) { ! chomp $buf; ! my ($chr,$proj,$tfbs,$start,$end,$score,$strand,$phase,$desc)=split(/\t/,$buf,9); ! my ($sp,$dbgene,$gaccn,$gdesc,$band,$dbtrans,$taccn,$tdesc,$dbtf,$tfaccn,$tfdesc); ! my @dat=split(/\s{0,};\s{0,}/,$desc); ! foreach my $dat (@dat) { ! my ($tag,$val)=split(/=/,$dat); ! $val=~s/\"//g; ! TAG: { ! if ($tag =~/species/i) { $sp=$val; next TAG;} ! if ($tag =~/db_tfinfo/i) { my @val =split (/\s{0,}:\s{0,}/,$val); $dbtf=$val[0]; $tfaccn=$val[1]; $tfdesc=$val[2]; next TAG;} ! if ($tag =~/db_geneinfo/i) { my @val =split (/\s{0,}:\s{0,}/,$val); $dbgene=$val[0]; $gaccn=$val[1]; $gdesc=$val[2]; next TAG;} ! if ($tag =~/db_transciptinfo/i) { my @val =split (/\s{0,}:\s{0,}/,$val); $dbtrans=$val[0]; $taccn=$val[1]; $tdesc=$val[2]; next TAG;} ! } ! } ! ! my $talkdb = pazar::talk->new(DB=>'ensembl',USER=>$ENV{ENS_USER},PASS=>$ENV{ENS_PASS},HOST=>$ENV{ENS_HOST},DRV=>'mysql',organism=>$sp); ! ! if ($dbgene=~/ensembl/i) { ! my @trans=$talkdb->ens_transcripts_by_gene($gaccn); ! unless ($trans[0]=~/\w{2,}/) {die "Gene $gaccn not found!"} ! } elsif ($dbgene=~/entrez\s{0,}gene/i) { ! my @gene=$talkdb->llid_to_ens($gaccn); ! if ($gene[0]=~/\w{2,}/) {$gaccn = $gene[0];} else {die "Conversion failed for $gaccn";} ! } else { ! my ($ens,$err) =convert_id($talkdb,$dbgene,$gaccn); ! if (!$ens) {die "Gene $gaccn not found $err";} else {$gaccn=$ens;} ! } ! $talkdb->db_chooser($gaccn); ! my $ens_built = $talkdb->current_release; ! ! if ($dbtrans) { ! if (!$taccn) { ! die "You must provide all needed transcript information in the following format:\n"."db_transcriptinfo=\"database:accession_number\";"; ! } ! if ($dbtrans=~/ensembl/i) { ! my ($gene_chk)=$talkdb->ens_transcr_to_gene($taccn); ! die "your transcript ID doesn't match your gene ID!" unless ($gene_chk eq $gaccn); ! } elsif ($dbtrans=~/refseq/i) { ! my ($trans)=$talkdb->nm_to_enst($taccn); ! if ($trans=~/\w{2,}/) { $taccn=$trans; } else {die "Conversion failed for $taccn";} ! } elsif ($dbtrans=~/swissprot/i) { ! my ($trans)=$talkdb->swissprot_to_enst($taccn); ! if ($trans=~/\w{2,}/) { $taccn=$trans; } else {die "Conversion failed for $taccn";} ! } else { ! die "The source $dbtrans is not allowed for a transcript ID!"; ! } ! } ! ! if ($dbtf) { ! if (!$tfdesc) { ! die "You must provide all needed TF information in the following format:\n"."db_tfinfo=\"database:accession_number:name\";"; ! } ! if ($dbtf=~/ensembl/i) { ! my ($gene_chk)=$talkdb->ens_transcr_to_gene($tfaccn); ! die "couldn't find your tf ID $tfaccn in the current EnsEMBL release!" unless ($gene_chk); ! } elsif ($dbtf=~/refseq/i) { ! my ($trans)=$talkdb->nm_to_enst($tfaccn); ! if ($trans=~/\w{2,}/) { $tfaccn=$trans; } else {die "Conversion failed for $tfaccn";} ! } elsif ($dbtf=~/swissprot/i) { ! my ($trans)=$talkdb->swissprot_to_enst($tfaccn); ! if ($trans=~/\w{2,}/) { $tfaccn=$trans; } else {die "Conversion failed for $tfaccn";} ! } else { ! die "The source $dbtf is not allowed for a TF ID!"; ! } ! if ($tfnames{$tfdesc}) { ! unless ($tfnames{$tfdesc} eq $tfaccn) { ! die "The TF $tfdesc was already entered with a different ID! You cannot give twice the same name to different TFS! Please correct this error before submitting again!"; ! } ! } else { ! $tfnames{$tfdesc}=$tfaccn; ! } ! # print "TF: ".$tfaccn."\n"; ! } ! } ! close(GFF); eval { &store_data; }; *************** *** 67,78 **** $ev='curated' unless ($ev); ###database connection ! my $pazar= pazar->new( -host => $ENV{PAZAR_host}, ! -user => $ENV{PAZAR_user}, ! -pass => $ENV{PAZAR_pass}, -pazar_user => $puser, -pazar_pass => $ppass, ! -dbname => $ENV{PAZAR_dbname}, -drv => 'mysql', -project => $proj); --- 147,160 ---- $ev='curated' unless ($ev); + ###check that all different TFs have a different names + ###database connection ! my $pazar= pazar->new( -host => $ENV{PAZAR_host}, ! -user => $ENV{PAZAR_adminuser}, ! -pass => $ENV{PAZAR_adminpass}, -pazar_user => $puser, -pazar_pass => $ppass, ! -dbname => $ENV{PAZAR_name}, -drv => 'mysql', -project => $proj); *************** *** 84,88 **** #add something if $gdesc eq 'marker'???? ! ###inserting all reg_seq data if ($dbgene=~/ensembl/i) { my @trans=$talkdb->ens_transcripts_by_gene($gaccn); --- 166,170 ---- #add something if $gdesc eq 'marker'???? ! ###getting all reg_seq data if ($dbgene=~/ensembl/i) { my @trans=$talkdb->ens_transcripts_by_gene($gaccn); *************** *** 125,128 **** --- 207,236 ---- } } + print "Gene: ".$gaccn."\n"; + + ###getting all tf data + my $tfgene; + if ($dbtf) { + if ($cell) { die "You can't report interaction and expression data in the same record!"} + if (!$tfdesc) { + die "You must provide all needed TF information in the following format:\n"."db_tfinfo=\"database:accession_number:name\";"; + } + if ($dbtf=~/ensembl/i) { + my ($gene_chk)=$talkdb->ens_transcr_to_gene($tfaccn); + die "couldn't find your tf ID $tfaccn in the current EnsEMBL release!" unless ($gene_chk); + } elsif ($dbtf=~/refseq/i) { + my ($trans)=$talkdb->nm_to_enst($tfaccn); + if ($trans=~/\w{2,}/) { $tfaccn=$trans; } else {die "Conversion failed for $tfaccn";} + } elsif ($dbtf=~/swissprot/i) { + my ($trans)=$talkdb->swissprot_to_enst($tfaccn); + if ($trans=~/\w{2,}/) { $tfaccn=$trans; } else {die "Conversion failed for $tfaccn";} + } else { + die "The source $dbtf is not allowed for a TF ID!"; + } + print "TF: ".$tfaccn."\n"; + ($tfgene) = $talkdb->ens_transcr_to_gene($tfaccn); + } + + # ###inserting reg_seg data my $reg_seq = new pazar::reg_seq( -seq=>$seq, *************** *** 149,176 **** my $regseq_id = $pazar->store_reg_seq($reg_seq); ! ###inserting all tf and interaction data my $funct_tfid; my $interid; if ($dbtf) { - if ($cell) { die "You can't report interaction and expression data in the same record!"} - if (!$tfdesc) { - die "You must provide all needed TF information in the following format:\n"."db_tfinfo=\"database:accession_number:name\";"; - } - print $tfaccn."\n"; - if ($dbtf=~/ensembl/i) { - my ($gene_chk)=$talkdb->ens_transcr_to_gene($tfaccn); - die "couldn't find your tf ID $tfaccn in the current EnsEMBL release!" unless ($gene_chk); - } elsif ($dbtf=~/refseq/i) { - my ($trans)=$talkdb->nm_to_enst($tfaccn); - if ($trans=~/\w{2,}/) { $tfaccn=$trans; } else {die "Conversion failed for $tfaccn";} - } elsif ($dbtf=~/swissprot/i) { - my ($trans)=$talkdb->swissprot_to_enst($tfaccn); - if ($trans=~/\w{2,}/) { $tfaccn=$trans; } else {die "Conversion failed for $tfaccn";} - } else { - die "The source $dbtf is not allowed for a TF ID!"; - } - print $tfaccn."\n"; - my ($tfgene) = $talkdb->ens_transcr_to_gene($tfaccn); - # print join("\t",$tfaccn,$tfgene,$tfdesc,$ens_built)."\n"; my $tf_complex=pazar::tf::tfcomplex->new(name=>$tfdesc); my $tf_sunit=pazar::tf::subunit->new( id => $tfgene, --- 257,264 ---- my $regseq_id = $pazar->store_reg_seq($reg_seq); ! # ###inserting tf and interaction data my $funct_tfid; my $interid; if ($dbtf) { my $tf_complex=pazar::tf::tfcomplex->new(name=>$tfdesc); my $tf_sunit=pazar::tf::subunit->new( id => $tfgene, *************** *** 183,196 **** $funct_tfid = $pazar->store_TF_complex($tf_complex); - # my $tfdbid = $pazar->table_insert('db_source','EnsEMBL',undef,$ens_built); - # my $tfgeneid = $pazar->table_insert('gene_source',$tfdbid,$tfgene,undef); - # my $tftransid = $pazar->table_insert('transcript',$tfgeneid,$tfdbid,$tfaccn,undef,undef); - # my $tfid = $pazar->table_insert('tf',$tftransid,undef,undef); - # $funct_tfid = $pazar->table_insert('funct_tf',$tfdesc, undef); - # my $tf_complexid = $pazar->table_insert('tf_complex',$tfid,$funct_tfid, undef); $interid = $pazar->table_insert('interaction','good',undef,undef,undef); } ! #inserting expression data my $cellid; my $timeid; --- 271,278 ---- $funct_tfid = $pazar->store_TF_complex($tf_complex); $interid = $pazar->table_insert('interaction','good',undef,undef,undef); } ! ###inserting expression data my $cellid; my $timeid; *************** *** 206,210 **** } ! #inserting mutation data my @mutsetids; my $mutinterid; --- 288,292 ---- } ! # #inserting mutation data my @mutsetids; my $mutinterid; *************** *** 250,254 **** } ! #inserting analysis data my $methodid = $pazar->table_insert('method',$met,undef); my $evid = $pazar->table_insert('evidence',$ev,'provisional'); --- 332,336 ---- } ! ###inserting analysis data my $methodid = $pazar->table_insert('method',$met,undef); my $evid = $pazar->table_insert('evidence',$ev,'provisional'); *************** *** 256,260 **** if ($pmid) { $pmidid = $pazar->table_insert('ref',$pmid);} ! #create a unique analysis name from the analysis id if (!$aname) { my $sth = $pazar->prepare("select max(analysis_id) from analysis"); --- 338,342 ---- if ($pmid) { $pmidid = $pazar->table_insert('ref',$pmid);} ! ###create a unique analysis name from the analysis id if (!$aname) { my $sth = $pazar->prepare("select max(analysis_id) from analysis"); |
From: elodiepc <elodiepc@us...> - 2007-05-23 20:20:08
|
Update of /cvsroot/pazar/API/dataset_import In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1749 Added Files: ABS_gff_final.txt Log Message: final GFF file to import the ABS data in PAZAR --- NEW FILE: ABS_gff_final.txt --- chr1 abs SRF_extracted04 227636635 227636643 . - . sequence="TCCTTCTTT"; db_seqinfo="EnsEMBL:NCBI 42"; species="Homo sapiens"; db_geneinfo="EntrezGene:58"; db_tfinfo="EnsEMBL Transcript:ENST00000265354:HUMAN_SRF"; evidence="curated"; pmid="12760745"; chr1 abs SRF_extracted04 227636635 227636643 . - . sequence="TCCTTCTTT"; db_seqinfo="EnsEMBL:NCBI 42"; species="Homo sapiens"; db_geneinfo="EntrezGene:58"; db_tfinfo="EnsEMBL Transcript:ENST00000265354:HUMAN_SRF"; evidence="curated"; pmid="9571041"; chr1 abs SRF_extracted04 227636680 227636688 . - . sequence="CCATATACG"; db_seqinfo="EnsEMBL:NCBI 42"; species="Homo sapiens"; db_geneinfo="EntrezGene:58"; db_tfinfo="EnsEMBL Transcript:ENST00000265354:HUMAN_SRF"; evidence="curated"; pmid="12760745"; chr1 abs SRF_extracted04 227636680 227636688 . - . sequence="CCATATACG"; db_seqinfo="EnsEMBL:NCBI 42"; species="Homo sapiens"; db_geneinfo="EntrezGene:58"; db_tfinfo="EnsEMBL Transcript:ENST00000265354:HUMAN_SRF"; evidence="curated"; pmid="9571041"; chr1 abs SRF_extracted04 227636553 227636561 . - . sequence="CCAAATATG"; db_seqinfo="EnsEMBL:NCBI 42"; species="Homo sapiens"; db_geneinfo="EntrezGene:58"; db_tfinfo="EnsEMBL Transcript:ENST00000265354:HUMAN_SRF"; evidence="curated"; pmid="12760745"; chr1 abs SRF_extracted04 227636553 227636561 . - . sequence="CCAAATATG"; db_seqinfo="EnsEMBL:NCBI 42"; species="Homo sapiens"; db_geneinfo="EntrezGene:58"; db_tfinfo="EnsEMBL Transcript:ENST00000265354:HUMAN_SRF"; evidence="curated"; pmid="9571041"; chr1 abs TEF1_extracted04 227636526 227636536 . - . sequence="GACATTCCTGC"; db_seqinfo="EnsEMBL:NCBI 42"; species="Homo sapiens"; db_geneinfo="EntrezGene:58"; db_tfinfo="EnsEMBL Transcript:ENST00000358190:HUMAN_EEF1A1"; evidence="curated"; pmid="12760745"; chr1 abs TEF1_extracted04 227636526 227636536 . - . sequence="GACATTCCTGC"; db_seqinfo="EnsEMBL:NCBI 42"; species="Homo sapiens"; db_geneinfo="EntrezGene:58"; db_tfinfo="EnsEMBL Transcript:ENST00000358190:HUMAN_EEF1A1"; evidence="curated"; pmid="9571041"; chr1 abs SP1_extracted04 227636516 227636527 . - . sequence="GCGGGGTGGCGC"; db_seqinfo="EnsEMBL:NCBI 42"; species="Homo sapiens"; db_geneinfo="EntrezGene:58"; db_tfinfo="EnsEMBL Transcript:ENST00000327443:HUMAN_SP1"; evidence="curated"; pmid="12760745"; chr1 abs SP1_extracted04 227636516 227636527 . - . sequence="GCGGGGTGGCGC"; db_seqinfo="EnsEMBL:NCBI 42"; species="Homo sapiens"; db_geneinfo="EntrezGene:58"; db_tfinfo="EnsEMBL Transcript:ENST00000327443:HUMAN_SP1"; evidence="curated"; pmid="9571041"; chr1 abs TBP_extracted04 227636490 227636494 . - . sequence="TATAA"; db_seqinfo="EnsEMBL:NCBI 42"; species="Homo sapiens"; db_geneinfo="EntrezGene:58"; db_tfinfo="EnsEMBL Transcript:ENST00000230354:HUMAN_TBP"; evidence="curated"; pmid="12760745"; chr1 abs TBP_extracted04 227636490 227636494 . - . sequence="TATAA"; db_seqinfo="EnsEMBL:NCBI 42"; species="Homo sapiens"; db_geneinfo="EntrezGene:58"; db_tfinfo="EnsEMBL Transcript:ENST00000230354:HUMAN_TBP"; evidence="curated"; pmid="9571041"; chr8 abs SRF_X67686 126781062 126781070 . - . sequence="CCATATACG"; db_seqinfo="EnsEMBL:NCBI 42"; species="Mus musculus"; db_geneinfo="EntrezGene:11459"; db_tfinfo="EnsEMBL Transcript:ENSMUST00000015749:MOUSE_SRF"; evidence="curated"; pmid="12760745"; chr8 abs SRF_X67686 126781062 126781070 . - . sequence="CCATATACG"; db_seqinfo="EnsEMBL:NCBI 42"; species="Mus musculus"; db_geneinfo="EntrezGene:11459"; db_tfinfo="EnsEMBL Transcript:ENSMUST00000015749:MOUSE_SRF"; evidence="curated"; pmid="9571041"; chr8 abs SRF_X67686 126781012 126781020 . - . sequence="TCCTTCTTT"; db_seqinfo="EnsEMBL:NCBI 42"; species="Mus musculus"; db_geneinfo="EntrezGene:11459"; db_tfinfo="EnsEMBL Transcript:ENSMUST00000015749:MOUSE_SRF"; evidence="curated"; pmid="12760745"; chr8 abs SRF_X67686 126781012 126781020 . - . sequence="TCCTTCTTT"; db_seqinfo="EnsEMBL:NCBI 42"; species="Mus musculus"; db_geneinfo="EntrezGene:11459"; db_tfinfo="EnsEMBL Transcript:ENSMUST00000015749:MOUSE_SRF"; evidence="curated"; pmid="9571041"; chr8 abs SRF_X67686 126780930 126780938 . - . sequence="CCAAATATG"; db_seqinfo="EnsEMBL:NCBI 42"; species="Mus musculus"; db_geneinfo="EntrezGene:11459"; db_tfinfo="EnsEMBL Transcript:ENSMUST00000015749:MOUSE_SRF"; evidence="curated"; pmid="12760745"; chr8 abs SRF_X67686 126780930 126780938 . - . sequence="CCAAATATG"; db_seqinfo="EnsEMBL:NCBI 42"; species="Mus musculus"; db_geneinfo="EntrezGene:11459"; db_tfinfo="EnsEMBL Transcript:ENSMUST00000015749:MOUSE_SRF"; evidence="curated"; pmid="9571041"; chr8 abs SP1_X67686 126780893 126780904 . - . sequence="TCGGGGCGGTGT"; db_seqinfo="EnsEMBL:NCBI 42"; species="Mus musculus"; db_geneinfo="EntrezGene:11459"; db_tfinfo="EnsEMBL Transcript:ENSMUST00000001326:MOUSE_SP1"; evidence="curated"; pmid="12760745"; [...993 lines suppressed...] chr9 abs SP1_X05831 70771192 70771214 . - . sequence="CTCGTGGGGGGGCGGGAAGGGAC"; db_seqinfo="EnsEMBL:NCBI 42"; species="Rattus norvegicus"; db_geneinfo="EntrezGene:25661"; db_tfinfo="EnsEMBL Transcript:ENSRNOT00000019403:RAT_SP1"; evidence="curated"; pmid="2542772"; chr9 abs SP1_X05831 70771192 70771214 . - . sequence="CTCGTGGGGGGGCGGGAAGGGAC"; db_seqinfo="EnsEMBL:NCBI 42"; species="Rattus norvegicus"; db_geneinfo="EntrezGene:25661"; db_tfinfo="EnsEMBL Transcript:ENSRNOT00000019403:RAT_SP1"; evidence="curated"; pmid="15608673"; chr9 abs SP1_X05831 70771192 70771214 . - . sequence="CTCGTGGGGGGGCGGGAAGGGAC"; db_seqinfo="EnsEMBL:NCBI 42"; species="Rattus norvegicus"; db_geneinfo="EntrezGene:25661"; db_tfinfo="EnsEMBL Transcript:ENSRNOT00000019403:RAT_SP1"; evidence="curated"; pmid="1404598"; chr9 abs TBP_X05831 70771181 70771185 . - . sequence="ATATA"; db_seqinfo="EnsEMBL:NCBI 42"; species="Rattus norvegicus"; db_geneinfo="EntrezGene:25661"; db_tfinfo="EnsEMBL Transcript:ENSRNOT00000002038:RAT_TBP"; evidence="curated"; pmid="1845987"; chr9 abs TBP_X05831 70771181 70771185 . - . sequence="ATATA"; db_seqinfo="EnsEMBL:NCBI 42"; species="Rattus norvegicus"; db_geneinfo="EntrezGene:25661"; db_tfinfo="EnsEMBL Transcript:ENSRNOT00000002038:RAT_TBP"; evidence="curated"; pmid="2170405"; chr9 abs TBP_X05831 70771181 70771185 . - . sequence="ATATA"; db_seqinfo="EnsEMBL:NCBI 42"; species="Rattus norvegicus"; db_geneinfo="EntrezGene:25661"; db_tfinfo="EnsEMBL Transcript:ENSRNOT00000002038:RAT_TBP"; evidence="curated"; pmid="2542772"; chr9 abs TBP_X05831 70771181 70771185 . - . sequence="ATATA"; db_seqinfo="EnsEMBL:NCBI 42"; species="Rattus norvegicus"; db_geneinfo="EntrezGene:25661"; db_tfinfo="EnsEMBL Transcript:ENSRNOT00000002038:RAT_TBP"; evidence="curated"; pmid="15608673"; chr9 abs TBP_X05831 70771181 70771185 . - . sequence="ATATA"; db_seqinfo="EnsEMBL:NCBI 42"; species="Rattus norvegicus"; db_geneinfo="EntrezGene:25661"; db_tfinfo="EnsEMBL Transcript:ENSRNOT00000002038:RAT_TBP"; evidence="curated"; pmid="1404598"; chr3 abs USF_extracted56 130730012 130730024 . + . sequence="CCTAGTGTCACCT"; db_seqinfo="EnsEMBL:NCBI 42"; species="Homo sapiens"; db_geneinfo="EntrezGene:6010"; db_tfinfo="EnsEMBL Transcript:ENST00000368021:HUMAN_USF1"; evidence="curated"; pmid="11333267"; chr3 abs CAAT_extracted56 130730038 130730046 . + . sequence="AAGCCAATT"; db_seqinfo="EnsEMBL:NCBI 42"; species="Homo sapiens"; db_geneinfo="EntrezGene:6010"; db_tfinfo="EnsEMBL Transcript:ENST00000341919:HUMAN_NFIC"; evidence="curated"; pmid="11333267"; chr3 abs NRL_extracted56 130730091 130730113 . + . sequence="CCCCAATCTCCCAGATGCTGATT"; db_seqinfo="EnsEMBL:NCBI 42"; species="Homo sapiens"; db_geneinfo="EntrezGene:6010"; db_tfinfo="EnsEMBL Transcript:ENST00000337947:HUMAN_NRL"; evidence="curated"; pmid="11333267"; chr3 abs TBP_extracted56 130730143 130730148 . + . sequence="TTTATA"; db_seqinfo="EnsEMBL:NCBI 42"; species="Homo sapiens"; db_geneinfo="EntrezGene:6010"; db_tfinfo="EnsEMBL Transcript:ENST00000230354:HUMAN_TBP"; evidence="curated"; pmid="11333267"; chr6 abs USF_extracted57 115897377 115897388 . + . sequence="CCCGATGTCACC"; db_seqinfo="EnsEMBL:NCBI 42"; species="Mus musculus"; db_geneinfo="EntrezGene:212541"; db_tfinfo="EnsEMBL Transcript:ENSMUST00000001284:MOUSE_USF1"; evidence="curated"; pmid="11333267"; chr6 abs CAAT_extracted57 115897402 115897415 . + . sequence="AAGCCAATTAGGCC"; db_seqinfo="EnsEMBL:NCBI 42"; species="Mus musculus"; db_geneinfo="EntrezGene:212541"; db_tfinfo="EnsEMBL Transcript:ENSMUST00000020461:MOUSE_NFIC"; evidence="curated"; pmid="11333267"; chr6 abs NRL_extracted57 115897450 115897467 . + . sequence="ATCTCGCGGATGCTGAAT"; db_seqinfo="EnsEMBL:NCBI 42"; species="Mus musculus"; db_geneinfo="EntrezGene:212541"; db_tfinfo="EnsEMBL Transcript:ENSMUST00000062232:MOUSE_NRL"; evidence="curated"; pmid="11333267"; chr6 abs TBP_extracted57 115897497 115897502 . + . sequence="TTTATA"; db_seqinfo="EnsEMBL:NCBI 42"; species="Mus musculus"; db_geneinfo="EntrezGene:212541"; db_tfinfo="EnsEMBL Transcript:ENSMUST00000039079:MOUSE_TBP"; evidence="curated"; pmid="11333267"; chr4 abs USF_extracted58 152057618 152057635 . + . sequence="CTTCCACCTGATGTCACC"; db_seqinfo="EnsEMBL:NCBI 42"; species="Rattus norvegicus"; db_geneinfo="EntrezGene:24717"; db_tfinfo="EnsEMBL Transcript:ENSRNOT00000005811:RAT_USF1"; evidence="curated"; pmid="11333267"; chr4 abs CAAT_extracted58 152057649 152057662 . + . sequence="AAGCTAATTAGGCC"; db_seqinfo="EnsEMBL:NCBI 42"; species="Rattus norvegicus"; db_geneinfo="EntrezGene:24717"; db_tfinfo="EnsEMBL Transcript:ENSRNOT00000005998:RAT_NFIC"; evidence="curated"; pmid="11333267"; chr4 abs NRL_extracted58 152057697 152057714 . + . sequence="ATCTCCCGGATGCTGAAT"; db_seqinfo="EnsEMBL:NCBI 42"; species="Rattus norvegicus"; db_geneinfo="EntrezGene:24717"; db_tfinfo="EnsEMBL Transcript:ENSRNOT00000024991:RAT_NRL"; evidence="curated"; pmid="11333267"; chr4 abs TBP_extracted58 152057744 152057749 . + . sequence="TTTATA"; db_seqinfo="EnsEMBL:NCBI 42"; species="Rattus norvegicus"; db_geneinfo="EntrezGene:24717"; db_tfinfo="EnsEMBL Transcript:ENSRNOT00000002038:RAT_TBP"; evidence="curated"; pmid="11333267"; |
From: Jonathan Lim <j_lim@us...> - 2007-05-22 19:35:54
|
Update of /cvsroot/pazar/devel/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21920 Modified Files: INSTALL Log Message: added Mail::Sendmail to dependencies Index: INSTALL =================================================================== RCS file: /cvsroot/pazar/devel/doc/INSTALL,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** INSTALL 18 May 2007 00:28:29 -0000 1.2 --- INSTALL 22 May 2007 19:35:05 -0000 1.3 *************** *** 54,57 **** --- 54,58 ---- HTML::Template XML::Checker::Parser + Mail::Sendmail (used for GFF and XML import and sending messages to users) - PAZAR API (for installation and usage instructions, see pszar/API/howto/basic |
From: kirovs <kirovs@us...> - 2007-05-21 20:13:51
|
Update of /cvsroot/pazar/API/pazar/talk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22131/API/pazar/talk Modified Files: GKDB.pm Log Message: remove ref to Exporter Index: GKDB.pm =================================================================== RCS file: /cvsroot/pazar/API/pazar/talk/GKDB.pm,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** GKDB.pm 29 May 2006 22:46:05 -0000 1.4 --- GKDB.pm 21 May 2007 20:13:50 -0000 1.5 *************** *** 6,14 **** use DBI; - use Exporter; use Bio::Root::Root; - @ISA=('Exporter'); - @EXPORTER=qw(getorg get_ll_id); --- 6,11 ---- |
From: Jonathan Lim <j_lim@us...> - 2007-05-18 00:28:31
|
Update of /cvsroot/pazar/devel/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24138 Modified Files: INSTALL Log Message: added meme to dependencies Index: INSTALL =================================================================== RCS file: /cvsroot/pazar/devel/doc/INSTALL,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** INSTALL 17 May 2007 17:53:20 -0000 1.1 --- INSTALL 18 May 2007 00:28:29 -0000 1.2 *************** *** 39,42 **** --- 39,44 ---- - Genekeydb database eg. napa.cmmt.ubc.ca + - MEME software (http://meme.sdsc.edu/meme/meme-download.html) + note: when installing MEME software, ensure that /cgi-bin directory is writeable by meme Perl Packages: |
From: Jonathan Lim <j_lim@us...> - 2007-05-17 17:54:11
|
Update of /cvsroot/pazar/devel/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31326 Added Files: INSTALL Log Message: PAZAR website system documentation first pass - incomplete, feel free to modify --- NEW FILE: INSTALL --- PAZAR SYSTEM DOCUMENTATION I Site Structure II Dependencies III Database Setup IV Ensembl V Deployment On Server VI Other Notes I Site Structure Directories: {htmlroot} eg. /usr/local/apache/pazar.info {cgi-bin} eg. /usr/local/apache/pazar.info/cgi-bin HTML /{htmlroot} /{htmlroot}/images - web page graphics /{htmlroot}/mapping /{htmlroot}/pod - documentation /{htmlroot}/sWI - web interface HTML files /{htmlroot}/testing /{htmlroot}/tmp CGI /{cgi-bin} /{cgi-bin}/admin - password protected directory for storing administration tools and statistics scripts /{cgi-bin}/cgi-logs /{cgi-bin}/sWI - web interface CGI files /{cgi-bin}/testing II Dependencies - Ensembl Database eg. napa.cmmt.ubc.ca, see ensembl_update_protocol.txt for instructions on updating ensembl databases. - Genekeydb database eg. napa.cmmt.ubc.ca Perl Packages: Carp CGI CGI::Carp CGI::Cookie CGI::Debug CGI::Session Crypt::Imail DBI HTML::Template XML::Checker::Parser - PAZAR API (for installation and usage instructions, see pszar/API/howto/basic - TFBS API - Bioperl live Include bioperl-live directory in web server environment (variable ENS_API) - Ensembl API (installed on same machine as web server) corresponding to version of ensembl databases III Database Setup MySQL: 1. Create mysql database and import schema from ddls/regdb_create_mysq.sql if creating new database, or import existing mysql database dump 2. Create read / write account for pazar database access 3. Create read-only account for pazar access by guests IV Ensembl Download Ensembl Core API from Ensembl CVS Include ensembl API in web server environment (variable ENS_API) Ensure that ensembl core databases have been set up, and set ENS_API, ENS_HOST, ENS_USER, ENS_PASS accordingly. V Deployment On Server Required Apache web server Environment variables BPLIVE - latest bioperl live ENS_API -ensembl API corresponding to core database release ENS_HOST - host machine for ensembl core databases ENS_PASS - ensembl core databases pass ENS_USER - ensembl core databases (read only) user GKDB_HOST - host machine for genekeydb GKDB_PASS - genekeydb database pass (read only) GKDB_USER - genekeydb database username (read only) PAZARCGIPATH - full path for pazar CGI scripts PAZARHTDOCSPATH - full path for pazar HTML files PAZAR_adminpass - admin pass for pazar database PAZAR_adminuser - admin username for pazar database (all privileges) PAZAR_host - host machine for pazar website PAZAR_name - name of pazar database PAZAR_pubpass - pass for public pazar database access PAZAR_pubuser - username for public pazar database access (read / write) PAZAR_CGI - URL for pazar CGI scripts PAZAR_HTML - URL for pazar HTML files Might be required in order for standard perl libraries to be found on some machines PERLLIB eg. /usr/local/lib/perl5/site_perl/5.8.7 LD_LIBRARY_PATH eg. /usr/local/lib/perl5/site_perl/5.8.7 Variables that might be used somewhere, but haven't determined where ENS_SOCK - mysql socket file PAZARCGI - old variable for full path to pazar CGI scripts PAZARHTDOCS - URL for HTML documents? PAZAR_user PAZAR_pass PAZAR_dbname PAZAR_sock PAZAR_talkdb PAZAR_drv TALKDB_GENEKEYDB_NAME TALKDB_ENSEMBL_NAME TALKDB_JASPAR_NAME V Other Configuration Setting up the secure folder for Backend Tools and statistics 1 create directory /usr/local/apache/pazar.info/admin 2 run htpasswd and create password file 3 in httpd.conf, authorize access to /admin subfolder based on username/password in password file VI Other Notes |
From: Jonathan Lim <j_lim@us...> - 2007-05-11 23:26:43
|
Update of /cvsroot/pazar/proserverDAS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27228 Added Files: README Log Message: proserver repository manifest --- NEW FILE: README --- Description of files: proserver.ini: configuration file for setting up pazar DAS service pazaradaptor.pm: sourceadaptor file to be placed in Bio-Das-ProServer/Bio/Das/ProServer/SourceAdaptor directory note: ignore all the subdirectories in this CVS module; they were accidentally imported |
From: Jonathan Lim <j_lim@us...> - 2007-05-11 23:10:30
|
Update of /cvsroot/pazar/proserverDAS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21025 Removed Files: ensembl_update_protocol.txt Log Message: --- ensembl_update_protocol.txt DELETED --- |
From: Jonathan Lim <j_lim@us...> - 2007-05-11 22:47:26
|
Update of /cvsroot/pazar/API/pazar/talk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11892 Modified Files: ensembl.pm Log Message: added get_dbh method, modified get_current_core_name and constructor Index: ensembl.pm =================================================================== RCS file: /cvsroot/pazar/API/pazar/talk/ensembl.pm,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** ensembl.pm 11 May 2007 13:47:25 -0000 1.27 --- ensembl.pm 11 May 2007 22:46:40 -0000 1.28 *************** *** 56,65 **** my $uorg=$params{organism}||'none'; my $mart=$params{ensmart}; ! # print "User: $user"; my $ENScs="dbi:$drv:host=$host;sid=ensembl_databases;database=ensembl_databases;"; my $dbh1=DBI->connect($ENScs,$user,$pass) or $class->throw("connecting: $DBI::errstr") ; ! $self->{ENSmanager}=$dbh1; bless( $self,$class); my @dbnames=$self->get_ensembl_dbnames($dbh1); unless ($mart) { --- 56,67 ---- my $uorg=$params{organism}||'none'; my $mart=$params{ensmart}; ! my $ENScs="dbi:$drv:host=$host;sid=ensembl_databases;database=ensembl_databases;"; my $dbh1=DBI->connect($ENScs,$user,$pass) or $class->throw("connecting: $DBI::errstr") ; ! ! my $self = {}; bless( $self,$class); + $self->{ENSmanager}=$dbh1; my @dbnames=$self->get_ensembl_dbnames($dbh1); unless ($mart) { *************** *** 69,73 **** die unless ($mart); my $martcs="dbi:$drv:host=$host;sid=$mart;database=$mart;"; - my ($self,%core); my $dbhmart=DBI->connect($martcs,$user,$pass) or $class->throw("connecting: $DBI::errstr $martcs" ); my $dbnchoser=$dbh1->prepare("select db_name, a.organism, version from ens_dbnames a, stable_org b where a.organism=b.organism and b.stable_id=? --- 71,74 ---- *************** *** 92,95 **** --- 93,117 ---- =head2 ens_transcr_to_gene + Function : Returns database handle for an ensembl database + Usage : my $ensembl_dbh = $ensembltalkobj->get_dbh($ensembltalkobj->get_current_core_name) + Returns : database handle + Args : ensembl database name + Warnings: + Notes : + + =cut + + sub get_dbh + { + my $self = shift; + my $dbname = shift; + my $ENScs="dbi:$self->{ENSdrv}:host=$self->{ENShost};sid=$dbname;database=$dbname;"; + my $dbh2=DBI->connect($ENScs,$self->{ENSuser},$self->{ENSpass}) or $class->throw("connecting: $DBI::errstr") ; + + return $dbh2; + } + + =head2 ens_transcr_to_gene + Function : Gets the gene stable id for a given transcript stable id the index of the input array gives you index of the returned array you should get (see Usage) *************** *** 637,643 **** sub get_ens_adaptor { my $self=shift; my $host=$self->{ENShost}; ! $self->{ENScurrentadaptor}= new Bio::EnsEMBL::DBSQL::DBAdaptor(-host => $host, -user =>$self->{ENSuser}, -dbname => ! $self->{ENScurrentname},-pass=>$self->{ENSpass}); return $self->{ENScurrentadaptor}; } --- 659,674 ---- sub get_ens_adaptor { my $self=shift; + my $dbname = ""; + if(@_) + { + $dbname = shift; + } + else + { + $dbname = $self->{ENScurrentname}; + } + my $host=$self->{ENShost}; ! $self->{ENScurrentadaptor}= new Bio::EnsEMBL::DBSQL::DBAdaptor(-host => $host, -user =>$self->{ENSuser}, -dbname =>$dbname,-pass=>$self->{ENSpass}); return $self->{ENScurrentadaptor}; } *************** *** 787,791 **** $org=~s/\s/_/; $org=lc($org); ! my ($name)=$self->get_ensembl_dbnames($self->{ENSdbh1},$org . '_core'); return $name; } --- 818,822 ---- $org=~s/\s/_/; $org=lc($org); ! my ($name)=$self->get_ensembl_dbnames($self->{ENSmanager},$org . '_core'); return $name; } |
From: kirovs <kirovs@us...> - 2007-05-11 13:47:26
|
Update of /cvsroot/pazar/API/pazar/talk In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26387 Modified Files: ensembl.pm Log Message: Altered get_ensembl_dbnames method (previous commit went bad?) Index: ensembl.pm =================================================================== RCS file: /cvsroot/pazar/API/pazar/talk/ensembl.pm,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** ensembl.pm 10 May 2007 20:05:39 -0000 1.26 --- ensembl.pm 11 May 2007 13:47:25 -0000 1.27 *************** *** 60,65 **** my $dbh1=DBI->connect($ENScs,$user,$pass) or $class->throw("connecting: $DBI::errstr") ; ! $class->{ENSmanager}=$dbh1; ! my @dbnames=get_ensembl_dbnames($dbh1); unless ($mart) { my @dupl; --- 60,66 ---- my $dbh1=DBI->connect($ENScs,$user,$pass) or $class->throw("connecting: $DBI::errstr") ; ! $self->{ENSmanager}=$dbh1; ! bless( $self,$class); ! my @dbnames=$self->get_ensembl_dbnames($dbh1); unless ($mart) { my @dupl; *************** *** 85,90 **** } $self->{USERmartorg}=$uorg; - - bless( $self,$class); return $self; } --- 86,89 ---- *************** *** 169,177 **** sub get_ensembl_dbnames { my $edbnh=shift; my $sel=$edbnh->prepare("use ensembl_databases")||$self->throw("Couldn't prepare the select st"); my @res; $sel->execute||die; ! my $droplist=$edbnh->prepare("select distinct db_name from ens_dbnames where current= 'yes'")||$self->throw("Couldn't prepare the droplist statement\n"); $droplist->execute||$self->throw("Couldn't execute droplist: ",$DBI::errstr,"\n"); my @all=@{$droplist->fetchall_arrayref}; --- 168,184 ---- sub get_ensembl_dbnames { + my $self=shift; my $edbnh=shift; + my $key=shift; my $sel=$edbnh->prepare("use ensembl_databases")||$self->throw("Couldn't prepare the select st"); my @res; $sel->execute||die; ! my $droplist; ! unless ($key) { ! $droplist=$edbnh->prepare("select distinct db_name from ens_dbnames where current= 'yes'")||$self->throw("Couldn't prepare the droplist statement\n"); ! } ! else { ! $droplist=$edbnh->prepare("select distinct db_name from ens_dbnames where current= 'yes' and db_name like '%$key%'")||$self->throw("Couldn't prepare the droplist statement\n"); ! } $droplist->execute||$self->throw("Couldn't execute droplist: ",$DBI::errstr,"\n"); my @all=@{$droplist->fetchall_arrayref}; *************** *** 183,187 **** - =head2 accn_to_llid --- 190,193 ---- |
From: aticoll <aticoll@us...> - 2007-05-10 21:11:45
|
Update of /cvsroot/pazar/API/cytoscape In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29962 Added Files: Cytoscape_for_PAZAR_README.txt Log Message: how to file --- NEW FILE: Cytoscape_for_PAZAR_README.txt --- Requires two input files: 1- Interaction file (.sif) [ generated by pazar/API/cytoscape/get_sif_interact.pl** ] ie. GeneID pd TFID (pd=protein dna interaction) TFID1 pp TFID2 (pp=protein protein interaction) 1 interaction per line 2 - Attribute file (.xls) [ generated by pazar/API/cytoscape/get_sif_attribute.pl ] ie. GeneID GENE TFID TF Second or further columns indicates the type of information that will be mapped to that node (column 1) in Cytoscape. Or: ie. TFID1 Species1 TFID2 Species2 INSTRUCTIONS: Install and run Cytoscape http://www.cytoscape.org/ File-->Import-->Network(Multiple File Types)... yourfile.sif Layout menu, select Cytoscape Layouts-->Spring Embedded, and All Nodes Under the File menu, select Import, and then Attributes from Table... yourtable.xls Under the View menu, select Open Vizmapper -> Define: Node colour -> New mapping -> Discrete mapper -> input name -> Map Attribute: appropriate column # of yourtable.xls -> Apply to network Repeat this for the following attributes selectable under VizMapper: Node attributes->Shape, Node attributes->Label, Edge attributes->color Arrange nodes in pleasing orientation by selecting individual nodes or groups of nodes with the mouse and dragging Under the View menu, select Open Vizmapper -> Create Legend File -> Export -> Network as Graphics (select file type) SAVE your session so you can reopen it and edit it again. Note- if you do not do this, you will need to reload everything from scratch next time. File -> Save -> save as yoursessionname.cys Next time: Launch Cytoscape. File -> Open -> yoursessionname.cys !!! DONE --------------------------------------------------------------------- **Notes re pazar/API/cytoscape/get_sif_interact.pl: complexes -The script prints pp interactions within a complex assuming the complex has only 2 components (>2 protein complexes must be implemented or dealt with manually). -A complex must be removed from results file manually if there is no gene interacting with both of its components. |