Genome Source Definition File

This module is used to determine how identifiers work in each of the various data sources defined for the KBase. A data source is typed if IDs are only unique within the context of object type. A data source is genome-based if IDs are only unique within the context of the parent genome. When calls are made to the ID server from the genome loader, the source ID will be prefixed by the genome ID when IDs are genome-based, and the source type will be suffixed with the object type when IDs are typed.

Constants

NON_GENOME_BASED

This is a list of the sources that are not genome-based. Genome-based is the default.

TYPED

This is a list of the sources that are typed. Untyped is the default.

Special Methods

new

my $sourceData = Sources->new($source);

Create a source descriptor for the specified data source.

source

KBase name of the database from which data is being loaded (e.g. SEED, MOL, EnsemblPlant).

Query Methods

genomeBased

my $flag = $sourceData->genomeBased;

Return TRUE if this source is genome-based, else FALSE.

typed

my $flag = $sourceData->typed;

Return TRUE if this source is typed, else FALSE.

name

my $flag = $sourceData->name;

Return the name of this data source.