340 |
my $fig = $self->{fig}; |
my $fig = $self->{fig}; |
341 |
# Get the genome hash. |
# Get the genome hash. |
342 |
my $genomeFilter = $self->{genomes}; |
my $genomeFilter = $self->{genomes}; |
343 |
my $genomeCount = (keys %{$genomeFilter}); |
# Set up an ID counter for the PCHs. |
344 |
my $featureCount = $genomeCount * 4000; |
my $pchID = 0; |
345 |
# Start the loads. |
# Start the loads. |
346 |
my $loadCoupling = $self->_TableLoader('Coupling'); |
my $loadCoupling = $self->_TableLoader('Coupling'); |
347 |
my $loadIsEvidencedBy = $self->_TableLoader('IsEvidencedBy', $self->PrimaryOnly); |
my $loadIsEvidencedBy = $self->_TableLoader('IsEvidencedBy', $self->PrimaryOnly); |
411 |
} |
} |
412 |
} |
} |
413 |
for my $evidenceID (keys %evidenceMap) { |
for my $evidenceID (keys %evidenceMap) { |
414 |
|
# Get the ID for this evidence. |
415 |
|
$pchID++; |
416 |
# Create the evidence record. |
# Create the evidence record. |
417 |
my ($peg3, $peg4, $usage) = @{$evidenceMap{$evidenceID}}; |
my ($peg3, $peg4, $usage) = @{$evidenceMap{$evidenceID}}; |
418 |
$loadPCH->Put($evidenceID, $usage); |
$loadPCH->Put($pchID, $usage); |
419 |
# Connect it to the coupling. |
# Connect it to the coupling. |
420 |
$loadIsEvidencedBy->Put($coupleID, $evidenceID); |
$loadIsEvidencedBy->Put($coupleID, $pchID); |
421 |
# Connect it to the features. |
# Connect it to the features. |
422 |
$loadUsesAsEvidence->Put($evidenceID, $peg3, 1); |
$loadUsesAsEvidence->Put($pchID, $peg3, 1); |
423 |
$loadUsesAsEvidence->Put($evidenceID, $peg4, 2); |
$loadUsesAsEvidence->Put($pchID, $peg4, 2); |
424 |
} |
} |
425 |
} |
} |
426 |
} |
} |
1572 |
$retVal->Accumulate($stats); |
$retVal->Accumulate($stats); |
1573 |
Trace("Statistics for $relName:\n" . $stats->Show()) if T(2); |
Trace("Statistics for $relName:\n" . $stats->Show()) if T(2); |
1574 |
} |
} |
|
} |
|
1575 |
# Return the load statistics. |
# Return the load statistics. |
1576 |
return $retVal; |
return $retVal; |
1577 |
} |
} |