Advertisement

07.04.2008 at 08:17AM PDT, ID: 23539604
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.1

Normalization of scores in a arbitrary scale

Asked by mjcoyne in Perl Programming Language, Math & Science

I am trying to find a procedure for normalizing values of several scales so that results produced when comparing a protein sequence to them can all be plotted on the same graph.  I can normalize the values of the scale such that they fall between 0 and 1 using the following code:

#!/usr/bin/perl -w
use strict;

my %hydrophobicity = (
  # Kyte, J. & R. F. Doolittle. 1982. J Mol Biol 157:105-132.
  'S' => '-0.8', 'F' => '2.8', 'T' => '-0.7',
  'N' => '-3.5', 'K' => '-3.9', 'Y' => '-1.3',
  'E' => '-3.5', 'V' => '4.2', 'Q' => '-3.5',
  'M' => '1.9', 'C' => '2.5', 'L' => '3.8',
  'A' => '1.8', 'W' => '-0.9', 'P' => '-1.6',
  'H' => '-3.2', 'D' => '-3.5', 'R' => '-4.5',
  'I' => '4.5', 'G' => '-0.4',
);

my @values = values %hydrophobicity;
my ($min, $max) = min_max(@values);
my $range = abs($min - $max);

my %normal = normalize(\%hydrophobicity, $max, $range);

use Data::Dumper;
print Dumper(\%normal);

sub normalize {
    my ($scale, $max, $range) = @_;
    my %normalized;
    foreach (sort keys %{$scale}) {
        $normalized{$_} = ($scale->{$_} + $max)/$range;
    }
    return %normalized;
}

sub min_max {
    my @values = @_;
    my ($min, $max) = ($values[0], $values[0]);
   
    $_ < $min and $min = $_ for @values;
    $_ > $max and $max = $_ for @values;
   
    return ($min, $max);
}

This is good, as far as it goes.  How can I normalize an arbitrary scale (I've included one well-known hydrophobicity scale here, but there are hundreds of similar scales measuring various attributes of amino acid residues) so that all values fall between, say, -5 and +5?

I am trying to do something similar to what is described at http://www.imtech.res.in/raghava/bcepred/bcepred_algorithm.html in the "Normalization procedure" section, but I can't translate this paragraph into Perl.

Any help greatly appreciated...Start Free Trial
[+][-]07.04.2008 at 10:22AM PDT, ID: 21934067

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.05.2008 at 05:39AM PDT, ID: 21936776

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 01:30AM PDT, ID: 21943375

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 04:34AM PDT, ID: 21944063

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 04:42AM PDT, ID: 21944106

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 04:56AM PDT, ID: 21944202

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 05:01AM PDT, ID: 21944228

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 10:08AM PDT, ID: 21946767

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Perl Programming Language, Math & Science
Sign Up Now!
Solution Provided By: Adam314
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.07.2008 at 01:09PM PDT, ID: 21948263

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 01:22PM PDT, ID: 21948351

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.08.2008 at 04:55AM PDT, ID: 21952806

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.08.2008 at 06:56AM PDT, ID: 21953846

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.08.2008 at 08:11AM PDT, ID: 21954558

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.08.2008 at 02:22PM PDT, ID: 21958405

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.08.2008 at 02:31PM PDT, ID: 21958476

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628