#!/usr/local/bin/perl ############################################################################### # Program : Display_submission_details.cgi # Author : Kerry Deutsch # # # Description : This program displays detailed information on how to submit # a genotyping request to the core facility. # # SBEAMS is Copyright (C) 2000-2005 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. # ############################################################################### ############################################################################### # Set up all needed modules and objects ############################################################################### use strict; use Getopt::Long; use FindBin; use lib "$FindBin::Bin/../../lib/perl"; use vars qw ($sbeams $sbeamsMOD $q $current_contact_id $current_username $PROG_NAME $USAGE %OPTIONS $QUIET $VERBOSE $DEBUG $DATABASE $TABLE_NAME $PROGRAM_FILE_NAME $CATEGORY $DB_TABLE_NAME @MENU_OPTIONS); use SBEAMS::Connection qw($q); use SBEAMS::Connection::Settings; use SBEAMS::Connection::Tables; use SBEAMS::Connection::TabMenu; use SBEAMS::Genotyping; use SBEAMS::Genotyping::Settings; use SBEAMS::Genotyping::Tables; $sbeams = new SBEAMS::Connection; $sbeamsMOD = new SBEAMS::Genotyping; $sbeamsMOD->setSBEAMS($sbeams); $sbeams->setSBEAMS_SUBDIR($SBEAMS_SUBDIR); use CGI qw/:standard -nosticky/; #use CGI; #$q = new CGI; ############################################################################### # Set program name and usage banner for command like use ############################################################################### $PROG_NAME = $FindBin::Script; $USAGE = <Authenticate() and exit if it fails or continue if it works. ############################################################################### sub main { #### Do the SBEAMS authentication and exit if a username is not returned exit unless ($current_username = $sbeams->Authenticate( )); #### Read in the default input parameters my %parameters; my $n_params_found = $sbeams->parse_input_parameters( q=>$q,parameters_ref=>\%parameters); #$sbeams->printDebuggingInfo($q); #### Process generic "state" parameters before we start $sbeams->processStandardParameters(parameters_ref=>\%parameters); #### Decide what action to take based on information so far if ($parameters{action} eq "Add_sample") { $sbeamsMOD->display_page_header(); upload_data(ref_parameters=>\%parameters); $sbeamsMOD->display_page_footer(); } elsif ($parameters{action} =~ "Pick_sample") { $sbeamsMOD->display_page_header(); pick_sample(ref_parameters=>\%parameters); $sbeamsMOD->display_page_footer(); }else { #if no experiment is present print all project and experiments $sbeamsMOD->display_page_header(); handle_request(ref_parameters=>\%parameters); $sbeamsMOD->display_page_footer(); } } # end main ############################################################################### # Handle Request ############################################################################### sub handle_request { my %args = @_; #### Process the arguments list my $ref_parameters = $args{'ref_parameters'} || die "ref_parameters not passed"; my %parameters = %{$ref_parameters}; #### Show current user context information $sbeams->printUserContext(); $current_contact_id = $sbeams->getCurrent_contact_id(); ##Get the Project information #### Print Info On how to submit a genotyping request print qq! TO SUBMIT A GENOTYPING REQUEST:

PLEASE READ THE FOLLOWING CAREFULLY:

DNA criteria

Shipping instructions

This system is still under active development. Please be patient and report bugs, problems, difficulties, suggestions to kdeutsch\@systemsbiology.org.

!; }