Permalink
Browse files

Don't store undef props for quantitative data

  • Loading branch information...
1 parent 7daa4d5 commit e984238dcd5298e0a2b4948984805a685a81743c @kimrutherford committed Apr 2, 2013
Showing with 8 additions and 4 deletions.
  1. +8 −4 lib/PomBase/Import/Qualitative.pm
@@ -145,10 +145,14 @@ method load($fh)
$self->add_feature_cvtermprop($feature_cvterm, 'qual_gene_ex_during',
$during);
- $self->add_feature_cvtermprop($feature_cvterm, 'qual_gene_ex_avg_copies_per_cell',
- $average_copies_per_cell);
- $self->add_feature_cvtermprop($feature_cvterm, 'qual_gene_ex_copies_per_cell',
- $range);
+ if (defined $average_copies_per_cell) {
+ $self->add_feature_cvtermprop($feature_cvterm, 'qual_gene_ex_avg_copies_per_cell',
+ $average_copies_per_cell);
+ }
+ if (defined $range) {
+ $self->add_feature_cvtermprop($feature_cvterm, 'qual_gene_ex_copies_per_cell',
+ $range);
+ }
$self->add_feature_cvtermprop($feature_cvterm, 'evidence',
$long_evidence);
$self->add_feature_cvtermprop($feature_cvterm, 'qual_gene_ex_cell_distribution',

0 comments on commit e984238

Please sign in to comment.