#!/usr/local/bin/perl ############################################################################### # $Id: peptideSearch.cgi 4280 2006-01-13 06:02:10Z dcampbel $ # # SBEAMS is Copyright (C) 2000-2008 Institute for Systems Biology # This program is governed by the terms of the GNU General Public License (GPL) # version 2 as published by the Free Software Foundation. It is provided # WITHOUT ANY WARRANTY. See the full description of GPL terms in the # LICENSE file distributed with this software. ############################################################################### ############################################################################### # Get the script set up with everything it will need ############################################################################### use strict; use lib qw (../../lib/perl); use CGI::Carp qw(fatalsToBrowser croak); use Data::Dumper; use SBEAMS::Connection qw($q $log); use SBEAMS::Connection::Settings; use SBEAMS::Connection::Tables; use SBEAMS::Connection::TabMenu; use SBEAMS::Connection::DataTable; use SBEAMS::Glycopeptide; use SBEAMS::Glycopeptide::Settings; use SBEAMS::Glycopeptide::Tables; use SBEAMS::Glycopeptide::Get_glyco_seqs; use SBEAMS::Glycopeptide::Glyco_query; # Global Variables ############################################################################### # my $sbeams = new SBEAMS::Connection; $sbeams->setSBEAMS_SUBDIR($SBEAMS_SUBDIR); my $sbeamsMOD = new SBEAMS::Glycopeptide; $sbeamsMOD->setSBEAMS($sbeams); my $glyco_query_o = new SBEAMS::Glycopeptide::Glyco_query; $glyco_query_o->setSBEAMS($sbeams); my $predicted_track_type = "Predicted Peptides"; my $id_track_type = 'Identified Peptides'; my $longest = 0; main(); ############################################################################### # Main Program: # # Call $sbeams->Authentication and stop immediately if authentication # fails else continue. ############################################################################### sub main { my $current_username; #### Do the SBEAMS authentication and exit if a username is not returned exit unless ($current_username = $sbeams->Authenticate( # permitted_work_groups_ref=>['Glycopeptide_user','Glycopeptide_admin', 'Glycopeptide_readonly'], #connect_read_only=>1, allow_anonymous_access=>1, )); #### Read in the default input parameters my %parameters; my $n_params_found = $sbeams->parse_input_parameters( q=>$q, parameters_ref=>\%parameters ); if ( $parameters{unipep_build_id} ) { my $build_id = $sbeamsMOD->get_current_build( build_id => $parameters{unipep_build_id} ); if ( $build_id != $parameters{unipep_build_id} ) { $sbeams->set_page_message( type => 'Error', msg => 'You must log in to access specified build' ); } } ## get project_id to send to HTMLPrinter display my $project_id = $sbeams->getCurrent_project_id(); #### Process generic "state" parameters before we start $sbeams->processStandardParameters(parameters_ref=>\%parameters); #$sbeams->printDebuggingInfo($q); my $tabber = ' ' x 400; my $content = qq~
$tabber Back to kinase home
~; #### Decide what action to take based on information so far my $regulates = display_kinase( acc => $parameters{kinase}, mode => 'regulates' ); if ( $regulates ) { $content .= <<" END"; This table displays phosphopeptides whose abundance was significantly more than log2-fold changed in the $parameters{kinase} knockout
This table displays knockout strains in which the target protein, $parameters{kinase},
was more than 2-fold different relative
to a control strain. Up-regulation is shown in
green, down regulation is shown in red.