The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

GenOO::GeneCollection::Factory - Factory for creating GenOO::RegionCollection objects

SYNOPSIS

# It returns the requested factory implementation

my $implementation = GenOO::GeneCollection::Factory->create('Implementation',
    {
        ARGUMENT_FOR_IMPLEMENTATION => undef
    }
);

DESCRIPTION

It helps to encapsulate the actual factories that handle the creation of the requested objects

EXAMPLES

# Create a GFF implementation
my $gff_implementation = GenOO::GeneCollection::Factory->create('GFF',
    {
        file => 'sample.gff'
    }
);

my $bed_implementation = GenOO::GeneCollection::Factory->create('BED',
    {
        file => 'sample.bed'
    }
);