This is the base class for objects used by the search helpers that store feature data. For ordinary feature handling this method is adequate; however, if the features are to be returned via a filtered query, the FeatureQuery class is better.
Parent search helper object.
Sprout object for accessing the database.
Recommended extra columns to use for PutFeature.
ERDBObject for the current feature.
my $fdata = FeatureData->new($shelp);
Construct a new FeatureData object for a specified search helper.
Search helper being serviced by this feature data object.
my $fid = $fdata->FID();
Return the ID of the current feature.
my $extraCols = $fdata->ExtraCols();
Return the extra column hash for the current feature. The hash is returned as a reference.
my $featureData = $fdata->Feature();
Return the current feature data. The feature data is returned as a ERDBObject.
$fdata->AddExtraColumns(%nameValuePairs);
Add extra columns to the extra column cache. Extra columns appear in the search results output. The pairs can be coded in hash notation.
$fdata->AddExtraColumns(evidence => $evidenceCode, score => $sc);
A hash mapping extra column names to extra column values. The names should be suitable for column headings and the values must be fully-formatted HTML.
my $value = $fdata->GetExtraColumn($colName);
Return the value of the named extra column. The extra column should have been created by a preceding call to AddExtraColumns. If not, then the column value will be an empty string.
Name of the desired extra column.
Returns the value of the named column as taken from the extra columns hash, or a null string if the column is not present.
my $shelp = $fdata->Helper();
Return this feature data object's parent search helper.
my $sprout = $fdata->DB();
Return the Sprout datbase relevant to this feature data object.
$fdata->Store($record);
Store a feature in this feature data object.
A ERDBObject containing the feature data.
my $key = $fquery->SortKey($shelp, $group);
Return the sort key for the current feature. The sort key floats NMPDR organisms to the top. If a keyword search is in progress, then the search relevance will be in the feature record, and this becomes the second criterion. Finally, the NMPDR group name is used.
Current search helper object.
Name of the NMPDR group containing this feature.
Returns a string that can be used to sort the specified feature into the correct position.