Guest User

Untitled

a guest
Jan 24th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. The error message is:
  2. Attribute (control_signal_for_tissue) does not pass the type constraint because: Validation failed for 'HashRef[Num]' with value %dif_in_control_sig at /home/ray/cxgn/sgn/lib//SGN/Feature/ExpressionViewer/Converter.pm line 145
  3. SGN::Feature::ExpressionViewer::Converter::calculate_comparison('SGN::Feature::ExpressionViewer::Converter=HASH(0x8bda4a0)', 'SGN::Feature::ExpressionViewer::Converter=HASH(0x8be3610)', 0, 0, 0, 0) called at /home/ray/cxgn/sgn/lib//SGN/Feature/ExpressionViewer/Analyzer.pm line 133
  4. SGN::Feature::ExpressionViewer::Analyzer::make_comparison_picture('SGN::Feature::ExpressionViewer::Analyzer=HASH(0x8be3540)', 0, 0, 0, 0) called at image_conversion.t line 419
  5.  
  6. And the code is:
  7. my ($self, $comparison_converter, $threshold,
  8. $override, $grey_mask_on, $mask_ratio) = @_;
  9. my %dif_in_gene_sig;
  10. my %dif_in_control_sig;
  11. for my $tissue ($self->tissues)
  12. {
  13. my $gene1Sig = $self->gene_signal_in_tissue->{$tissue};
  14. my $gene1Control = $self->control_signal_for_tissue->{$tissue};
  15. my $gene2Sig = $comparison_converter->gene_signal_in_tissue->{$tissue};
  16. my $gene2Control = $comparison_converter->control_signal_for_tissue->{$tissue};
  17. #If all are defined and not 0,
  18. if ($gene2Sig and $gene2Control and $gene1Sig and $gene1Control)
  19. {
  20. $dif_in_gene_sig{$tissue} = $gene1Sig/$gene2Sig;
  21. $dif_in_control_sig{$tissue} = $gene1Control/$gene2Control;
  22. #print
  23. #"$tissue\t$dif_in_gene_sig{$tissue}\t$dif_in_control_sig{$tissue}\n";
  24. }
  25. }
  26. #Line 145# my $temp_gene_analysis =
  27. SGN::Feature::ExpressionViewer::Converter->new(
  28. 'gene_signal_in_tissue'=>"\%dif_in_gene_sig",
  29. 'control_signal_for_tissue'=>"\%dif_in_control_sig");
  30. return ($temp_gene_analysis->calculate_relative($threshold, $grey_mask_on,
  31. $override, $mask_ratio), $temp_gene_analysis->get_min, $temp_gene_analysis->get_median);
  32.  
  33. It's surprising because when I ran the print command, I got a PO term\tnumber\tnumber\n.
Add Comment
Please, Sign In to add comment