Changeset 14067 for trunk/ippScripts/scripts/detrend_norm_calc.pl
- Timestamp:
- Jul 8, 2007, 10:33:25 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_norm_calc.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_norm_calc.pl
r14009 r14067 114 114 my %matrix; # Matrix of statistics as a function of exposures and classes 115 115 foreach my $file (@files) { 116 my $exp_ tag = $file->{'exp_tag'}; # Exposure ID116 my $exp_id = $file->{'exp_id'}; # Exposure ID 117 117 my $class_id = $file->{'class_id'}; # Class ID 118 118 my $stat = $file->{STATISTIC()}; # Statistic of interest 119 119 120 120 # Create matrix elements 121 $matrix{$exp_ tag} = {} if not defined $matrix{$exp_tag};122 $matrix{$exp_ tag}->{$class_id} = $stat;121 $matrix{$exp_id} = {} if not defined $matrix{$exp_id}; 122 $matrix{$exp_id}->{$class_id} = $stat; 123 123 } 124 124 125 125 # Generate the input for ppNormCalc 126 126 my $normData; # Normalisation data 127 foreach my $exp_ tag(keys %matrix) {128 $normData .= "$exp_ tag\tMETADATA\n";129 foreach my $class_id (keys %{$matrix{$exp_ tag}}) {130 $normData .= "\t" . $class_id . "\tF32\t" . $matrix{$exp_ tag}->{$class_id} . "\n";127 foreach my $exp_id (keys %matrix) { 128 $normData .= "$exp_id\tMETADATA\n"; 129 foreach my $class_id (keys %{$matrix{$exp_id}}) { 130 $normData .= "\t" . $class_id . "\tF32\t" . $matrix{$exp_id}->{$class_id} . "\n"; 131 131 } 132 132 $normData .= "END\n\n";
Note:
See TracChangeset
for help on using the changeset viewer.
