Skip to content

Commit

Permalink
Extra checks on column values in qualitative data
Browse files Browse the repository at this point in the history
  • Loading branch information
kimrutherford committed Apr 1, 2013
1 parent ef0c9eb commit 7daa4d5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions lib/PomBase/Import/Qualitative.pm
Expand Up @@ -97,8 +97,24 @@ method load($fh)
my $type = $columns_ref->{"Type"};
my $during = $columns_ref->{"During"};
my $average_copies_per_cell = $columns_ref->{"Average copies per cell"};
if ($average_copies_per_cell eq 'NA') {
$average_copies_per_cell = undef;
}
my $range = $columns_ref->{"Range"};
if ($range eq 'NA') {
$range = undef;
}
my $qual_gene_ex_cell_distribution = $columns_ref->{"Evidence"};
if (lc $qual_gene_ex_cell_distribution eq 'population' or
lc $qual_gene_ex_cell_distribution eq 'population wide') {
$qual_gene_ex_cell_distribution = 'population_wide';
} else {
if (lc $qual_gene_ex_cell_distribution eq 'single cell') {
$qual_gene_ex_cell_distribution = 'single cell';
} else {
die qq(text in "Evidence" column not recognised: $qual_gene_ex_cell_distribution\n);
}
}
my $conditions = $columns_ref->{"Condition"};
my $source = $columns_ref->{"Source"};

Expand Down

0 comments on commit 7daa4d5

Please sign in to comment.